What do I miss when passing an URL a parameter to a query?

Hello,
Here I am again with my problem. I am trying to understand what happens behind the whole thing to achieve the best performance.
I have a single page which accepts a parameter. Since I must have one page I cannot use the "ExecuteWithParameters" method for passing parameters.
This page has one VO with a bind variable. The query takes a lot of time to compute.
For now to use a paramter from the URL I do the following:
1. In the page properties I associate a parameter with a variable in the sessionScope (I need it to be in the session):
<from-value>#{param.my_param}</from-value> <to-value>#{sessionScope.my_param}</to-value>
First doubt: is anything in the sessionScope defined as above available immediatly without registering any bean?
2. Next step is to go in the pageDefs and define a methodCall with an InvokeAction:
<executables>
<variableIterator id="variables"/>
<page path="oracle.ui.pattern.dynamicShell.model.dynamicTabShellDefinition"
id="pageTemplateBinding" Refresh="ifNeeded"/>
*<invokeAction Binds="setmy_param" id="setParams"/>*
</executables>
<bindings>
<methodAction id="setmy_param" RequiresUpdateModel="true"
Action="invokeMethod" MethodName="setmy_param"
IsViewObjectMethod="true" DataControl="AppModuleDataControl"
InstanceName="AppModuleDataControl.TreeViewObj1">
*<NamedData NDName="value" NDValue="#{sessionScope.my_param}"*
NDType="java.lang.String"/>
</methodAction>
The method setmy_param is a VO method exported to the client.
NOW:
When the page starts and the UI component built on the VO is rendered, it looks like the VO keeps ignoring the bind variable set with the method.. I mean, it seems the query is executed BEFORE the setmy_param() is executed on the VO (no matter the order of the bindings in the pageDef).
For this reason the only workaround seems to be to RE-EXECUTE the query in the method. But this takes a lot of time since the query is time consuming. Is there a way to associate the parameter to the bind variable in VO BEFORE the first execution of the query at the start of the page, basically when the component based on VO is rendered?
Thanks.

I missed this
Refresh="prepareModel"
in the InvokeAction section

Similar Messages

  • How to catch BCD_OVERFLOW error when passing value to formal parameter?

    Hi,
    catching runtime error BCD_OVERFLOW exception is simple. However, it's not possible to catch this error directly, if it results from assigning too big value to the formal parameter.
    Let's assume simple code with local class lcl_calculator implementing functional method add with two input parameters i_op1 and i_op2 both of type i and result value r_result of type i as well.
    The following code dumps, without the exception being caught:
    DATA:
       lo_calculator TYPE REF TO lcl_calculator,
       l_result TYPE i.
    START-OF-SELECTION.
       TRY.
           CREATE OBJECT lo_calculator.
           l_result = lo_calculator->add(
             i_op1 = 10000000000
             i_op2 = 1 ).
           WRITE:/ l_result.
         CATCH cx_sy_conversion_overflow.
           WRITE:/ 'Error'.
       ENDTRY.
    To solve this, the workaround has to be implemented with checking the values being passed to the method before the actual call is made:
    DATA:
       lo_calculator TYPE REF TO lcl_calculator,
       l_result TYPE i,
       l_op1 TYPE i,
       l_op2 TYPE i.
    START-OF-SELECTION.
       TRY.
           l_op1 = 10000000000.
           l_op2 = 1.      
           CREATE OBJECT lo_calculator.
           l_result = lo_calculator->add(
             i_op1 = l_op1
             i_op2 = l_op2 ).
           WRITE:/ l_result.
         CATCH cx_sy_conversion_overflow.
           WRITE:/ 'Error'.
       ENDTRY.
    It's the same with the function module call, so it's general unit interface issue. Also, using the exception handling related to the CALL METHOD command does not help here as it's not wrong parameter TYPING which causes the error. It's the VALUE of correctly typed parameter that causes the error.
    The CATCH apparently reacts different ways when the assignment is made to the variable and to the formal parameter of the unit. Any idea how to solve the above without using that workaround?
    Thank you
    Michal

    What about using numeric?
    CLASS lcl_calculator DEFINITION.
       PUBLIC SECTION.
         METHODS add IMPORTING i_op1 TYPE numeric i_op2 TYPE numeric RETURNING value(r_sum) TYPE i
                      RAISING cx_sy_conversion_overflow.
    ENDCLASS.                    "lcl_calculator DEFINITION
    CLASS lcl_calculator IMPLEMENTATION.
       METHOD add.
         TRY.
             r_sum = i_op1 + i_op2.
           CATCH cx_sy_arithmetic_overflow.
             RAISE EXCEPTION TYPE cx_sy_conversion_overflow.
         ENDTRY.
       ENDMETHOD.                    "add
    ENDCLASS.                    "lcl_calculator IMPLEMENTATION
    DATA:
        lo_calculator TYPE REF TO lcl_calculator,
        l_result TYPE i.
    START-OF-SELECTION.
       TRY.
           CREATE OBJECT lo_calculator.
           l_result = lo_calculator->add(
             i_op1 = 10000000000
             i_op2 = 1 ).
           WRITE:/ l_result.
         CATCH cx_sy_conversion_overflow.
           WRITE:/ 'Error'.
       ENDTRY.

  • Different session values when passing &APP_SESSION. as a parameter

    Hi all,
    I'm using APEX 3.1.1 and having the following issue: I have a JS function in my app, which builds an URL using the parameters provided. Its signature would look something like:
    function xxx(p_app_process, p_param_item, p_session, p_app_id)
    Yes, I'm using this to call an on-demand application process (AJAX magic ;)
    The problem is that when I call it from a page item using &APP_SESSION. for the 3rd parameter, it seems like for some reason JS is receiving a different value (I verified this myself putting an alert and displaying both the parameter value and the &APP_SESSION. substitution string).
    I know you will say, +"then why don't you use &APP_SESSION. instead?"+ but the thing is, my JS code is in a separate file, and for whatever reasons, APEX won't replace that string on that separate file.
    So... any suggestions? Ideas? New approaches?
    Thank you all in advance for your help.
    Regards,
    An&iacute;bal

    Hello,
    In an external file you can use -
    $x('pInstance').valueor
    $v('pInstance')(depending on your version of APEX)
    to reference the value of the current session.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Error when passing URL from OLAP Universe to WebI

    Hi Experts,
    I am getting 'The Supplier XML is not valid' WebI error when passing a URL from OLAP Universe.
    URL example:
    '<a href="http://www.sap.com">web link</a>'
    I follow Universe Designer Guide:
    - typing above URL into Dimension Select statement
    - selecting Read As Hyperlink in Object Format.
    When I drop this dimension into Result Objects panel in WebI Query and run refresh  'The Supplier XML is not valid' pops up.
    What i am trying to achive is to create a pre-formatted as Hyperlink object (dimension) in WebI to make it available for a user to design ad-hoc reports.
    Please help
    Thanks

    Hi,
    Refer the below forum link for more information:
    Universe object format in Web Intelligence
    I guess you can do some changes in the format of Universe object and use it in Webi.
    -Noor.

  • How to tell what fonts are missing in a Photosohp CS5 document?

    Hello!  I have received some work from a graphic designer.  I need to modify some of the text in the document.  When I open the document I get an error message:
    Some text layers might need to be updated before they can be used for vector based output.  Do you want to update these layers now?  [Update] [No]
    If I click [Update] it replaces the font with Myriad Pro.  If I click [No] the text looks the way the designer intended, but I have the exclamation mark-triangle symbol over the layer with the text.  If I try to edit the text I get another warning:
    Editing or rendering the text layer "Text Layer" will cause its layout to change.  Continue?  [Cancel]  [OK]
    The same behavior described above occurs.  If I click [Cancel] I obviously can't edit the text.  If I click [OK] it changes the font to Myriad Pro.
    I would like to determine what font the layer is using.  I could swear that previous versions of Photoshop would tell me what fonts were missing when I opened a document.  I can't use the text tool to select the text without it changing the font.  Other posts have mentioned using the text tool to look at the text drop-down to find a greyed-out font which indicates the missing font.  I do not have that.  I only have perhaps 200 fonts installed.  Can anyone tell me how to determine what fonts a .PSD document is using?  I would prefer not to bug the graphic designer if possible.  Thanks much!
    ~ Dan

    Not sure why you are getting ""Font is present on the system but requires a layout change.", usually you do not get that instead the name of the font shows.
    We use extensis Universal Type Client, so the fonts load automatically upon opening files, and never really get missing fonts in Photoshop.
    Actually fontbook has auto font loading if you want to give that a try. Fontbook >> Preferences

  • What am I missing with Form builder ?

    Hi everyone,
    I am new to Form builder and to developing web applications. I am trying to use Form Builder to create a form that will read records from my Ora DB. Just for testing the tool. I get to run the form and see it on my browser but no record is shown unless I execute a query (which should be all records in the column). Even then I need to use the next and previous arrow (in top of the form)in order to see the records. My item is a column name from the DB and is represented as a Combo Box which I want it to give me all records when I click the combo box down-arrow.
    What am I missing? Do I need to create a select query somewhere on the item?
    Thanks for any suggestions,
    cip

    Maybe you should familiarise yourself with how Forms works before leaping in to the complicated stuff. Build a module with one tabular base table block using the Data Block Wizard and the Layout Wizard. Give it a WHEN-NEW-FORM-INSTANCE trigger that does
    execute_query;When you've got that working, change the trigger to
    enter_query;Now your Form starts in QUERY mode and you can use Query By Example to selectively retrieve data.
    Regards, APC

  • No Mirroring in Ipad 2? I have IPAD2 and Apple Tv 4.3. I can airplay videos/music from Ipad2 to my HDTV via ATV, but I cant mirror it. When I select airplay to switch from Ipad2 to Apple TV, Mirroring does not show as an option. What am I missing?

    No Mirroring in Ipad 2?
    I have IPAD2 and Apple Tv 4.3. I can airplay videos/music from Ipad2 to my HDTV via ATV, but I cant mirror it. When I select airplay to switch from Ipad2 to Apple TV, Mirroring does not show as an option. What am I missing?

    That feature is not yet available, it is coming with IOS 5
    http://www.apple.com/ca/ios/ios5/features.html

  • IMovie '11, what steps am I missing, when I go to SHARE, IDVD is grey and not activated, only ITUNES and MEDIA BROWSER? I want to burn a DVD.

    iMovie '11, what steps am I missing, when I go to SHARE, IDVD is grey and not activated, only ITUNES and MEDIA BROWSER? I want to burn a DVD.

    Share your movie to the Media Browser. Then, in iDVD, drag your movie in from the Media Browser at the bottom right.
    THe Share to iDVD option is only activated if your source material is DV or AVCHD.

  • Hi I am a new iMac user. I got my iTunes on here finally, but now it is telling me I haven't authorized my computer? When I ask @ the app. store- no answers... What did I miss?

    Hi, I am a new iMac user and I finally got my itunes to recognize  my music to the iMac, but now it says my computer is not authorized?! When I ask at the App. store about this- they have nothing, but that is where the iMac sends me? So what did I miss?

    TARDISvt wrote:
    When I click on the apple in the left cornor I get App. Store- but I do not get the choice to authorize?...
    You need to Open iTunes and then click on Store in the Menu Bar.
    See this Discussion...
    https://discussions.apple.com/thread/4631735?tstart=0

  • I need to upgrade itunes and have 120 gb free space, however, when I go to install it says I'm out of space. The files are only 42 mb. What am I missing?

    When I go to upgrade my itunes software I get a message that I do not have enough space.  My hard drive has 120 gb free and the files are only 42 mb. What am I missing?

    You Hard Drive might be framented or have bad sectors.  Use Windows utility to deframent the drive and Scan Disk for file allocation errors or bad sectors.

  • I have downloaded Photoshop Elements and all went well.  When I went to open, it opens fine but is unreadable.  I have a Mac and my flash player is up to date.  Can you please tell me what I am missing?

    I have downloaded Photoshop Elements and all went well.  When I went to open, it opens but the content is unreadable.  I have a Mac and my flash player is up to date.  Can you please tell me what I am missing?
    Thanks,
    Nikki

    I did try to uninstall and reinstall.  It messed up my computer.  I had to "RESTORE" from the prior days backup.  This was not helpful at all.  I'm used to losing all my stuff when I connect to iTunes, that's a whole other issue, but now I'm completely banned from any updates to my phone at all.  Geeze.......

  • My Iphone5 won't switch to landscape view when I turn my phone to the side...what am I missing and how do I make this happen

    My Iphone 5 won't turn to landscape view when I turn it to the side...what am I missing and how do I make this happen...it used to happen automatically...I thought.

    I had the same problem but it wasn't because the orientation was locked .
    Mine was some kind of glitch that was resolved by holding down the home key and the button on top until the white Apple appeared on the screen .

  • HT1600 I have an Apple TV 2nd Gen, iPad 2 and can't get the icon to appear when i swipe from left to right. What am I missing? I am able to get the 'Home sharing' 'user and password on my Mac.

    I have an Apple TV 2nd Gen, iPad 2 and can't get the icon to appear when i swipe from left to right. What am I missing?
    I am able to get the 'Home sharing' 'user and password on my Mac.
    Also using IPad 2 I am able to get the ITunes to accept the user name and same password as the Mac.
    However, the only way I can see the 'Home sharing; icon is in Music on the Ipad. When I tap on the Icon it asks for a password.
    When I give the same password, it is rejected.
    Help!!!!
    Jaxxdiggs

    Personally I think the iOS devices are poor at reconnecting  - Airplay establishes that a link is available but when the iPhone/iPad has been away from the house and rejoins the network i think AppleTV already thinks it's connected with a different IP address and fails to recognise it has joined the network again with new credentials.
    Something along those lines anyway.
    I find that a combination of restarting AppleTV, router and iOS device tends to fix it, but not for everyone.
    AC

  • I built an ad using layers saved it and then converted it to a jpeg. Now when I go into elements 11 to do anything else it will not allow to copy and paste to create a new layer. What am I missing?

    I built an ad using layers saved it and then converted it to a jpeg. Now when I go into elements 11 to do anything else it will not allow to copy and paste to create a new layer. What am I missing?

    You know that you lost the layers when you saved it as a jpeg, right? But you're saying you can't add layers to the jpeg now when it's open in the editor? Go to Image>mode and be sure it's RGB, for starters. Are all the commands in the Layer menu grayed out?

  • I got a message in gmail "this version of Safari is no longer supported.  Pls upgrade to a supported browser."  When I click on 'supported browser' it takes me to Apple's Safari site but there is no 'upgrade now' button.  What am I missing?

    i got a message in gmail "this version of Safari is no longer supported.  Pls upgrade to a supported browser."  When I click on 'supported browser' it takes me to Apple's Safari site but there is no 'upgrade now' button.  What am I missing?

    Google seem to have decided in the last week or so that Safari 5.x, which is the newest Safari version available for Mac OS X 10.5 (Leopard) and 10.6 (Snow Leopard) is "not supported" any more, even though there are many reasons for staying with these OS X versions.
    Try this (at your own risk, but it works for me), as it seems to remove the message by tricking Gmail into thinking your Safari version is newer:
    -- Quit Safari
    -- Locate the following file (location depends on your OS X version):
    OS X 10.6 Snow Leopard:
    /System/Library/PrivateFrameworks/WebKit2.framework/Versions/A/Resources/Info.pl ist
    OS X 10.5 Leopard and older:
    /System/Library/Frameworks/WebKit.framework/Versions/A/Resources/Info.plist
    -- Drag the file to your Mac's desktop to make a copy. Also make a safe copy somewhere else eg your Documents folder, as if you lose or mess up the file Safari will not launch at all. Having a backup browser is also recommended.
    -- Double-click it to open it in TextEdit
    -- Locate the CFBundleVersion value (the last line in the file that has numbers in it) and increment the second digit of it to the required version of Safari e.g. Safari 6 now seems to be the minimum version that Google support so change the second number from 5 to 6 (don't change anything else, only the change the second number). The value is different depending on your OS X version but as an example, for Snow Leopard 6534.59.10 becomes 6634.59.10
    -- Drag the file back from the desktop to its original location, choose the option to replace the old version, and enter your password when prompted.
    -- Run a permissions repair in Disk Utility to set the permissions in the file back to what they should be (not required, but good practice).
    -- Launch Safari and test Gmail.

Maybe you are looking for

  • R9 270x gaming BF4 GOP Request

    Hi, could you provide me with a GOP UEFI vBIOS for the following card: MSI R9 270x Gaming BF4 Edition SN: 602-V303-03SB1311023527 thanks in advance

  • New Mac Pro Tower Configuration

    Hi I am currently looking at purchasing a new Mac Pro Desktop Tower to run CS 5.5.  I am planning to use it for longer video projects with premier and AE.  I would also be using audition to some extent. I don't think that I can afford to go with a tw

  • How much space do I need to give Windows7?

    Hello, I want to get the middle of the line MacBook Pro with Retina Display and and I've seen "gaming" reviews of it. I saw that it can handle playing Battlefield3 and since that is my favorite game, I would like to play it. So here, Battlefield3 rec

  • Want to merge two Apple ID accounts...

    I have two accounts, mainly because one of the "in store geniuses" advised me to create a second one when I bought my MacBook Air. (I already had one that I'd created when I got my first iPhone). I want to merge them so that I don't have to duplicate

  • Forms 6i with Oracle 8i

    Hi, It seems that the other guy 'u99918' won't answer, but I have 8i and forms 6i on the machine (win2k pro). After installing Forms, the config file said to add a bunch of Virtual paths for things for the listener. How can I do this? I can't find an