Apply criteria to child VO when executing Parent VO

I use Jdev 11.1.1.3

I have a Parent VO and VO child with a view that link linked between them.
I have a Search Page with 4 search parameters, including the Parent VO 2 and 2 of the VO of the child. AM data control, I dropped the VO Parent and the child VO with her 2 different tabular associaed.

My question is when the user enters the value of the child VO, and then when I run the query on the VO Parent, I want the criteria to apply for the VO of the child.

I have tried to substitute the executeQueryForCollection in my Parent VO, obtained the viewlink in the VO Parent, then got the Destination (which is my child VO) and set the connection parameters.
So my Code looks like

' public Sub executeQueryForCollection (Object, Object [] params qc,
int noUserParams)
{

ViewLinkImpl viewLinkImpl = null;
ViewLink UCS [] = this.getViewLinks ();
String [] vluNames = new String [vlu.length];
for (int j = 0; j < vlu.length; j ++)
{
vluNames [j] is ASI [j] .getName ();.
If (vluNames [j] .equals ("ViewLinkName"))
{
viewLinkImpl = (ViewLinkImpl), ASI [j];
break;
}
}

ChildVOImpl childVOImpl = viewLinkImpl.getDestination ((ChildVOImpl));

childVOImpl.setBindXXX ("Value");
childVOImpl.setBindYYY ("Value");
super.executeQueryForCollection (qc, params, noUserParams);

}

But what happens is that when I run it, I get an exception "parameter Missing IN or OUT to index: 1"because if I print the query for ChildVO, I see. "

Select * from child Table where FiledName1 =: BindXXX and FieldName2 =: BindYYY and = FieldName3: BindAnotherID

This BindAnotherId comes from where the Clause attached to the ViewLink.
I expect the framework so that the value for BindAnotherID, because BindAnotherID is the field that ParentVO and ChildVO are associated.

Can someone please shed some light on this or if you know a different approach to meet the requirement of the execution of a child VO executing test so VO parent is appreciated. Thanks in advance.

Hello

Please, try this link and see if it works, I've created a little demo to replicate your situation, and it seems to work for me. See if you can use this approach. I don't create additional view objects (other than the two objects from view base) and created a sample page.
I created bind variable during execution and used (the objects in my view has not all bind variables)

http://rnuka.blogspot.com/2013/03/master-detail-screen-with-search-fields.html

I hope it's useful for you.

Thank you
Delighted Nuka.

Published by: Nuka delighted March 29, 2013 16:16

Tags: Java

Similar Questions

  • The child jobs with tasks Parent liaison

    A Parent task you need in custom Inbox.
    Now, when the user opens this task he should see several tasks assigned to this user for this ID.
    Once all tasks are complete, so only I will be done with the parent task.

    Is here

    How to bind the child jobs with one parent task
    Show a single task parent in the Inbox through jsp custom
    When all the tasks are completed how can I ensure that the duties of Parent is now?

    Please pour in your thoughts...

    Looks like it's a perfect fit for the optional tasks in an interactive activity.

    With interactive activities, you have a main task, and you can define as many optional tasks you want. The activity ends when executing the main task (if you have the auto all the option enabled).

    You can set all your tasks of 'child' as optional tasks and then have the task main validate that all optional tasks have been executed before continuing or display an error message saying that x is not done.

    You would see only the main task in the Inbox, but when you see the details of the task, you would see all optional tasks that can be performed.

  • Child thread reminder to parent thread

    Hello

    I have a question about the cross-thread communication.

    I have a class of the class (parent) for example, which creates a child class B executes in its own thread.

    I want to have the child thread callback to its parent.

    If I do a cal in my class B run a such parent.somethingHasHappened () are there problems I should be aware with regard to blocking.

    For example, if I make a call to a function in the parent class of the child that might potentially be blocked due to the parent thread be filled (if not what happens if I call parent.somethingHasHappened () and that the parent thread is busy, or is there something that would prevent me from doing this type of call)

    My apologies if this is a stupid question I; m getting my head around the Java, model thread after years of Symbian.

    Pooling mechanism may depend on the task.

    For example - put in place a thread to check the indicator of value and run it on regular basis (TimerTask class use).

    Or implement a while() loop, and check the indicator at each iteration.

  • Error-63101 when executing the FPGA Interface C API Generator in LabVIEW 2012

    I'm using LabWindows CVI 2012 and 2012 LabVIEW FPGA module.  I try to use the FPGA Interface C API generator and I get the following error from a freshly generated .lvbitx bitfile.  I use the local server compiles on my PC.

    Error-63101

    NOR-RIO: A valid .lvbitx bitfile is required. If you are using a valid .lvbitx bitfile, the bitfile maybe isn't compatible with the software you use. Determine which version of LabVIEW was used to make the bitfile, upgrade your software to this version or later, and then try again.

    The problem occurs when executing CVI or LabVIEW.  I was able to do this earlier when I was compiling the FPGA in LabVIEW with the API generator 2011 downloaded from the Web site.

    A bit of weirdness in my setup, it's that I charged it off downloads from the website (latest files after 2012 NIWeek) rather than the normal distribution DVD.  I installed LabVIEW, so NI RIO, then the Xilinx tools compatible with 2012.  It works very well when you talk to the FPGA to a LabVIEW vi running on my Windows PC to the host.

    Any suggestions?

    Problem solved.  I had to download FPGA Interface C API generator 12.0.  It works now.

    I would have thought that if a product was called on the menu in LabVIEW 2012, it would be prompted to upgrade to a compatible version, when I installed LabVIEW.  The old version is not compatible with version 3.0 bitfiles, as identified on the following lines at the top of the .lvbitx file:



     3.0

  • Simple example of child to access the Parent data

    Hi all

    Im trying to explore and make sense of OOP.  Ive been learning as much as I can, but why cant seemt to extract data from a class parent child.  Ive put the child to inherit from the parent and creates an accessor parent to read and write.  I write the data in the parent class and then try to read data from the child's class. Is there something im missing? Anyone have or know a link to a simple example of this?

    Thank you

    Matt

    Ok.  I think you have a misunderstanding of the works the POO here.  The idea with OOP is that you can pass the child object in the parent methods and is in any case on this object.  Your drawing should look like this:

  • When executing "Difficulty It Center Microsoft" I get a message "input string was not in a correct format." What does that mean?

    When executing "Difficulty It Center Microsoft" I get a message "input string was not in a correct format." What does that mean?

    Hello

    The question you have posted is related to Microsoft fix and would be better suited in the Microsoft Support Tools Forums. Please visit the link below to find a community that will provide the support you want. http://social.Microsoft.com/forums/en-HK/fixitcenter/threads

  • ORA-06592: not found CASE when executing CASE statement

    Hello

    I have a table of application where I built a form master detail (table with 33 columns, 13 is not hidden items and rest are hidden).

    When I run the page I get an error "error while rendering page, article. P10_TIME_SAVED_FREQUENCY, ORA-06592: not found when executing CASE statement CASE"

    Error:

    Error during rendering of the element on the page P8_MONEY_SAVED_FLAG.

    ORA-06592: not found CASE when executing CASE statement

    Technical information (only visible to developers)

    is_internal_error: true

    apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR

    ora_sqlcode:-6592

    ora_sqlerrm: ORA-06592: not found CASE when executing CASE statement

    Component.type: APEX_APPLICATION_PAGE_ITEMS

    Component.ID: 13345536607188241

    Component.Name: P8_MONEY_SAVED_FLAG

    error_backtrace:

    ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 1751

    ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4241

    ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN", line 1251

    ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 977

    ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 1406

    DEBUG:

    Exploitation forest exception in final_exception_handler:

    SQLERRM: ORA-20987: APEX - error during rendering of the element on the page P8_MONEY_SAVED_FLAG. -

    ORA-06592: not found CASE during the execution of the instruction BOX Backtrace: ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"

    line 853 ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"

    line 888 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS"

    line of 3240 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"

    line of 1780 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"

    line of 1950 ORA-06512: at "APEX_040200.WWV_FLOW", line 6725

    How to solve this problem. Please advice

    Oracle Apex Vesion: 4.2.1

    Thank you

    BO123 wrote:

    Hello

    I have a table of application where I built a form master detail (table with 33 columns, 13 is not hidden items and rest are hidden).

    When I run the page I get an error "error while rendering page, article. P10_TIME_SAVED_FREQUENCY, ORA-06592: not found when executing CASE statement CASE"

    Error:

    Error during rendering of the element on the page P8_MONEY_SAVED_FLAG.

    ORA-06592: not found CASE when executing CASE statement

    Technical information (only visible to developers)

    is_internal_error: true

    apex_error_code: WWV_FLOW_FORM. UNHANDLED_ERROR

    ora_sqlcode:-6592

    ora_sqlerrm: ORA-06592: not found CASE when executing CASE statement

    Component.type: APEX_APPLICATION_PAGE_ITEMS

    Component.ID: 13345536607188241

    Component.Name: P8_MONEY_SAVED_FLAG

    error_backtrace:

    ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 1751

    ORA-06512: at "APEX_040200.WWV_FLOW_NATIVE_ITEM", line 4241

    ORA-06512: at "APEX_040200.WWV_FLOW_PLUGIN", line 1251

    ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 977

    ORA-06512: at "APEX_040200.WWV_FLOW_FORMS", line 1406

    DEBUG:

    Exploitation forest exception in final_exception_handler:

    SQLERRM: ORA-20987: APEX - error during rendering of the element on the page P8_MONEY_SAVED_FLAG. -

    ORA-06592: not found CASE during the execution of the instruction BOX Backtrace: ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"

    line 853 ORA-06512: at "APEX_040200.WWV_FLOW_ERROR"

    line 888 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS"

    line of 3240 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"

    line of 1780 ORA-06512: at "APEX_040200.WWV_FLOW_PAGE"

    line of 1950 ORA-06512: at "APEX_040200.WWV_FLOW", line 6725

    How to solve this problem. Please advice

    Oracle Apex Vesion: 4.2.1

    Post a backtrace of the page see the request and the item type properties and the source / default to the value of the P8_MONEY_SAVED_FLAG element.

    Seems to be similar to ORA-06592 with the page only items appear, which also involved a master/detail form. Can you reproduce this on apex.oracle.com?

  • Issue when executing the planning of business rules

    Hello

    I get the following error when trying to run a Planning Business Rules of EPMA production environment. The same rules of business work without any problem in UAT which is exactly in line with the production.

    Getting the following message while starting business rules:

    Error detected while trying to perform the work: naming rules

    Newspaper:

    [ACTIVE] ExecuteThread FATAL: '2' for queue: com.hyperion.planning.calcmgr.HspCalcMgr '(self-adjusting) weblogic.kernel.Default"- cannot run validateRule(). An error occurred when executing the specified calc script. See the log for more details.
    -Cannot run validateRule(). An error occurred when executing the specified calc script. See the log for more details.

    FATAL Thread-2352 calcmgr.launch - Server/Application/base of data: localhost Business Rule Name: user: M05 FP data planning.     Exception: com.hyperion.planning.InvalidCalcException: an error occurred when executing the specified calc script. See the log for more details.

    com.hyperion.planning.InvalidCalcException: an error occurred when executing the specified calc script. See the log for more details.

    Please could someone tell if you're aware of something like this?

    Thank you
    Jean

    Remove essbase Server console of Regional service,
    Add Server Essbase with IP address or host name and try again.

  • Core of CBWMS JavaScript error: "when executing translateCustomControl in ExternalRenderers.htm...". »

    Since the October release upgrade I get this dozens of times a day error. It seems to happen when changing window that is developed to another program, while in the middle of saving a file in DW. There is a JavaScript error IN the code base of Dreamweaver, it has nothing to do with any file that I am trying to change, sometimes little any type of file, I work in and/or save.

    Here is the error message: "when executing translateCustomControl in ExternalRenderers.htm, a JavaScript error occurred." It is not always the translateCustomControl function, but it is always in the file ExternalRenderers.htm.

    I use Dreamweaver CC 2014 on Windows 8.1

    Any help is appreciated... Thank you!

    I remember well, it is a bug, and someone mentioned previously.

    If I were you, I would like to send a bug report to:

    https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform&loc=en

  • Implementation error when executing load interface to Essbase data.

    When executing an interface to Essbase data loading I get this error:
    rg.apache.bsf.BSFException: exception of Jython:
    Traceback (most recent call changed):
    File "< string >", line 26, < module >
    at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData (unknown Source)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)


    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: invalid column type specified for the column of data [ActivityPurpose]

    The data store is reversed using the RKM Hyperion Essbase, I did not any changes in the data store.
    I'm loading from an identical to the tabel of target array.
    I use the IKM SQL for Hyperion Essbase (DATA).

    Does anyone have any idea what this might be?

    Concerning
    Hans-Petter

    Might be useful to have a read of the following doc Oracle Support - "how to avoid signs of ' ODIEssbaseException: invalid column type specified for the data column" Message When loading Essbase models ODI? ". [ID 885608.1] »

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • A sound signal when executing an application in a VMWare Image of XP

    When executing an application, I noticed a heinous system Speaker beep whenever I try to use an application. Turned off the coast of all the properties of the system, I was able in the machine of the virtual computer and the system of my laptop, but I still have this terrible noise. Makes the application running in VMWare quite difficult. I was hoping someone knew a solution or keeps doing that. The application, as I have tested, does not that noise when running on the installation of the base.

    XP pro fully updated on local and XP Pro SP2 on virtual image. Using the latest version of VMWare Player.

    I tried to disable the system speaker AND sound card to the level of the local device manager and it does again almost as if VMWare is without going through the local system to use of any resource made this terrible noise.

    Much appreciated!

    I have not tried, but it may be useful?

    http://dotnetforum.dk/blogs/Mac/Archive/2005/11/09/68522.aspx

  • Error Message displayed when executing command FNDLOAD machine in windows

    Hello

    I get the following error when executing the command FNDLOAD in the Windows Machine. Can someone give some details for this problem.

    FNDLOAD command used: *.

    +. / FNDLOAD apps / [email protected]:1521:OA10 0 DOWNLOAD D:\oracle\oa10appl\xdo\11.5.0/patch/115/import/xdotmpl.lct xdotmpl.ldt XDO_DS_DEFINITIONS APPLICATION_SHORT_NAME = IN.

    Error message is displayed for order above:_
    APP-FND-01564: Error ORACLE 6401 AFPCOA
    Cause: AFPCOA failed due to the ORA-06401: NETCMN: invalid driver indicator

    Let me know the solution of this problem

    Concerning
    Mohammed Arif

    Please try this format for the JDBC_CONNECTION and see if you get the error-' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST =)(PORT=)) (CONNECT_DATA = (SERVICE_NAME =)))'

    If you still have the same question, then please connect a SR.

    Thank you
    Hussein

  • Obtained at least one appeal of reading when executing the ODI interfaces

    Hi all

    I get 'Got minus one to read call' during the execution of the ODI interfaces... It is a failure when executing interface... Why this error occurs and where to look?
    Appreciate if someone responds.

    Thanks in advance
    RAM

    Check the listener.log.
    If there is a "TNS-12518: TNS:listener could not hand off client connection."
    use Note 550859.1 GUIDE to TROUBLESHOOTING TNS-12518 TNS listener could not hand off client connection

  • When executing inspectSelection in cf_select.htm, a Javascript error occurred.

    I get this error delayed 3 times in a row when I put in a cfselect box.

    When executing inspectSelection in cf_select.htm, a Javascript error occurred.

    It makes me click on 'OK' 3 times before continuing, so it appears each time I have to make a change to the page.

    What is going on?

    That's what fixed it for me.

    c:\Program files\adobe\dreamweaver CS5\configurations\inspectors\cf_select.js

    Went to the line 231 canInspectSelection() function.  Changed to return (false);  instead of true.

    Something to do with the property inspectors.

    http://help.Adobe.com/en_US/Dreamweaver/CS/extend/WS5b3ccc516d4fbf351e63e3d117f508c8de-7FF b.html

  • Can move us the child member of some parents to the other Parent as child member

    Hi all

    Can u just answer the following question: we need urgently.

    Can we get out the child member of some parents to the other Parent as child member with deletion/cut / child member
    ??

    Move in the direction of cut and paste.
    In the outline of the editor, if you drag a child member by a parent to another parent he will do the same.
    If you want to add a child member by a parent to another parent in keeping one, you can do this by copying and pastechild for the new parent and you must set the property of the Member as a shared member.

Maybe you are looking for