Thread: from 10.1.2 to 10.1.3


Permlink Replies: 5 - Pages: 1 - Last Post: Dec 8, 2006 9:02 AM Last Post By: lavanyadanda
lavanyadanda

Posts: 21
Registered: 02/08/01
Re: from 10.1.2 to 10.1.3
Posted: Dec 6, 2006 7:16 AM   in response to: Steven Davelaar in response to: Steven Davelaar
Click to report abuse...   Click to reply to this thread Reply
That is very cool. I haven't noticed it.
Thanks alot Steven.
One more question regarding migration from 10.1.2 to 10.1.3. Inorder show user spefic information on pages, we had query bind parameter ${data.UserProfilesUIModel.UserProfilesCurrentCommunityId} for a group. In 10.1.3 this is #{data.UserProfilesPageDef.UserProfilesCurrentCommunityId}. It does work (filters the data for the user specific community id) but only when navigated from user profiles page.
When navigated to the page from user profiles page, in the log I noticed new value is set 1 which is correct.

09:07:40 DEBUG (JhsApplicationModuleImpl) -ViewObject ResidentTransactionsView1: value of bind param 0 has changed: old value= ,new value=1
09:07:40 DEBUG (JhsApplicationModuleImpl) -ViewObject ResidentTransactionsView1: executing query, bind parameter values have changed

but If I try to open an lov on that page, it doesn't open lov, the log shows

09:10:46 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for ResidentTransactionsView1
09:10:46 DEBUG (JhsApplicationModuleImpl) -ViewObject ResidentTransactionsView1: value of bind param 0 has changed: old value=1 ,new value=
09:10:46 DEBUG (JhsApplicationModuleImpl) -ViewObject ResidentTransactionsView1: executing query, bind parameter values have changed

some how the bind parameter value is lost. Also If I click on this page after navigating to another page, no rows are displayed, again bind parameter is lost.

It seems like I need to store that value in session some how. But it worked in 10.1.2. Does storing the value in session solves my problem, In that case, Please let me know how to save it in session.

Thanks,
Lavanya.
Sandra Muller

Posts: 891
Registered: 01/10/01
Re: from 10.1.2 to 10.1.3
Posted: Dec 7, 2006 11:36 PM   in response to: lavanyadanda in response to: lavanyadanda
Click to report abuse...   Click to reply to this thread Reply
Lavanya,

In order to use bindings of a PageDef, that PageDef must have been loaded first. If you navigate from the UserProfiles page, that page has loaded the UserProfilesPageDef. To force loading the UserProfilesPageDef on other pages, you can set a parameter in the other page's PageDef:

<parameters>
<parameter id="bindingContainersToPrepare" value="#{'UserProfilesPageDef'}"/>
</parameters>

JHeadstart looks at the parameter bindingContainersToPrepare and ensures that they are loaded when you run the page.

You can add such a parameter by going to the target page's PageDef, and in the structure window right-click the 'parameters' folder, and choose 'insert inside parameters' -> 'parameter'.

Don't forget to uncheck 'Clear Page Definition before Generation' for this group (you can find it in the Application Definition in Expert Mode), otherwise your changes get lost when you run the JHeadstart generator.

Hope this helps,
Sandra
Sandra Muller

Posts: 891
Registered: 01/10/01
Re: from 10.1.2 to 10.1.3
Posted: Dec 8, 2006 3:33 AM   in response to: Sandra Muller in response to: Sandra Muller
Click to report abuse...   Click to reply to this thread Reply
I have described this more elaborately in a new JHeadstart Blog post, see http://blogs.oracle.com/jheadstart/2006/12/08#a113.

kind regards,
Sandra Muller
lavanyadanda

Posts: 21
Registered: 02/08/01
Re: from 10.1.2 to 10.1.3
Posted: Dec 8, 2006 9:02 AM   in response to: Sandra Muller in response to: Sandra Muller
Click to report abuse...   Click to reply to this thread Reply
Thanks alot Sandra. Your tip worked.

Thanks,
Lavanya.
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums