Form acting as child in parent child reference

Hi guys,
I have a custom fields form.
This form basically uses other forms in our systems information as a parent-child relationship.
It uses FORM NAME and ID from that form name to query custom fields form i.e.
If you go into for example a customer form, then the custom form needs to trigger that you have gone into this form, and pass to custom the form name and the primay key thats queried.
Also if you navigate away to another form (not closing it) and navigate back it should also trigger the execute query in this other form, is this possible?
Basically we have 500 forms and a requirement has come in to add custom fields to all these forms so createing one form that contains the custom fields and having a triggr mechanism to execute query on this was the cleanest way i could attempt to achieve this, i do not want to amend 500 forms!
Thanks

Hai,
For this create global variables to store the FORM_NAME and ID, and assign to those global variables on each master forms WHEN-WINDOW-ACTIVATED Trigger. And in the WHEN-WINDOW-ACTIVATED Trigger of the child form, query the details using those global variables. and use insert into or update statements to update.
Regards,
Manu.

Similar Messages

  • How to update the field of a Parent enity (field is not visibe on the Form) from a Child Entity in MSCRM 2013

    Hi All,
              I m new to CRM customization. I have requirement like this..
    I have 3 entities.. Entity1 , Entity 2 and Entity3.
    Entity1 is the parent of Entity2 and Entity3. Entity2 is the parent of Entity3 and child of Entity1 ..
    In Entity1 I have a field eg:product1 which acts as lookup for Entity2 field availableproducts.  Now in Entity2 I have a field the quantity of products which acts as lookup for Entity3 as given below.
    In Entity3: fields:;; products==Lookup of Products(Entity1)
                                  quantity == Lookup of Quantity (Entity2)
    Now from Entity3 I need to update the fields of Entity1 like I have field named Price which is not visible on the Entity3 Form  but when I access this field from javascript I m getting null exceptions since the field is not in the context of the Entity
    on which it is defined. How can I update the fields of the Parent Entity1 from child Entity3  and also update the quantity field on Entity2 which are not avialable on the Entity3 Form.
    Any help is appreciated
    Waiting for the reply..
    FayazSyed

    Hi,
    To do it in JS you need to use oData, as wrote above:
    to make this requests easer, i use a XrmSvcToolkit library (https://xrmsvctoolkit.codeplex.com/)
    Your code will be about this:
    /// <reference path="rtb_XrmSvcToolkit.js" />
    XrmSvcToolkit.retrieve({
    entityName: "Entity1",
    id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
    select: ["my_FieldNeedToUpdate"], //Here are the name of your fields, which you want to select.
    expand: [""],
    async: false,
    successCallback: function (result) {
    FieldNeedToUpdate= result.my_FieldNeedToUpdate;
    errorCallback: function (error) {
    Error = error;
    FieldNeedToUpdate = FieldNeedToUpdate + 1; //Doing some work here
    var InputEntity =
    my_FieldNeedToUpdate: FieldNeedToUpdate //here are fields, witch you want to update
    XrmSvcToolkit.updateRecord({
    entityName: "Entity1",
    id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
    entity: InputEntity ,
    async: false
    Here are more samples:
    https://xrmsvctoolkit.codeplex.com/SourceControl/latest#Samples/XrvSvcToolkit.Samples.updateRecord.js

  • Disable Parent Form while invoking Child Form using FND_FUNCTION.EXECUTE

    Hi,
    Any inputs in getting this issue resolved would be really helpful? I have a parent form wherein I am calling Child form (Line Details Form) by passing the masterid it works fine. Here How do we refrain the user control to access master form when child form is opened? Here when child form is invoked by click of a button and try to close the master, still I could see the child form opened. Any help will he highly appreciated. Many Thanks.
    Please find the details of the db version and function being used to invoke the form. I tried with all parameter options, when we give Open_flag as 'N', the master form gets closed after opening the child form. Perhaps given the open_flag as 'Y'. Kindly let me know your inputs in case of any missout from my end.
    Forms Version: Oracle Forms 10g
    Version: Oracle Applications : 12.1.3
    Database Version: 11.1.0.7.0
    fnd_function.execute(
    FUNCTION_NAME=> 'CHILD_FORM_LINE_DETAIL'                                                   ,OPEN_FLAG=>'Y'
         ,SESSION_FLAG=>'Y'
         ,other_params=>:Global.master_table_ID
    Thanks,
    Ahmed

    Hi,
    Please review the following documents and see if it helps.
    Note: 93784.1 - Custom Form is Not Executed When Called Using FND_FUNCTION.EXECUTE
    Note: 1031970.6 - Where is FND_FUNCTIONS.EXECUTE defined?
    Note: 744065.1 - Sample CUSTOM Library Code To Customize Applications
    Regards,
    Hussein

  • EJB 3, OneToMany that Acts As Tree, or Parent Child relationship support?

    (Sorry for the RoR reference)
    I first searched the forum and found this post that came close, but not exactly what I'm needing since my table doesn't reference the PK:
    http://forum.java.sun.com/thread.jspa?forumID=13&threadID=767913
    I have a table called Folder that represents a folder hierarchy. It has a 'Path' field and a 'Parent' field, and of course 'ID'. Each Folder knows its parent by the 'Parent' field, which references 'Path', not* 'ID'. Both are Strings.
    To find all the children of a Folder, the sql for a PreparedStatment might look something like this (shared for clarity of the situation):
    SELECT * FROM Folder
    WHERE Parent = ?Question:
    What are the proper annotations in EJB 3 / JPA to allow this kind non-primary key parent/child relationship mapping?
    Can I specify a named query that handles the logic and then reference it in the OneToMany annotation? Other cool tricks?
    Here is what I am trying (no runtime errors, but no results either). (Example simplified)
    @Entity
    @Table(name = "Folder")
    @NamedQueries(value = {@NamedQuery(.......)})
    public class Folder implements Serializable {
        @Id
        @Column(name = "ID", nullable = false, updatable = false)
        private Integer folderID;
        @Column(name = "Path", nullable = false)
        private String path;
        @Column(name = "Parent")
        private String parent;
        // v Here's the kicker v
        @OneToMany(cascade={CascadeType.ALL}, fetch=FetchType.EAGER)
        @JoinTable(name="Folder",
            joinColumns={@JoinColumn(name="Parent")},
            inverseJoinColumns={@JoinColumn(name="Path")})
        private List<Folder> children;
        // getters and setters ....
    }Thanks!

    It looks like the relationship is bi-directional.
    Will this work...
    // Parent.java
    @Entity
    public class Parent implements java.io.Serializable {
    @Id
    public Long parentId;
    @OneToMany(cascade=CascadeType.PERSIST,mappedBy="parent")
    public Collection<Child> children;
    // Child.java
    @Entity
    public class Child implements java.io.Serializable {
    @Id
    public Long childId;
    @ManyToOne
    public Parent parent;  // target of mappedBy
    }Then, in your code (a session facade?), you'll create the parent first, create the children, then add the children to the parent. Your code is also responsible for maintaining the reference back to the parent.
    Parent p = new Parent();
    for(int i=0; i<10; i++) {
      Child c = new Child();
      p.children.add(c);
      c.parent = p;
    em.persist(p);

  • Can we get the parent form data to child form while provisioning?

    if it is possible can anybody tell me how to do this?

    Yes
    You can use API like getObjects API and iterate through resultset to get process instance key and then get Process Form Data.

  • How to Display Parent Form Values in Child Form

    Hi,
    I have Order Page and Item Page
    In the order Page If I select any Item and click on Submit Button, It should open Item Page and results should display in advance table region. In my Item page i have header region(Default double) with 3 fields (dummy) like
    Item
    Description
    org
    Now my question is I need to display the Item Value in the Item Page Header region in the Item Column which I was selecting in the Order Page.
    I have an order 100 with item A, B , C I select B and click on submit It should open Item Page and in items page i have a column called Item and the value B sholud be populated.
    Thanks,
    Mahesh

    Hello Ajay,
    Thanks for your reply..
    What Iam doing is Iam capturin the values in session variables like below when submit button is clicked
    pageContext.putSessionValue("SItemNo",ItemNo);
    And when my item page is opening I need to set this value to that VO Attribute..
    Iam trying the below way to set the attr value in PR
    String SItemNo=(String) pageContext.getSessionValue("SItemNo");
    OAMessageTextInputBean oa = (OAMessageTextInputBean)webBean.findChildRecursive("ItemNo");
    oa.setAttributeValue(SItemNo);
    But it is giving compilation error
    Error(35,9): method setAttributeValue(java.lang.String) not found in class oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean
    Please correct me ajay.
    Thanks,

  • Problem in Getting  Child Count And Child Reference of a Group  [CS3/WIN]

    Hi All,<br /><br />I have Created a group For Some pageItems using kGroupCmdBoss<br /><br />InterfacePtr<ICommand>groupItemsCmd(CmdUtils::CreateCommand(kGroupCmdBoss));<br />InterfacePtr<IGroupCmdData> groupCmdData ( groupItemsCmd, UseDefaultIID());<br />UIDList*list=new UIDList(grpList);//grplist contains UID of all items to be grouped<br />groupCmdData->Set(list);<br />ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd);<br /><br />Till here every thing is working fine.<br />But when i want to traverse through all group item using IHierarchy every time its giving child count as one.<br /><br />InterfacePtr<IHierarchy> child( groupRef,  UseDefaultIID() ); <br /><br />int32 grpchildCount = child->GetChildCount(); //always 1<br /><br />I am not getting why its  always return child count as 1. But the same code is working fine when i am creating group using click on Group In UI. <br /><br />Can any one tell me How Top Iterate through group in above case.???<br /><br />I think when i am executing Group command some document hierarchy is changing becoz of that i am getting issue??<br />any idea??

    Hi Dirk,<br />Thanks For your Reply.<br /><br />ya you are correct I'd call that variable groupHier rather than "child".<br /><br /> ---You've omitted the interesting part, how and when you obtain that <br />groupRef.<br /><br />When i am creating group as mentioned above after executing group command i am using.<br />ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd); <br /><br />b UIDRef grpRef((groupItemsCmd->GetItemList())->GetRef(0));<br /><br />I am using this reference to set script label("Group") for that group.till here its working fine group is created and script label is set.<br /><br />Then i am iterating through all page items using                 UIDList itemsOnPage(database);<br />const bool16 bIncludePage = kFalse;<br />const bool16 bIncludePasteboard = kFalse;<br />                         spread->GetItemsOnPage(pageIndex, &itemsOnPage, bIncludePage,<br />                         bIncludePasteboard);<br />int noOfItems=itemsOnPage.Length();<br /><br />for(int32 pageItemIndex=0;pageItemIndex<noOfItems;pageItemIndex++)<br />{<br /><br />UIDRef pageItemRef=itemsOnPage.GetRef(pageItemIndex);<br /><br />//here i am reading script label <br /><br />if (Utils<IPageItemTypeUtils>()->IsGroup(pageItemRef) == kTrue) <br />{<br />InterfacePtr<IScript>script(pageItemRef, UseDefaultIID());<br />PMString grpScriptLabel=script->GetTag();<br /><br />if((grpScriptLabel.Compare(kFalse,"Group"))==0) //comparing with group label to check that this is group<br />{<br />// so it is group <br />InterfacePtr<IHierarchy> grpHier( pageItemRef,  UseDefaultIID() );<br /><br />b ASSERT(::GetClass(grpHier)==kGroupItemBoss); //No Asserts here<br /><br />int32 grpchildCount = grpHier->GetChildCount(); // here i am getting always one<br />}<br />}<br /><br />}<br /><br />I check for Ur suggested Assert But i am not getting any assert.<br /><br />And One more interesting thing i found that the group i have created programatically is behaving fine as group in Indesign UI.But when I want To Ungroup In UI  by right on Group item And Click UNGRoup option in menu nothing seems to happen.<br /> <br />I am really puzzled.

  • Forms Builder Master Child relationship --- column datas gets hided.

    Hi All,
    I have a screen which have 5 columns. Out of which first 3 columns belong to Table A and 4th column belong to say Table B and the 5th column belong to Table C. There is a master Child relationship between Table A and Table B also between Table A and Table C.
    The issue is, i enter the data for these columns in row wise. I enter all 5 columns with value and when i switch to next row, the 4th and 5th column's value gets hided.
    Please suggest.
    Thanks and Regards,
    KirthiRavi

    KirthiRavi wrote:
    Hi All,
    I have a screen which have 5 columns. Out of which first 3 columns belong to Table A and 4th column belong to say Table B and the 5th column belong to Table C. There is a master Child relationship between Table A and Table B also between Table A and Table C.
    The issue is, i enter the data for these columns in row wise. I enter all 5 columns with value and when i switch to next row, the 4th and 5th column's value gets hided.
    Please suggest.
    Thanks and Regards,hI KirthiRavi
    You have relation with
    Table A with Table B
    Table A with Table Cwhen you switch a record to another record at bloc/table A, it's normal forms behavior it's will hide value of block/table B and C. when your click on associate row of block/table A it will show.
    It's the form normal behavior for relationship.Hope you understand.
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

  • Form component - add child on construction???

    Hi out there,
    what I need is a HtmlForm component that adds a hidden HtmlInput field on construction.
    I added this to faces-config:
    <component>
      <component-type>javax.faces.HtmlForm</component-type>
      <component-class>com.sdm.clucke.faces.component.TaggingHtmlForm</component-class>
    </component>... and built this class:
    package com.sdm.clucke.faces.component;
    import javax.faces.component.html.HtmlForm;
    import javax.faces.component.html.HtmlInputHidden;
    public class TaggingHtmlForm extends HtmlForm {
         public TaggingHtmlForm() {
              super();
              String id = "__DID__";
              HtmlInputHidden hiddenField = new HtmlInputHidden();
              hiddenField.setId(id);
              hiddenField.setValue("DUMMY_TAG");
              this.getChildren().add(hiddenField);
    }But when I watch the rendered HTML, then no hidden-field is there. Can anyone help me?
    Thanks in advance!
    Regards,
    luckec

    I found the reason but don't know the solution.
    The reason is FormRenderer.getRendersChildren() returns false.
    But anyway you should not create a child component in the
    constructor. It prevents you to use the client state saving method
    because the method calls the constructor and tries to restore children too.

  • JavaScript in Form Acts Differently in Acrobat X and Reader X

    I have a fillable PDF form whose Submit button calls this JavaScript:
    this.mailForm(true);
    When I open this form in Acrobat X Pro and hit the submit button, a mail dialog box comes up as I would expect.
    When I open this form in Acrobat Reader X and hit the submit button, I get the error:
    Not allowed error.  Security settings prevent access to this property or method.
    Why the difference?  Note that I will have this form on my website, so I cannot expect my visitors to change their Reader setting.  How can I fix it?

    Thanks for your response.  In order to give my form what I believe to be the "according rights," I opened my form in Acrobat X Pro.
    I then did Save As - Reader Extended PDF - Enable Additional Features.
    After saving the form, the fields could be edited in Reader.  However it behaved the same way with this.mailForm(true) attached to the submit button.
    I got the error: "Not allowed error.  Security settings prevent access to this property or method."  Why?
    Note that for what it's worth, I had also earlier gone to the Acrobat X Pro menu item "Manage Trusted Identities" and selected Certicates - Edit Trust and checked all the boxes including "Embedded High Privilege JavaScript" and "Privileged System Operations."

  • Visual Properties of the form act weird

    I see the text on the buttons, text box colour are missing when i open a form in 10G-As and it works fine on 9iAS-Release2.
    Any ideas??
    Thanks for your time

    Hi,
    to transmit information between iview you need to use nested iview :
    http://help.sap.com/saphelp_nw70/helpdata/EN/9c/ffdb4269b2f340e10000000a1550b0/frameset.htm
    or :
    http://help.sap.com/saphelp_nw70/helpdata/EN/11/00db4269b2f340e10000000a1550b0/frameset.htm
    Fabien.

  • Forms act as address bars

    While posting in forums I drag and drop text within that ''form''.
    An error window pops up stating, "That is not a valid URL."
    I click ok and move on, thinking it's a bug on their end.
    Today I did the same thing in another forum. I dragged the word, ''settings'' within that field, but this time, a webpage opened up, settings.com and I freaked!!
    Something is causing all open forms to be treated as if they were address bars.
    I thought I'd post here first, just in case it's a know bug, but now I'm off to scan my system, just in case it's a bug on my end.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
    1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
    2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
    I have created two ADF view object based on two function return
    Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
    Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
    I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
    Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
    I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
    I will appreciate your help.
    Thanks

    I have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
    I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
    I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
    Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
    Thanks for quick response.
    com.ContractualSalaryByYearlyView xml
    <ViewObject
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="empId"
    Kind="where"
    Type="java.lang.Integer">
    <TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
    </Variable>
    ContractualSalYearlyByYearViewLink.xml file
    <ViewLinkDefEnd
    Name="ContractualSalaryByYearlyView"
    Cardinality="1"
    Owner="com.ContractualSalaryByYearlyView"
    Source="true">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryByYearlyView.EmpId"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.StDate"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="ContractualSalaryForYearView"
    Cardinality="-1"
    Owner="com.ContractualSalaryForYearView">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryForYearView.EmpId"/>
    <Item
    Value="com.ContractualSalaryForYearView.StDate"/>
    <Item
    Value="com.ContractualSalaryForYearView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>

  • Processing Child form on parent window..

    Hi.. anyone here has any idea how to process a child form on a parent window.. like for example, i click on submit button on the child window, and the form directs to another JSP file which its results should be display on the parent window.. anyone has any idea?

    Hi!
    I had similar problem, I used frames and needed to submit a form from a frame to parent window. I used property "target" of form to specify where I want this form to be submitted, like this:
    function submit() {
         form.target = "name of the target where to submit";
         form.submit();
    or something like this:
    <html:form action="/blahblah" target="name of the target where to submit" method="post">
    hope it helps
    Vassili Skarine

  • Master Detail - Detail parent child relationship

    Hello All,
    I have a setup where I have 3 tables. Call them A, B, and C. Table A is the parent table to the child table B. Also table B is the parent table to the Child table C. Is there a way to represent this in Apex? So far I have created two Master Detail forms: Master Detail form one has the relationship A+B and Master Detail form two has the relationship B+C. Can Apex support a Master Detail Detail form.
    Also, is there a way to have my detail page editable without linking to another page to save and update?
    Please let me know what everyone thinks.
    Thanks
    Ryan

    Hi,
    You can google it - so much information is available online. Any how
    Parent Child relationship
    PK FKBasic example - Parent and Child in real life -similarly the Table_A is having relation with some other Table_B.
    Example
    Table_A
    columns :-
    Student_No, Student Name, Student_address
    Now the Table_B store the assignment details
    Student_No, Subject_1,subject_2, subject_3
    Now relation of join is Table_A.Student_No = Table_B.Student_No
    With out the TAble_A details -can be identified the Sudent details etc., No - It's Master data - which is not dependent on any other table and Column Student_No- Acts Primary Key which is Unique -through which we can identify a specific details of particular student. Now comes to Table_B - with out the student_No - we can't say whose details of assignments belongs to whom - now the student_No in Table_B is dependent on some other table - now this table acts a child and Primary Key of Table_A acts Foreign Key - that column helps to identify the record.
    Master Detail
    Reference tablesconcept of understanding is same when - when comes c,c++, java and c sharp - acts the same but inheritance, interfaces, polymorphisms and overloading code of language differs. If you go further j2ee differs
    HTH
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

Maybe you are looking for

  • Multi channel xy graph

    Hello everyone, I've encountered this problem a lot, and I always wondered if there isn't an easier way to plot more channels over one x axis, more comfortable than in my solution attached. ( Wafeform is not a possibility, the timebase is not constan

  • HT4236 Syncing my photo library to my phone, albums out of order

    Syncing my Aperture photo library to my phone from my Yosemite MacBook Pro (I also tried it with iPhoto and same store), the projects (called albums in iPhoto) are all out of order - just random.  I use a naming convention of date then name with the

  • Problem with CF MX7

    I have created a form with a results.cfm page and an info.cfm page. I checked my database against my page coding to ensure that the variable is correct in both places. However, when the info page is returned, it is blank and I get this in the url: ht

  • HT1338 What do iPad users use if they do not have the apple icon??

    Hi, I'm trying to get Java onto my iPad, on looking at the following site, it suggests clicking the apple icon at the top of a mac? But I don't have a mac I have an iPad, so how do I do it? http://support.apple.com/kb/HT1338?viewlocale=en_US Thank yo

  • How can I get microsoft feeds for microsoft at home and at work newsletter?

    I can't get the "microsoft at home and at work newsletter" It keeps asking me to register