In Apex 5.1, how can I open an list item that links to a page in my application in a new window in my browser? - oracle-apex-5.1

looking for a way in Apex 5.1 to open list items that goes to a specific page in a new window.

1 - Go to your list on Shared Components
2 - On each item of your list, fill on "User Defined Attributes" the second field (image below):
Example: https://apex.oracle.com/pls/apex/f?p=145797:5:
Test 1 open on another page
If dont work check the correct field to put your link attributes. (image below, click on it):

Related

Oracle APEX takes a value from a function and uses it to open a new page

I have a function that returns a value (e.g.27).
I am put this value to my page item (P2120_SYMPTOM_ID) and i want with this value to open with button another page (P2140).
I am going to button Link builder - target and i am using P2120_SYMPTOM_ID like this:
but unfortunatendly this value doesn't pass to my new page criteria.
How can i use this value?
If you're just navigating to another page (as opposed to opening a modal window) then use action "Submit" on your button and create a branch to the new page. That is how navigation is supposed to be done. The link builder links are generated when the page is rendered and do not pick up session values.
This is a common question, and relates to the fact the link uses values during page render, not what may have happened during interaction with the page
A common solution is presented in the Oracle forums here
https://community.oracle.com/tech/developers/discussion/3725149/pass-client-side-state-to-modal-dialog
Alternatively, there is a free & supported FOEX Redirect plugin that also solves this problem
https://fos.world/ords/f?p=10000:1080

Oracle apex value of item is not up-to-date in button link builder when using redirect to another page

I have a value of a field on page 1 that I need to pass to page 2 (modal dialog).
The field is changed on page 1. and I can see it's got updated on the page and when I print its value in debug messages.
When I'm clicking the button, with the action "Redirect to Page in application", the value on page 2 is the initial value of the field, and not the updated one, is this a bug?
what can I do?
I don't want to use dynamic action or things like "prepare_url" because of many reasons.
Thanks.
That is not how a link works. What you are seeing is not a bug, it is expected behaviour. The link is rendered when the page is rendered and will have the item values at render time and a calculated checksum (depends on settings) based on those values. It will not pick up any changes.
The "traditional" way to do this is the following. Assumptions: Need to navigate from page 1 to page 2 and set P2_ITEM on page 2 to value of P1_ITEM on page 1.
Create button (let's say button name is MYBUTTON) of type "Submit Page"
Under "Processing", create a branch to page 2.
For "Page or URL" pick page 2 and set P2_ITEM to value P1_ITEM.
For "Process point" pick "After Submit"
Under "Server Side Condition", select "MYBUTTON" under "When Button Pressed".
Since this is a branch your page has been submitted and all the changes you made to P1_ITEM will be picked up. The fact that page 2 is modal does not affect this, APEX will take care of that for you.
As an alternative to Koen Lostries excellent explanation, in some cases it is also possible to have the target page load the item from the source page.
Ensure that the item is being pushed to the session, for example by using a dynamic action with the items to submit option, but do nothing else in this dynamic action.
Then, when page 2 opens, simply add a pre-header-process, that makes something like :P2_ITEM := :P1_ITEM;
In my experience this approach is easier than doing a redirect in a dynamic action, as there is no declarative option for that and you often need hand-written javascript to do that.

how to pass value from one page to another page in oracle apex 5.0?

I have two form pages 3 and 4. I want to pass the value for item: P3_LOT_N in page 3 to item: P4_LOT_N in page 4 when the button "Next" is pressed. How can I do this in oracle apex 5.0? Please help. Thank you.
Here's how:
open NEXT button's properties
under "Behavior", set "Action" property to "Redirect to page in this application"
click the button next to the "Target" (currently, it says "No link defined")
in a modal window that opens, target page will be Page 4
in "Set items" section, set "Name - value" pair (i.e. set P4_LOT_N to accept P3_LOT_N value)
That should be all.
If you do this via a "Redirect to page in this application", then the other form values you have on page 3 will not be POSTed to session state.
There are at least a couple other ways you could accomplish this:
You could simply have the Source of item P4_LOT_N be P3_LOT_N.
You could define a computation on page 3, to set P4_LOT_N to P3_LOT_N.

How to custom navigation menus and navigation bar in Oracle apex5.1

I want to add some components to my navigation menu (user picture, name, search field), and navigation bar(dropdown menu with user informations), to get like this result.
The User Picture and menu here is the how-to (I'm not going to type it or copy/paste since this exact question has been answered somewhere else):
Apex Profile Menu
The search you did not specify exactly what you want to search on but to add an object to the menu panel here is the how-to (I'm not going to type it or copy/paste since this exact question has been answered somewhere else):
region-in-left-side-navbar-menu
Update 1:
To add JS or CSS to a page you need to edit the Page Properties (Ensure the Show-all is selected) and you will see the fields for JS: File URLs, Function and Global Variable Declaration, Execute when Page Loads and CSS: File URLs, Inline.
Update 2:
You'd need to search on appropriate APEX view and from there get the right value:
I'd use this query to start what you need:
select APPLICATION_NAME,LIST_NAME,PARENT_ENTRY_TEXT,ENTRY_TEXT,ENTRY_TARGET
from APEX_APPLICATION_LIST_ENTRIES
WHERE APPLICATION_NAME = 'Your-App-Name'

Visual Foxpro 9.0

I have a programming problem in Visual FoxPro, create a form that contains PageFrame with 2 Page.
1. On Page 1, Create a program to display data in the grid and give the sorting facilities, navigation and search.
2. On Page 2, create a program to calculate volumeTabung and spacious blanket.
Can anyone provide a solution? thank you
Although this is not DOING the answer, but a simple guide.
In the VFP command window,
Create Form [whatever form name you want]
Once form is up, look at the toolbar for "Form Controls". Click on the "PageFrame" control and then click on the form... There, you have a default pageframe with 2 pages as a default.
The "Properties" window should be visible by default. Click on the combobox on at the top which shows all controls. Open the drop-down and you will see "Page1" and "Page2" of the page frame control. Click on either page, and that will bring focus to that respective page.
Now, click on the Forms Controls toolbar again, such as to grab textbox, label, combobox, whatever and then click on the page and your controls are there. Then get focus to the second page and do the same for whatever you want.
Save and run the form. This just gets you to see the controls and how simple to put them on. Actual pulling your data and populating is really more your "to do" list.

Resources