This, I feel should be simple, but I am having a lot of trouble.
I have a page item (P_10_PAGE) which is a LOV of page names and numbers. Once a user has selected a value, the submit button should open that page.
I have tried setting the "go to page" value to several variations of &P_10_PAGE for the URL f?p=&APP_ID.:40:&APP_SESSION, where &P_10_PAGE contains 40 (or some other value.)
But the URL is constructed without the &P_10_PAGE value, but leaves the "&P_10_PAGE" as a string.
How can I supply a page number to a button to call? Searching the net gives many examples, but always with a hard coded page.
Your syntax is wrong. Refer to 2.7 Understanding Substitution Strings
"&P_10_PAGE." will substitute the session state of the item (without the quotes, of course). You didn't add the trailing dot.
the value in the page field under action when button clicked is &P_10_PAGE. (complete with dot.) - without the dot, I had the string placed in the URL, thanks for the pointer.
BUT, now I always get /f?p=101:1:...etc, ie it only passes the value 1, not the value from the LOV. 1 is not the default, nor the first value in the LOV
Are you actually submitting the page (thus, are you using a branch?) or is it a "redirect" / "go to page"action on the button? If you are not submitting then you are dealing with the difference in session state vs the value of an item on the page, which as it happens also came up in this other thread: https://forums.oracle.com/message/11110579#11110579