How to update APEX_ITEM.TEXT in table - oracle-apex

I am creating one interactive report in that, i have a column of remarks which is an apex text item..
Now i want to update the text item values in table for remarks column.
- Here is my interactive report query:
select CUST_ID,
CHEQUE_AMOUNT,
(APEX_ITEM.TEXT(REMARKS))
from PDC_STATUS_HISTORY
where STATUS in ('Pending')
AND APPROVER_BY=NVL(SYS_CONTEXT('APEX$SESSION','APP_USER'), USER);
Now i need to update the remarks column into table

You will be able to do that manually, but involves a lot of coding.
Instead of going into that direction, my advices is to (if possible for you) 'upgrade' the Interactive Report into an Interactive Grid. It looks the same and therefore your users will recognise it and feel comfortable, but now you will be able to edit (certain) values as well. That way, most of the coding comes out-of-the-box by APEX.
Interactive Grid:
Add a new page using the wizard
Choose Interactive Grid as the page/region type
Enter following query as the source
select CUST_ID,
CHEQUE_AMOUNT,
REMARKS
from PDC_STATUS_HISTORY
where STATUS in ('Pending')
AND APPROVER_BY = NVL( SYS_CONTEXT('APEX$SESSION','APP_USER'), USER);
Specify CUST_ID as the primary key and read-only
Specify CHEQUE_AMOUNT as read-only
Hope this answer is useful to you! Let me know.

Related

Filtering in PowerBI - does user see it?

I am building a map with PowerBI, and adding "County" to the visual filter. I only want certain counties to be displayed on the visualization.
Right now, there is 1 county checkbox selected on the filter, so only one county is showing on the map. If I share this visualization (i.e. "publish" it), will the user simply see the checkbox filters and be able to select other counties? I need to have all other counties excluded for privacy concerns and I do not want users to be able to see checkbox options for other counties, let alone be able to display other counties on the map.
Thank you.
You can set it so that it only appears in the filters pane but if privacy is important you need to either filter out the other counties at the query stage so they don't even exist behinds the scenes in the published report or else implement Row Level Security to set who is allowed to see what counties by creating roles and rules you want.
You also can set the visiblity of the filter (buttom right) to Not visible or you can lock the filter (top right).

Power BI Visualize Many to Many

I currently have two tables: A "Send ID" table and an "Affiliation Table" each based on a column of customer IDs.
No columns have purely distinct values so I cannot create a many to one relationship.
I would like to visualize the Send IDs based on the Affiliations as shown here:
Desired Output
I can work with either having the Send IDs repeat per affiliation in the new desired table or have them unique per affiliation - either way works with me.
Any help would be appreciated.
Thank you
noyraz's solution in establishing a many to many relationship based on the customerID should suit your needs.
If you are required to find out where a customer appears in the affiliation table or sendID table, I highly recommend performing a full outer join in the query editor.
Using the picture below, right click on any of the tables, and select reference.
Reference Screenshot
Then rename the table if you like
Click on Merge Queries
In the drop down, select the other table you didnt reference, then click on both customerIDs
select full other join.
Full Outer Join labled screenshot
Expand the new table column
deselect the ID if you like.
Expanding Column Screenshot
If there are occurrences where they don't appear (useful for sending and delivered tables), you can do visual level filters to see where either the Affiliation or SendID is null/blank.
when you create Many To Many relationships like Here
all you have to do next it's just visual this like you desire
hope I understand your question right

How to specify the sequence the columns are presented from Oracle Apex report

I have an Oracle APEX interactive report with a column with the name "sequence" and I want to specify the sequence the columns are presented.
The app I'm about making quizzes and the table I'm speaking about in the question is one where you select the questions for the quiz and, it has check-boxes to select the question but I want to specify the sequence in which these questions are displayed.
I suggest using an "order by sequence" clause in the sql query defining the interactive report, and make sure the columns are marked Enable Users To->sort->NO

Oracle Apex 5 Checkbox binding

I have an apex interactive report and a matching edit form working. I'm trying to add extra column in my database that would bind to a checkbox on a report and a form for each row. The only way of doing that after researching various references seem to be using APEX_ITEM.CHECKBOX2 in SQL query and selecting graph as column data type. I can render a check box but it is not bound and to save the state I figure I would have to script some code somewhere. Seems to be an awkward way of doing things considering text just binds out of the box. Is there a better way of binding a row level check box in an interactive report, i.e. choosing some specific data type in a database?
Thank you in advance,
Radek

How to edit filtered rows in interactive report in apex oracle

I want to edit rows in interactive report. Before or after filtering. I have made column link in select query using ''edit_link but in Regions > Interactive Report > Column Attributes > [Column Name (edit_link)] > Column Link section i can't send data using item because there is no items on list to pick in page with interactive report. In normal report there are items i can select to read data from and send to (item and value boxes). Is it any solution to edit filtered rows?
There are a couple of ways that come to mind to accomplish this. I will explain an approach that starts off with where your prompt left off.
1. Create a FORM Page
This is to edit a record from your Interactive Report. I assume that the query behind your IR is not a complex, multi table query, which will not work with this approach unless you build this form on a Stored Procedure (instead of Apex's automatic DML functionality).
Build a Form on the Table from the IR
From the Application Builder menu, CREATE a New FORM. Select "Form on a Table or View". Select the TABLE to build this form on and fill in the information required to map it. You will be asked to identify the PRIMARY KEY of the table from your Interactive Report.
Set All Branching Activity to Return to the IR
When Prompted for "After Page Submit And Processing Branch to Page" and "When Cancel Button Pressed Branch to this Page" Choose the page number of your Interactive Report. Any activity on this page, when done (whether through CANCEL or SUBMIT and process), you will want it to go back.
2. Set Column "Edit Link" Properties
Under the Column Link section, set the target to "Page in this Application", and add the page of the form previously created. Items should now show in your popup. Select the Page Item from your Forms page that corresponds to your Table's Primary Key. The value can be derived in some way, or just point to a the column it came from. (i.e., #MY_KEY_ID#).
The key part that was probably missing for you was the existence of the edit form required to modify the record. That is not an automatically created feature when you create an IR report.