Sub Form in 10GR2

Hi All,
How to display a sub-form (using call_form) in forms10gr2.10.0.2 ?
Requirement : From my main form i want to display a small form from which i will pass some values through global variables according to user selection.
Currently my subform is coming over the main form and am unable to view the main form..
Thanks in Advance
Dora

and that value should be returned to a particular item
Dora.
try something like this may it helps u or give u some clues.
sub form code.
when-new-form-instance trigger.
begin
default_value ( null, 'global.item' );
if
     :global.item is not null AND
     :global.item != 'CREATE'
then
set_block_property ( 'table name', onetime_where, ' item = ''' || :global.item || '''' );
execute_query;
if
     :block.itemis null
then
:iblock.ID := :global.item;
set_window_property ( 'Message', title, 'Message' );
end if;
end if;
end;
Main Form
when-button-pressed trigger
begin
default_value ( null, 'global.item' );
default_value ( null, 'global.item' );
call_form ( 'your form name',no_hide,
no_replace);
if
name_in ( 'global.item' ) is not null
then
:block.item := :global.item;
end if;
if
name_in ( 'global.item ) is not null
then
:block.item := :global.item;
end if;
erase ( 'global.item' );
erase ( 'global.item' );
end;
sarah

Similar Messages

  • Populateing a drop down list in a repeating sub form

    I have been using the scripts from the Purchase Order sample that work with the Country and States/Provinces drop down lists and have modified them to fit my needs. The scripts work great. However I have a drop down list that is in a repeating sub form and the only the drop down list in the first occurance of the sub form works. The others don't.
    I put this line of code in a field called drpOrderedByTeam.
    JobsScript.getJobsOther(xfa, xfa.resolveNode("form1.TimeSheetSF.DetailsSF[*].DetailsTable.DetailsRow.ItemNumber"));
    I thought I just needed to add an "[*]" to the name of the sub form and it would work with all occurances but it doesn't seem so and I'm not sure what else to do.

    Based on your explanations, I've attempted to re-create your form and I think I've got it working the way you'd like it to.
    There are some difficulties with using fields in table headers which are replicated on subsequent pages because while new instances of the header subform and the fields it contains are created, you don't have access to these instances using the header's Instance Manager (I think this is a bug but I'm not sure). This means that you can't iterate through the instances of the header in order to populate the task lists depending on the selection in the team list. One solution for this is to make all header fields Global (select each field and, in the Object palette's Binding tab, set the
    Default Binding property to
    Global). This means that all instances of these fields will share the same value. The effect is that when you change the value of a field on an instance of a header on any page, the change will be replicated on all instances on all pages. The catch, though, is when you use lists in the header. Making list fields global doesn't mean that their item lists are global -- which causes other headaches.
    In the end, because of the problems I've described, I had to resort to cheating a little but if you think about it, it's not really cheating. What the form does is whenever the team list value changes, it removes all instances of the DetailsSF rows. This has the effect of also removing all instances of the DetailTitlesSF headers accross the current page set (and removes all pages but the first one). Then 6 new instances of the DetailsSF row are generated and the DetailTitlesSF header is re-populated using the new selection in the team list. After that, if a new page gets generated because of the number of instances of the DetailsSF rows, the new instances of the task lists in the new instances of the DetailTitlesSF header will have the correct list of items based on the current value of the team list. In the end, even though I'm cheating by removing all instances of the DetailsSF row in order to reset the lists in the DetailTitlesSF header, it's not really cheating because if you change teams, then it should be assumed that all data entered doesn't apply anymore because the tasks change as well... Convinced?
    The best way to understand this is to check-out the sample form.
    Let me know if you have any questions.
    Stefan
    Adobe Systems

  • Passing values to sub-forms  (Varaible scoping)

    I have a "parent" form that calls one of 6 subforms. I'm trying to figure out how to pass values derived in the parent to a sub form.
    I am running IdM 8.1.0.9 in glassfish 2.1.1. I set up these test forms to work through this:
    my Parent Form:
    <Form name='parent' objectLocationID='objectType=UserForm&objectName=parent&objectPath=0&isBegin=true'>
      <Display class='EditForm'/>
        <Include>
          <ObjectRef id='#ID#UserForm:child1' type='UserForm' name='child1'/>
        </Include>
        <!-- This value needed in child 1 form -->
        <defvar name='myvalue'>
          <s>test123</s>
        </defvar>
        <Field name='myfield'>
          <Expansion>
            <ref>myvalue</ref>
          </Expansion>
        </Field>
    <!--  My attempt at using <Variable>, IdM doesn't like this
        <Variable name='myextvar' external='true'>
          <ref>myvalue</ref>
        </Variable>
    -->
        <FormRef name='child1'/>
    </Form>
    my Child1 Form:
            <Form name='child1' objectLocationID='objectType=UserForm&objectName=child1&objectPath=0&isBegin=true'>
                <Display class='EditForm'/>
    <!--
               <Include>
                    <ObjectRef type='UserForm' id='#ID#UserForm:parent' name='parent'/>
                </Include>
    -->
                <Field name='subtext'>
                    <Display class='Text'>
                        <Property name='title'>
                            <concat>
                              <s>pre1:</s>
    <!--  
                               <FieldRef objectLocationID='objectType=UserForm&objectName=marty&objectPath=0&isBegin=true' name='myvalue'/>
    -->
                               <ref>myvalue</ref>
                              <s>:1post</s>
                            </concat>
                        </Property>
                    </Display>
                </Field>
            </Form>I was hoping that child forms would share the scope of the parent, and I could just use a <ref> tag in the child form, but that doesn't seem to work. So I started looking at FieldRef/FormRef but I'm not sure they are the right answer either.
    When the include in the child form is uncommented, I get :
    An unrecoverable error has occurred processing the request. Contact your system administrator.
    Syslog ID = LG-0405-115539.
    I'm guessing that this is because I include a form that includes this form, and created an endless include loop?
    When the FieldRef is uncommented, I get this error:
    Attruibute "objectLocationID" must be declared for element type "FieldRef".
    The <Variable> tag (defined as external) looks promising, but I haven't run across a good example of how to use it.
    When I try to add a <Variable> to my parent form, I get the error: Content of element type "Form" must match...
    This doc: http://docs.sun.com/app/docs/doc/820-5821/bvaex?a=view
    says that <Variable> is a valid form element, but IdM disagrees.
    Any suggestions on how to achieve the passing of values from one for to another would be greatly appreciated.
    -mk
    Edited by: mk152556 on Apr 5, 2010 6:27 AM

    An advice I usually follow: Skip defvars and variables, and stick to fields, hidden, not using any Display class that is, if you just need to use the field as an variable. Field are a lot more practical IMHO.

  • Open a form as a pop up (sub form)

    In Dreamweaver 8, how do I open a form as a pop up (or sub form)?
    On a form users will be able to select an item. When they do I want to open a form, on top of the form that the user made the selection, and display information about their selection.
    Many thanks in advance

    Once again... jQuery to the rescue!
    http://www.ericmmartin.com/simplemodal/
    Look at the pop up form demo - the second one down.
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF

  • Imported Form and sub-form from another database. Sub-form not creating new records tied to parent form's data.

    I have imported all objects from an old access db (.adp file) into a new db (.accdb).  All of my data lives in sql server so I have added all the tables and views to the .accdb as linked tables.  My forms all connect to data, but I am having issues
    with a sub form.  The sub form does not allow for creation of children records tied to the parent record the way the old db did/does.
    Correct - old format .adp file (notice the empty second record in sub-form with the defaulted date of today's date):
    Incorrect - new .accdb file (notice the lack of empty second record in sub-form like above):
    If I click the create new record icon in the bottom of the subform, it creates a completely blank record not tied to the parent record (fields blacked out in screen shots above).  When using this button all parent record fields are blank.  
    I have also verified the child table used in the sub-form has a valid Fky relationship to parent table used in the parent form.
     

    Have you checked each forms 'Filter' property (in Design view) to make sure they are blank and that each forms 'Filter On Load' property to make sure it is set to 'No'? Also, you might try inserting the following commands in each forms On
    Open event:
    DoCmd.RunCommand acCmdRemoveAllFilters
    DoCmd.ShowAllRecords
    If you can open each forms Record Source and they are showing that new records are able to be entered (the new record * is showing at the bottom of the recordset), then check each forms On Load and On Open events to make sure there is no filtering.
    In addition, check any macro or VBA commands behind the button that opens the main form to make sure there is no SQL filtering in the DoCmd.OpenForm command.
    If one of the forms Record Source does NOT allow new records, then you will need to change that Record Source so the new record * indicator shows.
    Out of ideas at this point.

  • Can't get Sub-forms to Display in Right order

    Hello there
    I have a strange issue with the positioning of a series of sub-forms using Designer 8.2.1.3144.
    I have the following (schematic) structure
    (Top Level Sub-form)
    Sub-form 1
    Label 1.1
    Label 1.2
    Sub-form 2
    Sub-form 2.1
    Test 2.1.1
    Label 2.1.2
    Sub-form 2.2
    Fragment 2.2.1
    Fragment 2.2.2
    The fragments themselves have the following structure:
    (Top Level Fragment, e.g. Fragment 2.2.1)
    Text F1
    Floating Field F1.1
    Floating Field F1.2
    Label F1
    Sub-form F1
    (Lots of fields and sub-forms)
    The fragments themselves are quite long, typically more than a page. Whatever I do, Sub-form 1 (and its labels 1.1 and labels 1.2) are always shown at the top of the final page in print preview, typically breaking up a fragment. Try as I might, I cannot get them to be placed at the very top of the first page (as per the order in the design). I have tried a variety of ways to address the issue, including changing the positioning (flowed \ positioned etc.), and have played around with the keep with next and Allow page break within context settings, all to no effect.
    Any ideas much appreciated.

    Paul
    Thanks for the offer.
    Rather strangley, I made some obstensibly unrelated changes to these fragments and the issue seems to have gone away.
    Never really got to the root of the problem, but am not going to worry about it unless it reappears.

  • Text field issue in Sub Form

    Hello Experts,
    I am creating my very first Adobe Form for my client. I have created a subform with "Flowed" content. I have one Text Field in that sub form. When I try to place the second Text Field adjacent to that, it's not letting me do that. It's placing the Text Field under the first one. Can you please let me know how to overcome this issue?
    Thanks a lot for your help. I did search and could not find any solution for this.
    Also, I tried to change the position manually, but the X: and Y: positions are greyed out for me in Layout pallette.
    Edited by: sam jose on Apr 28, 2011 6:04 PM

    Hi sam,
    When you have selected the sunform to be "flowed" , there is an adjacent field where you mention the typr of flow - 'Top to bottom ' or 'Western text' . If you specify as 'western text' then you could get the desired result. you can use rectangles etc for any alignment based on your layout requirement.
    Soha.

  • Question about scripts in repeatbel sub-form objects

    Hi,
      I am working on creating a form which has a sub-form that can be repeated as many times as the user wants to. There is an ‘Add’ button which creates an instance of the sub-form on the form, when clicked.
    On the sub-form I have 5 numeric fields say a1-a5 and 1 field say b1 which is the sum of all these 5 fields.
    On the Main form I have a 2 fields - say t1 and f1.
    The requirement is t1=f1+b1+(sub-form instance 2’s b1)+(sub-form instance 3’s b1)+ and so on …depending on as many sub-form instances there are that the user adds.
    I have created Actions using the Action Builder such that when any of a1 to a5 fields are exited, b1 will be updated with the sum of a1-a5. At the same time t1 will be updated with sum of f1 and b1.
    This works great for 1 instance of the sub-form. But when ‘Add’ is clicked and a second instance of the sub-form is added, then the script does not work as it did for the first instance of the sub-form. So for any instances of the sub-form added, when values are added to a1-a5 and the fields are existed, b1 does not get updated.
    How can I fix this?
    See attached form that I am creating for clarity.
    ‘Total Hours worked this week’ is the t1 I was talking about. See how it gets updated when values are entered in any of the hour fields. It works fine with the default instance of the T100/Strategic/Advantage Customer Information sub-form as well. But when I click on ‘Add Customer’ button to add another instance of the sub-form, it does not work as expected.
    Please let me know if it is still not clear and I can explain the issue.

    Vjay's solution works great! Essentially, take out all of your other programming on the individual fields, and hard script the field you want the sum to show on. By directly referencing the fields, Adobe is able to tell the difference between one instance and another and doesn't get them mixed up. (I have found for some of these dynamic functions, the Action Builder doesn't really work, so you need to code by hand)
    My only suggestion, would be to perhaps modify Vjay's code a little, and use Javascript instead of Formcalc. We have run into the problem where if a user is using the form from a webserver or something and hasn't actually been saved to the user PC, the Formcalc scripts won't run, only Javascript. But it all depends on how you are using your forms.
    Here is your line of code changed to Javascript, in case you want to make that change. (there's really not much difference at all)
    this.rawValue = sum(CustomerTimeBD.Row1.Cell1.rawValue + CustomerTimeBD.Row1.Cell2.rawValue + CustomerTimeBD.Row2.Cell1.rawValue + CustomerTimeBD.Row2.Cell2.rawValue + CustomerTimeBD.Row3.Cell1.rawValue + CustomerTimeBD.Row3.Cell2.rawValue + CustomerTimeBD.Row4.Cell1.rawValue + CustomerTimeBD.Row4.Cell2.rawValue + CustomerTimeBD.Row5.Cell1.rawValue);

  • Show/Hide Sub Forms in LiveCycle ES 8.2

    Hello All,
    I am using Livecycle to create a form and want following functionality:
    If a particular value is selected from drop-down box, it should hide/show a sub-form.
    However, I am not able to do it. I looked at adobe livecycle docs, Adobe user forums, and GOOGLE...but fail to run the code.
    I have used following PDF as example:
    http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/ChangingObjectPresen ce.pdf
    The code below is written on drop-down box and I have BMD_Form as subform
    ----- form1.POS.Emphasis_info.subformOptions::change - (JavaScript, client) ------------------------
    switch (xfa.event.newText) {
    case "Invisible":
    form1.POS.BMD_Form.presence = "invisible"; or
    break;
    case 'Hidden':
    form1.POS.BMD_Form.presence = "hidden";
    break;
    default:
    form1.POS.BMD_Form.presence = "visible";
    break;
    Thanks
    Viral

    I found it after banging my head....

  • Tab-order in sub-forms

    Hello,
    I have a problem to define tab-order in sub-forms. I am using the instance manager (addinstansces) to generate subforms (dynamic), but have problems to define the tab's to go horizontal and not top-down. I.e. if I have defined 3 subforms with ID: 1, 2, 3, and the text fields name and address the orders will go from ID:1, name:1, address:1, etc. My wish is to go from name:1, name:2, name:3, address:1, address:2 etc
    Any help out there?

    Hi Rebecca,
    By tabs do you mean the form fields? If yes, then you can simply rearrange them by repositioning the other fields using mouse.
    However, the e-mails that are received on submission of the forms show the original sequence of the fields.
    Regards,
    Neha

  • Repeating sub-form with XML data from aspx page

    Hi,<br />I am doing a POC where I have a repeating subform in my Life cycle form.<br /><br />Now I want it to show data based on the XML that I have written, sample is below.<br /><br />My problem is that the sub-form does not repeat. Can you help me with this problem or if you can let me know your experience if this is possible that would be great.<br /><br />Thanks,<br />Manish<br /><br />strXML = "<?xml version='1.0' encoding='UTF-8'?>"; <br />        strXML = strXML + "<?xfa generator='AdobeDesigner_V7.0' APIVersion='2.2.4333.0'?>"; <br />        strXML = strXML + "<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>"; <br />        strXML = strXML + "<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>"; <br />        strXML = strXML + "<xfa:data>"; <br />        strXML = strXML + "<RepeatForm>"; <br />        strXML = strXML + "<emp>name</emp>"; <br />        strXML = strXML + "</RepeatForm>"; <br />        strXML = strXML + "<RepeatForm>"; <br />        strXML = strXML + "<emp>name1</emp>"; <br />        strXML = strXML + "</RepeatForm>"; <br />        strXML = strXML + "</xfa:data>"; <br />        strXML = strXML + "</xfa:datasets>"; <br />        strXML = strXML + "<pdf href='http://servername/projectname/filename.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />"; <br /><br />strXML = strXML + "</xdp:xdp>";

    hi this is a sample i created for this check out this link
    http://anilmathewm.blogspot.com/2010/07/how-to-post-data-from-flash-to-php-or.html

  • How to conditionally show sub-forms depending on a data connection file?.

    Hi, let say I have a form that shows a car specification and consists of N parts (sub-forms):
    part I
    part II
    part III
    part N
    Those parts are sub-forms, and given a specific xml data connection file, I need to show the parts if and only iff certain elements of that xml exist or not. Let say, part II is called: "airbag", but if the car doesn't come with airbag (in the xml the airbag section doesn't exist) then the subform should not appear.
    How can I do this?.
    Thanks!.

    Hi,
    This is the sort of thing you can do with a subformset with the "Select One Subform from Alternatives" option.
    There are some examples that come with the install of Designer, from the Designer install directory look in .\EN\Samples\Forms\SubformSet (assuming you want the english one, otherwise change the EN bit).
    Bruce

  • Adding a sub form between 2 flowed subforms

    Hi...I'm attempting to add a sub form between 2 sub forms and make it flow.
    I can add in my content, but I can't get it to push the content below it as it grows. I have it in a positioned subform and then wrapped in a flowed subform.
    I attached my example so you can see what I'm talking about.
    Specifically in the attached it's the text boxes that start with #1, #2, #3, etc....that grow but don't push down the content below them.
    Thanks for the help!

    Please see the fixed form attached.
    You had two issues:
    1. The subforms containing the expanding fields (SF_DIV and Subform12) needed to be flowed
    2. The subform (Subform11.Table2.Row1[2].untitled Subform) was flowed, but had a fixed height which prevented it from expanding
    I also reduced the size of your form from 201KB to 14KB by turning off 'Embed Fonts' in Form Properties > Save Options
    Regards,
    Ben Walsh
    http://www.avoka.com

  • Another delete sub form question.

    I can delete a specific sub form as long as the button that is used to delete the sub form resides in the the sub form using,
    _Subform1.removeInstance(this.parent.index);
    So how do delete a specific sub form using a script in a button that is in another sub form? If I use the same line of code the first occurance of a sub form is removed in every case and not the one I want to get rid of.

    You have to pass in the index of the specific subform in Subform1 that you want to remove. It works when the button is in the subform because this.parent.index is the index of the subform containing the button. If you move the button out of the subform you are passing in the index of the new parent to the button which is not the correct index that you want to remove.
    Chris
    Adobe Enterprise Developer Support

  • Pending commit on sub form

    Hi,
    I have a main form which enables user to calls another form to insert data in a table, after the user finishes the work on that sub form, he will return back to the main form.
    Is there a way that I make the DML happened on that sub form only committed if the user hit the save button on the main form?
    thanks,

    Not possible, due to the When commit is executed?.
    Instead, retain the sub form data temporarily in session state or collections, and process it when the main form is saved.

Maybe you are looking for