Adobe form adding condition to subform

I have added an image to a subform and I would like to display that image if certain condition is true.
I added following code ing "readOnly" but its not working
if ($record.............................. <= "1000")
then
this.presence = "visible"
else
this.presence = "invisible"
endif
what should be the correct code?

Hi,
Method1:
Select the Subform,then Goto Object Palette,select presence as Hidden and exclude from Layout.
Then select the event "FormReady" if your Subform is in BodyPage or Select event "LayoutReady" if you Subform is in Master Page and place your code either in FomCalc or in Java Script.
Method2: Create an Alternative in the Context and specify the Condition on Alternative.
Then goto Layout and drag the Alternative on to the respective Page (Body Page or MasterPage) and Place your Subform under TRUE.
Thanks.
UmaS.

Similar Messages

  • Offline Adobe form- Adding custom data in drop down

    Hi All,
    I am fetching data in a drop down from a table in web dynpro.The drop down is displayed on adobe form.I have allowed custom user entry.I am able to enter data.I need to show the user added data appended in the drop down the next time the user opens the adobe form.
    Any Pointers?
    Regards
    Radhika

    Hi,
    I am trying to save drop down values concatanated in a text field and filling the drop down again while initalizing(opening) the form.But incase of data fetched from a simple type iam nto able to  fetch the data of the drop down.iam only able to fetch the selected value.
    if(DAtanode.mainsubform.TextField1rawValue!=null)
    var temp = new Array();
    temp=DAtanode.mainsubform.TextField1rawValue.split(";");
    var temps = temp.length;
    for(var it = 1;it<temps;it++)
    DAtanode.mainsubform.EnumDropDownList1.addItem(temp[it]);
    Regards
    Radhika

  • Adobe Form want to hide Subform

    Hi All,
    I am using a subform as a table item in my adobe form.
    I have two levels of item level data.
    I want to hide the whole subform containing the second level of data based on the value of afield.
    Scenario is for a particulare item level data i have some sub items.
    The subitems is nothing but material details corresponding to a operation(a work order can have multiple operations,work order is header).
    So I want to stop/hide the whole subform of material details if Material is initial.
    To be more clear i want check the value of a particular field and if its intial i should not display the subform.
    Please help me with what to write in the script editor of the adobe form.
    Thank you very much in advance.
    Regards,
    Kishore.

    Thank you very much for the help.
    However this is not working,I think  I have not explained you myproblem clearly.
    I have 'Table Item' subform below this I have one more sub form 'Material' Subform.
    Table Item Sub form displays the Operation Detaild of a Work Order,and Material subform displays the Components of a Operations.
    So I want stop the presence of Material Subform when varaible Material is absent.
    Please let me know if its still not clear.

  • Adobe Form -  How to set a condition for a Subform

    Hi All
    I am new in Adobe Form and learing it - (I had some knowledges of SmartForm) - One of the requirement I have to do is to print out a different layout (subform) according to a value of a flag.
    In Smartform, I can draw diffrent layouts and put a condition on each layout so each one can be printed accroding to the flag value.
    In Adobe Form, the subform (or any other object) cannot be conditional set - I don't know how to do it - Could comeone please show me how - I reward points for any reply - Thanks

    You are excused with your English - and you must excuse mine , too
    Your questions:
    But, how i write the condition ?
    1- If ( article.table1 = Null ) then ... ?
    2- If ( article.table1.Rangée1.SubForm2.lib_article.rawValue = " " ) then... ?
    Try this:
    1- // Locate the table node from to down
    var tNodes = xfa.resolveNodes("Table1[*]");
    If (tNodes.value == NULL)  {
        tNodes.presence = "Hidden" }     
    or
    2- // locate the varable fields and loop thru to check if they are all empty
    var fNodes_1 = xfa.resolveNodes("article.table1.Rangée1[*].SubForm2.num_article");
    var fNodes_2 = xfa.resolveNodes("article.table1.Rangée1[*].SubForm2.lib_article");
    var fNodesLength = fNodes_2.length;
    var table_empty = "Y";
    for (var fNodeCount = 0; fNodeCount < fNodesLength; fNodeCount++) {
       If     (fNodes1.item(fNodeCount).rawValue <> " ") or
              (fNodes2.item(fNodeCount).rawValue <> " ")      {
                 table_empty = "N";
    // Now find the table node and hide if if necc
    var tNodes = xfa.resolveNodes("Table1[*]");
    If table_empty = "Y"  {
        tNodes.presence = "Hidden" }    
    You must place those codes at the Subform Article level in Javascript mode
    Good Luck
    Edited by: Liem Van Duong on Jun 13, 2008 2:45 AM
    Edited by: Liem Van Duong on Jun 13, 2008 2:46 AM

  • Importance of the subform in adobe forms

    Hi,
       Since i am new to this adobe forms, can any one tell me the importance of the subform and difference between Body page & Main page of the layout.
       I was trying to use the adobe forms to print the internal table data, but at the end of the internal table data i need to 'write some text' and need to do some calculations based on internal table data.
       here i have used the subform at the end but the problem is subform is overwriting in all the pages. It should be displayed in only in the last page and after all the internal table records printed. Thanks in advance.

    Hi,
    Subform: is nothing but make the individual fileds into one group.
    Let say example: in my output i am displaying header information..... make all the fileds into one subform, it indicates as header subform.
    Suppose if the subform properties are position contents it does not flowed...
    Suppose if the subform is flow content and top to bottom, it should flow to subsequent pages....
    In adobe forms we have two types of pages which are
    Master page
    Body page
    Master page: Basically we will design the logo,address and fotter will be designed in the master page.
    it has to reflect to the subsequent pages. Master page is excluded from the content area
    Body page: we will design the Table Data. it should included in the content area.
    if you want to display some thing into the last page you can write the scripting based on the condions....
    Adobe forms support the scripting .....
    We have evnets like if you are wirting the conditions on
    Master page  ---> Select the event as layout ready
    Body page    ---> Form Ready event in the layout
    Hope it may clears for your requirement
    Thanks & Regards
    Ramakrishna Pathi

  • Conditional Page break in Adobe forms.

    Hi all,
              In Adobe forms i am displaying the purchase order details.i want to create a conditional page break..
       i am displaying purchase order header details below that i am displaying the item details of the purchase order.
       i one page. i want to display only 4 purchase order header and 3 items for each purchase order. in total i want to display 0nly 16 lines in a page. my Hierarchy look like this...
    data
    ....Masterpage
    ---......page1
    .....static image
    ....bogypage(subform)
    ---......headertable(subform)                              
    ..............headerdata(subform)
    ........................ebeln
    ........................burks
    ........................table(table)
    ...........................group(group)
    ...............................row1(row)
    ..................................ebelp
    .................................matnr
    with regards,
        sivaprasath.s  SAP Consultant...

    try using the below java script:
    if (this.index != 0) { this.index%16 == 0 }
      let me know if it works.

  • Hiding subform in adobe forms

    go to palettes and select script editor. you will find a white colored editor.
    Click on the subform which is to be hidden in the heirarchy.
    Select Initialize from the drop down list on the editor. And select Language as FormCalc.
    You'll get the white space in the editor to write the code.
    if the subform which is to be hidden is SUBFORM1.
    then write the code as follows
    $.SUBFORM1.presence = "hidden"
    this will hide the sunform.
    if the hiding of the subform is dependent on any condition then we can write the code as follows
    if ( condition )  then
    $.SUBFORM1.presence = "hidden"
    endif
    this code will hide the subform and all the elements in the subform only if the condition is satisfied.
    Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms", not a question anyway, if you'd like to share ideas/code samples, please use the wiki space.
    Edited by: Thomas Zloch on May 10, 2011 10:29 AM

    Hi,
    This has been discussed many times in the forum. Check the following thread.
    hide a row or field in adobe form
    Thanks,
    Aravind

  • How to display the Standard Text (SO10) based on condition in adobe forms

    Hi,
    I have created the Standard texts (through SO10 tr.code) of 4 plant addresses. In the Layout of adobe form, i want to display any one plant address based on the plant number (as a input) and the rest 3 standard text need to be hide. i tried in Form clac to hide, but i unable to succeed. could you please help me, in this regard. 
    Thank you.
    Regards,
    Mallikarjuna

    Hi,
    You can add all the 4 text in your context menu and create an condition for text.
    Example: (LS_HEADER is a structure only for example, you need to decide based on your own form interface)
    Text_1000                                Condition -> LS_HEADER-WERKS = 1000
    Text_2000                                Condition -> LS_HEADER-WERKS = 2000
    Text_3000                                Condition -> LS_HEADER-WERKS = 3000
    Text_4000                                Condition -> LS_HEADER-WERKS = 4000
    The text satisfyling your condition will only be printed and you can assign these text to the same block in PDF form.

  • How to make a condition check on footer text in adobe forms ?

    Hi all,
    I have a requirement where I need to change the existing footer text in the adobe form ( text is hardcoded in the layout ) .
    I need to put a condition where new text can be placed or the existing text . Is this possible in the layout only ?? Because the text is hardcoded . I dont want to do programming in the interface for such a small req . Its a urgent req . So please advise .
    Thanks
    Barun

    Hi Barun,
    Using Javascript in Adobe, we can hide the footer. Please find the document below.
    Using Java Script in SAP Adobe forms to dynamically select Logo / Image on the basis of a field value
    Regards
    Rajkumar Narasimman

  • Adobe Form Repeat a Subform Every Page

    Hello Adobe Forum,
    I'm an SAP user and am creating an Adobe form (my first). I posted this in an SAP forum, but have yet to receive any feedback whatsoever so I thought it may be better to go to the Adobe experts themselves. I've run into an Adobe issue and am just spinning and spinning trying different techniques to make it work. Any hints would be greatly appreciated.
    In my content area I have three subforms. The first subform is positioned, the fields have to be placed correctly. The second subform is fundamentally a table header for the third subform, which is the rows of the data. All three subforms are wrapped in another subform that is flowed.
    Why would I do it like this? Well, the table in the third subform has control levels so it merges like rows nicely in this way when the first column rows are the same...
    So the first page of my document would look like this...which is what I want.
    H is repeated for every page. So it is on the Master page. That's easy.
    1 is the 'sub-header' and should only be on the first page. This works.
    2 looks like a header for the table, but is really it's own table because of formatting requirements and the values are dynamic. It looks nice, but shows up only on page one.
    3 is the data table. It works great too.
    Page one looks great. Page two looks like this... I can't get part 2 from above to repeat for every new page.
    I have tried numerous approaches, but nothing seems to work. I really need to stick with the control levels, and that keeps me from having one nice table with a header that repeats. Perhaps I've approached this fundamentally wrong?
    Here is my layout in case that helps at all explain my issue. I truly appreciate any help, this is the last hurdle on my form and then it's done. I'm sure a seasoned Adobe person may quickly see the err of my ways.
    Thanks,
    Greg

    Not a solution I'm very fond of, but it works. I created a second page and put the table header on the master page there and moved the content area down a bit. I'd still like to force the subform to simply repeat, but I've got to move on.

  • Adobe Form - Hide a table row if a condition met

    Hi Helper
    I am learning how to use Adobe Form - and I am trying to hide a table row if a condition is met by using Formcalc/Jave script - but I donot know how - I was told that I can use "....presence = 'hide'  " property in on of the event(?) but donot know how to write the qualified name for the varable row and what event to use. Could someone please show me how
    Points will be rewarded.
    Thanks

    Hi Liem,
    Here is some more information:
    1)
    Accessing data in Table Cell
    xfa.resolveNode("xfa.data.my_data.tableData[" + this.parent.index  + "].column1").value
    2)  Accessing data nodes in Context
    xfa.datasets.data.my_data.second_node.an_attribute.value == "3"
    I think you will find the WebLog below very useful for your requirements.
    /people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
    -regards,
    harman

  • Print the attachements added in the adobe form

    Hi,
    I added the attachments in the adobe form.But when ever i print this adobe form , i want to make sure that the attachments are also printed in addition to the original adobe form.
    Is there any automatic way of doign it or any alternatives to avoid adding it as an attachment ,
    i have  a word document stored in the database.
    so when ever i print my form need to print the document sthat are stored in the database also.
    Please help me.
    Regards,
    Sasi

    "Discrepancies"?

  • Subforms in Adobe Forms

    Hi can anyone tell me what are Subforms in Adobe Forms. What is there use ?

    Hi,
    I hope the below link can help you.
    http://livedocs.adobe.com/livecycle/8.2/acrobat_designer/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Adobe_LiveCycle_Designer_Help&file=000269.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669
    Thanks,
    Khushbu.

  • Adobe Forms - Page Break via a Conditional Break

    Having read through the forum I am getting the impression that Page Breaks is a bit of a problem.
    I can enforce a page break between datasets by setting "After:" to "Goto Next Page", on the Object->Pagination tab, however this results in a blank page at the end of the entire output which is just the Master Page with all the static elements.
    The 'Conditional Breaks' sounds like the logical point to force a page break based on a combination of inequality or if a particular data element equals a known value.
    However, I don't seem to be able to get the 'Conditional Break' to work.
    So, the question I would like to ask, is how can you tell if the conditional break logic is correct and whether or not it is running? For example on an ABAP system is it possible to run it and debug it?
    My attempts at getting the break to open a pop up or write to disk via JavaScript fails, which is leading me to think they  are being ignored by the Adobe Form at both the server and client level.
    Is it possible that I have missed another setting somewhere else in the Adobe form configuration?

    Hello Jason!
    You are right that conditions (and all scripting) are bit tricky in this solution. Still they work.
    Debugging of AIF at ABAP side is not possible due to the architecture of the solution - from the ABAP POV it is just a web-service call and receiving result (PDF) back. You can't stop it on midpoint or intercept it somehow.
    At the same time there are other ways to check it.
    First, you can enable trace and saving additional info in SFP transaction under Utilities -> Settings.
    Details see [here|http://help.sap.com/saphelp_nw70/helpdata/EN/f7/a04aee0cb94978a011401311efe603/frameset.htm]
    And the nice way to check if your condition block is taken into the account is simple check like 1 = 2.
    If this works and you receive page break than all you need is find errors in your condition syntax, otherwise the problem is somewhere else.
    Regards,
    Petr Perstnev

  • Moving subforms in adobe form

    Hi,
    I developed an adobe form, it has 3 subwindows.
    Form structure is:
    It has 3 pages:
    Page 1 contains Subwindow 1. This is a fixed subform which always comes. This subfirn has 3 checkboxes.
    Page 1 has subform 2 also.
    page 2 has subform 3
    page 3 has subform 4
    When checkbox 1 is clicked, subform 1 appears
    When checkbox 2 is clicked, subform 2 appears
    When checkbox 3 is clicked, subform 3 appears
    When all checkboxes are clicked togeather, all three subforms appears.
    When checkbox 2 and checkbox 3 is clicked, then subform 3 and subform 4 appears on page 2 and page 3.
    My requiernmrnt is, when checkbox 2 is clicked, then subform 3 should be displayd on page 1 instead of page 2.
    How to achieve this funcionality?
    Regards,
    Ashish Gupta

    If you have below form hierarchy then it won't work the way you want as you are already creating pages and in case you hide/unhide a subform, it will reflective in that respective page only.
    form1
      |--Master Pages
        |--Page 1
          |--(untitled Content Area)
      |--(untitled subform) (page1)
          |-- SubWindow                  // This is a fixed Subform
             |-- CheckBox1
             |-- CheckBox2
             |-- CheckBox3
          |-- Subform2
      |--(untitled subform) (page2)
          |-- Subform3
      |--(untitled subform) (page3)
          |-- Subform4
    So if you want to achieve effect of having Subform3 appearing on Page1 itself then you need to place Subform3 on Page1 itself. Place the Subform2,Subform3,Subform4 next to each other or however you want but all on Page1 itself.
    Follow below form hierarchy and properties as mentioned against it.
    form1
      |--Master Pages
        |--Page 1
          |--(untitled Content Area)
      |--(untitled subform) (page1)
          |-- SubWindow                  // This is a fixed Subform. Make the Content type as Positioned in Object palette.
             |-- CheckBox1
             |-- CheckBox2
             |-- CheckBox3
          |-- Subform2                 // Make the Content type as Flowed in Object palette.
          |-- Subform3                 // Make the Content type as Flowed in Object palette.
          |-- Subform4                 // Make the Content type as Flowed in Object palette.
    I believe you already know how to hide/unhide the subforms through JavaScript/FormCalc.
    Chintan

Maybe you are looking for

  • Apple DVI to Video adapter + Mini DVI to DVI adapter pins not same

    I just purchased an Apple DVI to Video adaptor so I could plug in a Mac mini to an older tv, however the pin arrangement on the Apple DVI to Video adapter is not the same as the pin arrangement on the Mini DVI to DVI adapter that came with the Mac mi

  • ITunes U not compatible with iPod touch 4th and 5th generation.

    I attempted to subscribe to the course, Moons An Introduction. When opening one of the course books, I get an error message stating I need an iPad to read the book. There is nothing about the course being incompatible with iPod touch. Why can't incom

  • Patch for cluster upgrade from 10201-10203

    Hi, i want to upgrade my cluster from 10.2.0.1 to 10.2.0.3 can somebody help me in finding the upgrade patch from 10.2.0.1 to 10.2.0.3 Thanks Bala

  • OBIEE 11g level based hierarchy

    Hi everyone, here is my problem in brief I made a level based hierarchy for Products, and I need to show the product name beside the product code in the last level in the hierarchy, the steps i made to reach this is as follows: 1- making the name and

  • Security in ODI-specific access to projects and folders

    Is there anyway to give project or folder-specific access within ODI? Some users want to be able to run jobs-but I dont want them to see other projects within ODI. Thanks.