Adf11g: Bind params for ViewObject issue

Hi,
In my application I am using VO to generate selectOneChoice.
The binding of VO with selectOneChoice is taking lot of time.
I am having 12 selectOneChoice which are binded to 12 different VO. And as time taken to bind is too high my page is getting loaded in almost 90sec.
This problem persist with other component binding also.
Any pointers how to cut the time taken to load the page?
(How to solve this issue)
Thanks n Regards
Manav Ratra

Thanks Mike
In my application i need to display units in different dropdowns on page load.
And when ever there is unit change a calculation logic is fired to compute new values.
So i cant show the SelectOneChoices binded to my VO blank. :|
Is int there any other work around.
I checked blog and also tested the same it is gonna be really helpful in most of the cases, but not in mine :(
Regards
Manav Ratra

Similar Messages

  • Designating a Record as a BIND Record for Population Selection Use

    Hi All,
    I am working on a population selection custom process, but I have hit a fork in the road because of the fact that I do not know how PeopleSoft actually recognizes a Bind records as a Bind record. Meaning I have created the record, but Population Selection does not recognize it as pop select type bind record. Thus, I am currently forced to use one of the delivered record even though the record is not really associated with my process.
    Does anyone have any ideas about how I can associate a custom record with Population Selection?
    Thanks.

    Matt, you can set a form parameter to the domain value and use it in your record
    group query:
    SELECT rv_id,
           rv_descn
      FROM   curr_refval
      WHERE  rv_domain = :Parameter.domainParameters are not affected by clear_block and clear_form operations, so I like them
    better for use as bind variables for SQL issued from within a form.
    Using a database package variable is a pain, since you cannot access them directly
    from Forms. You would have to create the package with the variable, then create a
    function or procedure call in the package that would set the variable.
    I sure wish you would fix that long Ask Tom link so the text in this thread
    would word-wrap properly

  • JHS detects changes in query bind param when there is none

    I have a view object with a query bind parameter using #{param.id} in the JHS app definition. The page has a hidden field with the same name as param.id to handle reposts. The page layout is master-detail with the VO using the query bind param as the master.
    The problem is that every time navigation to the detail occurs, the query on the master is rerun. In the output, I see "Value of bind param id has changed, old value=3110 new value=3110." The same thing is true with table-form layout.

    Bump. This is a big issue for us. The view object is being requeried everytime naviagation between rows or to the detail occurs. What are the possible causes of this? The output we are seeing is below.
    10:28:40 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
    07/03/13 10:28:40 [778] **** refreshControl() for BindingContainer :CadetGroupsObjPageDef
    07/03/13 10:28:40 [779] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    07/03/13 10:28:40 [780] Invoke method Action:999
    07/03/13 10:28:40 [781] DCInvokeMethod:Invoking ABCMenuAppModuleDataControl.dataProvider.applyBindParams()
    10:28:40 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CadetGroupsViewObj
    10:28:40 DEBUG (JhsApplicationModuleImpl) -ViewObject CadetGroupsViewObj: value of bind param stfPid has changed: old value=3110 ,new value=3110
    10:28:40 DEBUG (JhsApplicationModuleImpl) -ViewObject CadetGroupsViewObj: executing query, bind parameter values have changed
    07/03/13 10:28:40 [782] Column count: 16

  • ADF BC: modifying VO bind params before executing the query

    Hi gang
    I've a use case in ADF BC where I need to modify View Object bind parameters (eg. convert strings to uppercase) entered by users to change the result of the underlying VO query, and show the modified bind parameters to the user after the query.
    Normally I would do this in the VO query by modifying the query where clause with the appropriate SQL. However this method is not applicable in this specific use case as the user doesn't get to see the modified bind parameters as a result.
    I've thought about a few options including:
    1) Generating the bind parameter accessors for the ViewObjectImpl and overriding the bind parameter setters to convert all string values to uppercase. This wasn't suitable as it looks like ADF Faces RC doesn't make use of the accessors via the default ADF bindings.
    2) Overriding the applyViewCriteria() method in the ViewObjectImpl - which however isn't appropriate as it applies to search fields entered as view criteria, not bind parameters.
    3) Overriding the executeQueryForCollection() method in the ViewObjectImpl - I thought I was on a winner here as I could retrieve the bind parameters via a call to getNamedWhereClauseParams(), modify the bind params and then call setNamedWhereClauseParams() to set them back. Unfortunately to really set the params I then need to call executeQuery() inside executeQueryForCollection() which puts the VO in a loop. You can see my sample code below:
    @Override
    protected void executeQueryForCollection(Object queryCollection,
                                             Object[] bindParams,
                                             int noUserParams) {
      AttributeList bindParamList = getNamedWhereClauseParams();
      String[] bindParamNames = bindParamList.getAttributeNames();
      Object[] bindParamValues = bindParamList.getAttributeValues();
      boolean valueChange = false;
      if (bindParamNames != null && bindParamValues != null) {
        String bindParamName = null;
        Object bindParamValue = null;
        for (int i = 0, j = bindParamNames.length; i < j; i++) {
          bindParamName = bindParamNames;
    bindParamValue = bindParamValues[i];
    if (bindParamName != null && !bindParamName.equals("")) {
    if (bindParamValue instanceof String) {
    if (bindParamValue != null && !bindParamValue.equals("")) {
    bindParamList.setAttribute(bindParamName, (Object)((String)bindParamValue).toUpperCase());
    valueChange = true;
    } // else do nothing; null String
    } // else do nothing; only interested in converting Strings to upper case
    } // else do nothing; bind parameter name is null
    } // else do nothing; bind parameter name or value list is null
    if (valueChange) {
    setNamedWhereClauseParams(bindParamList);
    // executeQuery(); // we can't do this; causes an infinite loop
    super.executeQueryForCollection(queryCollection, bindParams, noUserParams);
    I can think of a number of solutions/hacks in ADF Faces RC to get around this issue, but ideally I'd like to keep the solution in the model layer. Does anybody have a better idea of how I could do this? Your help appreciated.
    Thanks & regards,
    CM.
    PS. JDev 11g Boxer 5188: ADF BC + ADF Faces RC

    Hi Chris,
    have you tried modifying the passed-in bindParams argument to work around the need to call executeQuery()?
    That's what I would've done:
    I would have set the named where clause params (like you do) and after that I would have tried to get a new parameters Object[] back by calling ViewRowSetImpl.getParametersAsStorageType() and pass that to the super call.
    Sascha

  • JDev11g : Problem with Binding param (viewcriteria)

    When I bind some variables (2 type number and 2 type date) to viewCriteria and start the web site I get very strange problem.
    The Binding param is almost random (I set on binding variables Binding position), and because of this I get constant SQL errors (Invalid type and so on).
    Some data from server log
    First start of server:
    [ pre]
    <strong>[8945]Binding null of type 12 for 1</strong>
    <strong>[8946] Binding null of type 12 for 2</strong>
    <strong>[8947] Binding param 3: 41</strong>
    <strong>[8948] Binding null of type 12 for 4</strong>
    <strong>[8949] Binding param 5: 148</strong>
    <strong>[8950] Binding param 6: 148</strong>
    <strong>[8951] Binding param 7: 148</strong>
    Second start of server:
    <strong>[9213] Binding null of type 12 for 1</strong>
    <strong>[9214] Binding null of type 12 for 2</strong>
    <strong>[9215] Binding null of type 12 for 3</strong>
    <strong>[9216] Binding param 4: 41</strong>
    <strong>[9217] Binding null of type 12 for 5</strong>
    <strong>[9218] Binding param 6: 148</strong>
    <strong>[9219] Binding param 7: 148</strong>
    <strong>[9220] Binding param 8: 148</strong>
    [ pre]
    And view criteria query looks like this :
    FROM_DATE (binded to variable fromDate_bind type DATE and binding position set to 1)
    TO_DATE (binded to variable toDate_bind type DATE and binding position set to 3)
    WORKER_ID (binded to variable worker_bind type NUMBER and binding position set to 2)
    CLASS (binded to variable class_bind type NUMBER and binding position set to 4)
    [ pre]( ( ( ( FROM_DATE &gt;= ? ) OR ( ? IS NULL ) ) AND (WORKER_ID = ? ) AND ( ( TO_DATE &lt;= ? ) OR ( ? IS NULL ) ) AND ( ( CLASS = ? ) OR ( ? IS NULL ) ) ) )
    This viewCriteria is shown on page as af:query (simple search form) and outputs results on af:table.
    Is there any way to solve this random parameter binding?
    Rok Kogov&scaron;ek

    check out the fileUpload article
    Using the File Upload Component
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/file_upload.html

  • Error like -- No outbound binding found for

    i created a order in one system  and want to send to another system
    i got errors like given below....can u check and helpme me... how to solve the issue
    plz check both errors...
    SAP: Stack> Error when determining the inbound interface: For Outbound
    Interface http://cgi.com/xi/Global.PurchaseOrderRequest
    An inbound interface repeatedly found (at the same transmitter and
    Receiver). On the outbound interface http://cgi.com/xi/Global.
    Purchase Order Request, a multiple inbound interface found (in
    The same transmitter and receiver). </ SAP: Stack>
    <SAP: Additional text> No outbound binding found for PC100, cgi_PurOrdrProcessing, PC200, SAPESD_SalOrdrProcessing, http://cgi.com/xi/Global, Purchase Order Request </ SAP: Additional Text>
       <SAP: Stack> There is a problem with the recipient agreement for the station PC100-cgi_PurOrdrProcessing to receiver PC200-cgi_SalOrdrProcessing, http://cgi.com/xi/Global.PurchaseOrderRequest occurred: No. outbound binding found for PC100, cgi_PurOrdrProcessing, PC200, cgi_SalOrdrProcessing, http://cgi.com/xi/Global, Purchase Order Request </ SAP: Stack>
       <SAP: Retry> M </ SAP: Retry>
    i am already checked the config.part and cache als ...still the error exist
    kindly help on this issue//
    best regards,saran

    Hi
    refer this for related discussion
    Error when trying multiple inbound interface determination for IDOC
    Check your  receiver identification configured in the Integration Directory for this combination of inbound interface, namespace, and business system. Also Make sure your file adapter is configured to send with the correct outbound interface/interface namespace.
    Regrds
    Anusha Ramsiva

  • XSQL Using bind params with sql LIKE clause

    I am unable to use a bind-param with the LIKE clause in a SELECT statement.
    eg call .../temp.xsql?name=N
    XSQL query is this:
    <xsql:query max-rows="-1" bind-params="name">
    SELECT last_name
    FROM emp
    WHERE last_name LIKE '?%'
    </xsql:query>
    I have tried a few combinations so far with no success eg:
    WHERE last_name LIKE '{@name}%'
    WHERE last_name LIKE ?||%
    Any ideas?

    I highly recommend using XSQL's real bind variable feature wherever you can. You can read about it in the XSQL Online Documentation (Search for the "Using Bind Variables" section).
    Using this feature is more performant and more secure than using textual substitution variables.
    Here's what your page looks like using textual substitution:
    <page connection="UTD4" xmlns:xsql="urn:oracle-xsql">
      <xsql:query null-indicator="yes" >
        SELECT * FROM TC_HL7_SEG WHERE SEGMENT_CODE LIKE '{@code}%'
      </xsql:query>
    </page> .
    And here's what it would look like using real bind variables:
    <page connection="UTD4" xmlns:xsql="urn:oracle-xsql">
      <xsql:query null-indicator="yes" bind-params="code">
        SELECT * FROM TC_HL7_SEG WHERE SEGMENT_CODE LIKE ?||'%'
      </xsql:query>
    </page> .
    Using real bind variables allows the database to avoid reparsing the SQL statement everytime, which improves performance.
    Steve Muench
    JDeveloper/BC4J Development Team
    Author, Building Oracle XML Applications

  • Loosing bind params

    Hi,
    We are having a problem with our application that we loose our bind parameters after a while.
    There is a view object that has a bind param called p_id. Which we set by using setp_id and perform executyQuery inside coding. If we leave the page alone for around 1 hour and try to load it again, we get an empty page back and looking at the bc4j logging the bindings try to do a executeQuery and bind "null" to p_id. If we open up another page which has a apply bindparam we get the correct p_id again.
    Has anyone any idea what the problem might be?
    Do we have to add an applyBindparam binding/invoke to each page?
    Is this caused by a difference between web session timeout and AM timeout? (web session has a 180 min timeout and AM has default setting)
    Or do we need to call a pagebinding in order to set bind variables iso binding it with code and executing it manualy.

    Nobody can tell without knowledge of your jdev version and the technology you are using for UI, middle tier and db.
    There have been reports in early 10.3.1 versions going in the direction, that bind parameters are not stored is the application module is passivated.
    The best thing to do is to test the app without application module pooling. This pooling can be turned off in the configuration of the application module. After turning it of each call to the application module gets passivated and activated again, simulating a timeout for every request.
    Timo

  • Report Desinger: Binding error for characteristic / Key Figure

    Hi,
    I am getting the error "Binding error for characteristic: Reference to characteristic".
    I have created a report using a query and I have to change the query as per requirement, removed a characteristic.
    Now when I execute a report, getting Data binding error.
    Does system not changes the report if we change the provider query?
    How can this issue be handled apart from deleting existing report and creating a new one?
    Appreciate your help in advance.
    Regards,
    Amit

    Amit,
    First, try doing a save as on your report and save it under a new name. Delete the old one, then re-save it as the same name as before. Then, go in and clear cache so that it will re-build all references in the query. This should remove the error and you won't have to rebuild anything.
    Cheers,
    Rusty

  • Can I use a VO with Bind Params as an LOV?

    And if so, how can I specify the values to be used for the Bind Params at runtime?
    I am trying to think outside the box for dependent dynamic lists...
    Thanks.

    A little more info...
    I have tried adding an Action to my pageDef Bindings:
    <action IterBinding="DelegationsWithScopeTypeParamIterator"
    id="ExecuteWithParams1"
    InstanceName="EVCServiceDataControl.DelegationsWithScopeTypeParam"
    DataControl="EVCServiceDataControl" RequiresUpdateModel="true"
    Action="95">
    <NamedData NDName="ScopeTypeIdVar" NDValue="${userState.currentType}"
    NDType="oracle.jbo.domain.Number"/>
    <NamedData NDName="CurUserIdVar"
    NDValue="${sessionScope.userState.currentUserId}"
    NDType="oracle.jbo.domain.Number"/>
    </action>
    And an invokeAction to the Executables:
    <invokeAction id="ReloadScopeList" Binds="ExecuteWithParams1"
    Refresh="prepareModel" RefreshCondition="true"/>
    Now, how do I get ReloadScopeList to do its thing when a user selects a value in one selectOneChoice list so the second selectOneChoice list's iterator will be updated? Am I crazy?
    Thanks,.

  • Oracle.jbo.uicli.binding.JUCtrlActionBinding for method doesn't work

    I have a data control method called as listForums(). When i dropped this method on to a region it renders the data fine in af:selectOneChoice. But when the same method is dropped on to a simple jspx page it doesn't render the data.
    The difference in the console logs i see is that:
    In the case where it renders data it says:
    FINE: [103] DCUtil, returning:oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding, for listForums
    But in the case where it doesn't render the data it says:
    FINE: [106] DCUtil, returning:oracle.jbo.uicli.binding.JUCtrlActionBinding, for listForums
    Can some one give me any tips on how to make this work on a simple jspx page?

    I have a test case with me.But I found out the issue. The problem is, in the old projects which we have created long time back, we never have migrated the web.xml file. Hence it was failing. I have migrated the web.xml now. So it started working fine. (Build JDEVADF_MAIN_GENERIC_070416.1022.4501).
    Thanx for the response.

  • The project file is not bound to source control, but the solution contains source control binding information for it.

    This may be more of a SQL Server Management Studio question, but I couldn't find a SSMS forum...
    I've got a database solution that contains several projects.  They're just to keep track of changes to stored procedures, triggers, views, etc in a few databases I maintain.  There is a problem with two of the projects though.  No matter what I do, I can't seem to get them bound to source control right.  When I open the solution, I get:
    The project file is not bound to source control, but the solution contains source control binding information for it.
    With two options, use solution binding and remove solution binding.  If I keep the solution binding, everything works fine.  But it's really annoying to have to deal with every time I open the solution.  If I remove the solution binding, the projects are now unbound again.  If I try to fix them (using the change source control or Add Selected Projects to Source Control options under the File->source control menu), I just end up in the same situation.  I've even tried deleting the projects and re-creating them from scratch, then re-adding them to VSS.  If I open the solution files in a text editor I can see the SCC tags in every project, but these two.  Since I can't manually add the tags, and Management Studio itself only seems to want to bind them the wrong way, I'm getting really frustrated.
    Can anyone point me toward a way to bind these so they work like the rest?

    However, that does not appear to be the ONLY cause of the problem.  I am a single user and only using TFS2010 and SSMS2008R2.  My issue is that I wanted a solution file for each project so that they could managed independently, and a super-solution
    file that contained all projects, so that I could perform system-wide searches and cross-checks.
    I solved the problem by:
    1. Choosing the option to use solution binding, then
    2. Adding another project to the solution.  This forced the re-write of the solution file.
    3. Adding another script to the project.  This forced the re-write of the project file.
    4. Checking in all changes.
    5. Deleting the new script and the extra project,
    6 Checking in all changes.
    This appears to have solved the problem.

  • Bind variable for view accessor

    I am using a Gantt chart where I need to pass in a date field for the schedule as a bind variable.
    Since this is a Gantt chart, there is no iterator binding for the child VO (the tasks) in my page definition.
        <gantt IterBinding="ParentVO1Iterator" id="ParentsVO1" xmlns="http://xmlns.oracle.com/adfm/dvt">
          <ganttDataMap>
            <nodeDefinition DefName="com.pat.model.view.ParentsVO" type="Resources">
              <AttrNames>
                <Item Value="ParentId" type="resourceId"/>
              </AttrNames>
              <Accessors>
                <Item Value="MainGantt" type="tasks"/>
              </Accessors>
            </nodeDefinition>
            <nodeDefinition type="Tasks" DefName="com.pat.model.view.MainGantt">
              <AttrNames>
                <Item Value="PatId" type="taskId"/>
                <Item Value="StartTimeDate" type="startTime"/>
                <Item Value="EndTimeDate" type="endTime"/>
                <Item Value="Patname" type="label"/>
              </AttrNames>
            </nodeDefinition>
    I have tried retrieving the accessor through the parent VO, and setting the bind variable.
    But I get an error if I fire executeQuery() on the child VO that says that the bind variable for the view link is missing.
            DCIteratorBinding iter = dcBindings.findIteratorBinding("ParentVO1Iterator"); // get parent iterator binding
            ViewObject vo = iter.getViewObject();
            MainGanttImpl childVO = (MainGanttImpl)vo.findAttributeDef("MainGantt").getAccessorVO(vo); //get the child VO through the accessor link
            childVO.setpViewDate(new Timestamp(((Date)getGanttDate().getValue()).getTime())); // get the date entered by the user and set to the child VO
            childVO.executeQuery(); //execute the child VO
    Exposing the child VO impl through the Application module and setting the bind variable to that instance alone has no impact on the Gantt data returned.

    We researched a bit more and hit upon the solution here.
    Decompiling ADF Binaries: Search by child attributes on a tree table
    I added the same bind variable to my parent VO (and added some SQL 'and : pViewDate = : pViewDate' to the query to just get it to work )
    In the parent VO Impl class, I overrode the createViewLinkAccessorRS method:
       protected ViewRowSetImpl createViewLinkAccessorRS(AssociationDefImpl assocDef,
                                                          ViewObjectImpl accessorVO,
                                                          Row masterRow,
                                                          Object[] values) {
                ViewRowSetImpl v =
                super.createViewLinkAccessorRS(assocDef, accessorVO, masterRow,
                                               values);
          //  Timestamp viewDate = (Timestamp )accessorVO.getNamedWhereClauseParam("pViewDate");
            v.setNamedWhereClauseParam("pViewDate", getpViewDate());
            return v;                                                    
      public Timestamp getpViewDate() {
            return (Timestamp) getNamedWhereClauseParam("pViewDate");
    This sets the child VO with the value of the bind variable that I have set to my parent VO. This got the Gantt working!

  • How to set bind variables for child VO in hierarchy component?

    Hi,
    Recently I created a application with Hierarchy Component with Parent VO (Query based VO with Bind variables in it) and its Child VO along with Child-Child VO(Query based VO with bind variable in it)
    I am able to set bind variable of parent VO but unable to set bind variable for Child-Child VO. Can any one help me regarding this issue?

    Hi i am getting this exception " Cannot create an object of type:java.lang.Number from type:oracle.bpel.services.datacontrol.data.DataObject with value:21159"
    Actually i am getting Decimal Value from Payload of BPEl process and i am trying to set this to The bind variable
    is that a type cast exception where can i typeCast Those values You should this in a new thread.Dont ask questions out of the scope of this thread.
    Please mark this thread as answered or helpful if you got solution for this thread.
    Thanks!!!

  • Different GOGS GL account for goods issue

    Hello SAP export,
    The F&A department requests to generate different COGS GL account based on Customer Account Assignment Group when goods issue (or billing). Customer Account Assignment Group field name is KNVV-KTGRD. The solution is NOT possible at T-CODE OBYC (with GBB transaction (MM FI configuration for goods issue) because we are using the same materials. (All materials are with same valuation class in MATERIAL master).
    I had posted this question in SD forums but the export suggests me to post in FI forum.
    If you know any workable solution, please help.
    Great thanks in the advance!

    Hi,
    Check the link for how to have default a G/L account on a Purchase Order account assignment for an inventory item & how to post to a separate G/L account for  inventory item by having GR posting
    http://www.bluemarlinsys.com/ns/0603-03.asp
    OR
    you can have a thought of having different valuation grouping codes where you can have different G/L posting with respect to plant for same materiel
    valuation grouping code........valuation area
    0001......................................P001(plant-1)
    0002----
    P002(plant-2)
    Regards,
    Biju K

Maybe you are looking for

  • How to know where the value of a field in an IDoc is saved?

    Hello SAPients! I'm working in ECC 6.0. I have an Inbound Idoc of type WPUBON01. In the segment E1WPB01it has a field named BONNUMMER. My question is: How can I know what TABLE-FIELD is being populated with the value of that field? I mean, is there a

  • How do I change my email/Apple ID on my phone?

    I am trying to do updates in the App Store.  It says I need to sign in to Apple, but it has the wrong email address on it so it won't accept my password.  I don't know how to change that email address.  It was changed on line but it doesn't change in

  • JBO-27122: SQL error during statement preparation.

    Hi, I am trying to develop a VO for validating date. The Vo query is as follows: select count(*) startDateValid from dual where (trunc(sysdate)- to_date(:1)) < NVL(fnd_profile.value('SGX: IPP CONTRACT START DATE WINDOW (DAYS)'), 0) I initiate the VO

  • Differences between different versions of Oracle Database 10 g

    I have some questions about the Oracle Database 10g Release 2 that we download from Oracle web site. 1)Does the software that we download from Oracle web site is similar to Enterprise Edition or Standard Edition or Standard Edition One or to which ed

  • Strange characters on report from field overrun

    We have a report, created with Cystal Reports 10, that is now giving us an issue. It is displayed via web browser. When displayed using Crystal Enterprise 10, it looks fine. But when displayed with CR XI r2 JRC, we get strange characters after the fi