ORACLE-APEX : why when click on any page in the navigation menu each time its redirect first to login page? - oracle-apex

I created a dynamic menu in oracle apex but the issue when click on any page after login
to the application again it redirect to login page first then open the page
this is the URL appear when click any page in the navigation menu
http://localhost:8080/ords/r/apex-system/login?session=11974340821162
this is the SQL query for dynamic menu :
select level ,
EN label,
'f?p=&APP_ID.:'||menu_seq||':'||':&SESSION.:::::' target,
EN as is_current,
ICON_IMAGE image_value
from SYSTEM_MENU
start with parent_m_id is null
connect by prior menu_id = parent_m_id
order siblings by menu_id
why always go to login page when click any page link on the navigation menu ?

Sounds like the session is getting reset when navigating to a menu item. At first glance (untested) I'd say there is a syntax error in the url. The session substitution string is in the wrong place. Try replacing ':&SESSION.:::::' with '&SESSION.:::::'.
But... why bother constructing the application url yourself when you can have a function APEX_PAGE.GET_URL do it for you ?
select level ,
EN label,
APEX_PAGE.GET_URL (p_page => 'menu_seq') target,
EN as is_current,
ICON_IMAGE image_value
from SYSTEM_MENU
start with parent_m_id is null
connect by prior menu_id = parent_m_id
order siblings by menu_id

Related

How to give link for 3 different URLs on single button using select list in oracle apex

If user selects one option from select list then that button should link to different URL, if user selects second option from that select list then that same button should land at another URL , Kindly help me in it using ORACLE APEX.
Create a page item P1_URL of type select list
Add a couple of entries - for this example I'm using static values but a query should work too. Make sure the return value of the entry contains the actual url:
Create a button with action "Submit Page"
Create a branch
Execution Options > Point > "Processing"
Type: "Url defined by Item (Redirect)"
Item: P1_URL
Run the page, when you click the button the page should redirect to the selected url.

How to get value from a bar chart on oracle apex when clicking a specific bar?

I have a bar chart on an oracle-apex page, I want to get the value from a bar when I click on it.
How can this be done?
You can create a new Modal Page with one Item to receive the value.
On you Barchart page go to Series -> Link -> select Redirect Page in This aplication-> and choose the target.
In the Link Builder set Page field as your Modal Page Number and Set Items filed name = item in your modal page to receive the value

Redirect from bootstrap tab to another Django

I have two tabs in a template.In one tab I can create attendance(tab1) in another tab I can view attendance(tab2) that was created previously.Now when I create a attendance successfully I want to check if the attendance is valid and if valid I want to redirect from tab 1 to tab 2. How can I achieve this in Django?
Here's my template and view snippet
https://gist.github.com/quantum2020/c55adeb3b8c2ee0ac2d99ff46f5699e8
https://gist.github.com/quantum2020/2cb28233608c3a219ff97762e1fd62be

how to redirect another page with select list value on button click in oracle apex?

i have select list values.after any change in select list and click on Button (it have to redirect the page number i have mentioned with select list value changed).
what i have done so far.
take another item P213_CLASS_TYPE_VAL
create DA on select list
Select :P213_CLASS_TYPE into :P213_CLASS_TYPE_VAL from dual;
item to submit : P213_CLASS_TYPE,P213_CLASS_TYPE_VAL
item to return : P213_CLASS_TYPE_VAL;
Button Action: Redirect to Page in this Application
Page 218
Set Item
Name Value
P218_GET_CLASS_TYPE &P213_CLASS_TYPE_VAL.
the issue we face is, some it redirect with changed item value and some time redirect with previous item value
You don't need a dynamic action to redirect to another page, that is a common mistake and unnecessarily complicates things.
The easiest way to do this is to have the button submit the page and create a branch to page 218 where you pass the value of P213_CLASS_TYPE_VAL.
On page 213: Button with action: "Submit Page"
On page 213:
Branch to page 218 with:
Server-side condition: "When Button Pressed" = your button.
Behavior: Page or URL(Redirect), page 281 and Set Items P218_GET_CLASS_TYPE to &P213_CLASS_TYPE_VAL.
That's all there is to it.

validation on button without refresh page on APEX5 5.0

Need your suggestions on handling the validation without submitting page in APEX 5.0. I have following items on my apex report page.
"Select list" item which contains some static values
date pickers ( start date and end date)
Submit button ( Once submit is clicked the report date is displayed )
Here I need to add a dynamic action or validation to the submit button so that if user clicks the submit button without selecting a value from the "Select List", an error message should be displayed to the user that he needs to select the item first from the "Select list" page item. With out any selection from the list , the processing should stop and a warning message should be displayed ( either it could be popup message or message can be marked on the select list page item ) .Point to be noted here that during the submit I do not want to refresh the page, just would like a quick error message to display.
Appreciate your help.
in a similar case i used dynamic actions
dynamic actions works on client side
in my case i am not enabling submit button until user changes the select list value
in my dynamic action my config is as below
Event=change
selection=items
item=selectlistID
and true action is
action=disable
button=submitbuttonname
in your case you can choose javascript as action and add your javascript code