How to set sub-form to be visible or invisible.

Dear All.
I'd like to set sub-form which is consisted of drop-down button to be invisible.
when this function is proceeded, the layout of drop-down button is still remained.
Please refer to followings.
-------------------------------------------------------- Code --------------------------------------------------------
setPresence(extPath.Result2_MVS, "invisible");
function setPresence(obj, block){
obj.presence = block;
- in case of visible.
- in case of invisible.

Thanks Paul.

Similar Messages

  • How to set a form element value using javascript?

    Hello,
    I have been using the following two functions in AS 9.0.2 to set form values in javascript and it works correctly. However, the same code does not work in AS 10.1.2.0.2. Would appreciate if someone could let me know how to set form elements using Javascript(onchange of a field).
    function set_item_value(p_field_name, p_value)
    var v_index, v_full_name;
    for(v_index=0; v_index<document.forms[0].length; v_index++)
    v_full_name = document.forms[0].elements[v_index].name.split
    if (v_full_name[2] == p_field_name)
    document.forms[0].elements[v_index].value = p_value;
    function get_item_value(p_field_name)
    var v_index, v_full_name, v_return="";
    for(v_index=0; v_index<document.forms[0].length; v_index++)
    v_full_name = document.forms[0].elements[v_index].name.split
    if(v_full_name[2] == p_field_name)
    if(document.forms[0].elements[v_index].type != "radio")
    v_return = document.forms[0].elements[v_index].value;
    else
    if(document.forms[0].elements[v_index].checked)
    v_return = document.forms[0].elements[v_index].value;
    if(v_return == " ")
    v_return = "";
    return v_return;
    Thanks
    Dev

    This is not the best way to write JavaScript in Portal environment!
    You can't be sure that a form is the first in the html source!
    In Portal you change the order of your portlets, and also you can have several instances of the same portlet on the same page!!!
    You should use qualified form and field names!
    Please check the following JPDK methods:
    UrlUtils.htmlFormName
    HttpPortletRendererUtil.portletParameter

  • How to set a form field focus

    Is there a simple way to set a form field focus... so basically on load the field focus is set to a specific field?  I know how to write it in javascript but was wondering if there is a simple way to basically select the field and click a button or two and get the same result?  thanks.

    The script for that is extremely small and very simple.
    In all hosety, it would probably take longer to edit it through the DW interface than by hand.
    Add this after your form and change the bold areas to the name of the form and the name of the input you want to have focus on...
    <script type="text/javascript" language="JavaScript">
    document.forms['myform'].elements['mytextfield'].focus();
    </script>
    Those two things are the only items that will ever change.

  • How to Setting sub-competencies in Fusion HCM

    Hello, Good afternoon.
    I am implementing a project in Fusion HCM Talent Management and the client wants to manage competencies with sub-competencies, and determine the competencies' value according to the individual values of the sub-competencies in the performance evaluation. Please, could you guide me in which way could I configure Fusion to address that behavior.
    Thank You,

    Hi Ashish,
    Of course, the customer has a compentencies model in which each one of the competency is framed within a set of behaviors or sub competencies, and according to whether the employee meets or not taht behavior is determined by the final score of the competency in performance evaluation.
    For example, the client has a competency called "Creating value for customers" and has the following sub competencies:
    Focus on customers
    Encourage innovation
    Adapt easily
    Each of the sub competencies has a weight, then they are sum up to return the value of the competency "Creating value for customers" in the performance evaluation.
    I understand that in Fusion, the competencies are set by Content Types & Content Items, and when creating performance evaluation are evaluated in the content profile, but the customer is interested in changing that for the behavior described before.
    Could you suggest me how to set Fusion in order to give them an alternative?
    Regards,
    Joanna

  • Crystal Report Viewer 11.5 Java SDK - How to set sub report parameter value

    Good day!
    I have a report with 3 sub-reports in the detail section. Main report has two parameters and each sub-report has one parameter in turn. We have our own JSP to receive parameter values from the user. I am using the following code to do the parameter value setting later into the report. Parameter value setting works for main report, but not for the sub-report.
    I get an Error, for the first sub-report, from the viewer saying:
    The parameter 'parametername' does not allow null values
    On this article: [article link|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap%28bd1lbizjptawmq==%29/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333233323331%7D.do]
    It says to set the report name of the parameter field to the name of the sub report. On this aspect, assuming this tip/solution works, I would like to read the names of the sub-reports and their parameter names. I do not want to hard-code them into our application.
    Here is my current code:
    sdk.occa.report.data.Fields parameterFields = new Fields();
    I have a HashMap of <parameterName, parameterValue>
    Iterate through the map
    report.data.ParameterField aParameterField = new ParameterField();
    aParameterField.setReportName(""); //main report
    report.data.Values theValues = new Values();
    ParameterFieldDiscreteValue aParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
    aParameterFieldDiscreteValue.setValue (aValue);
    theValues.add(aParameterFieldDiscreteValue);
    aParameterField.setName(parameterName)
    aParameterField.setCurrentValues(theValues);
    parameterFields.add(aParameterField);
    viewer.setParameterFields(parameterFields);
    Please look at the line:
    aParameterField.setReportName(""); //main report
    Here's where I would like to say
    if (parameter is subreport's parameter) then setReportName(subreport name);
    Thx

    It was little difficult to navigate down the objects to find the sub reports and their parameters. I am attaching the code:
    May be there are other ways to do the same.
    public String getReportNameForParameter (String parameterName, ReportClientDocument reportClientDoc)
            String result = "";
            boolean found = false;
            try {
                SubreportController src = reportClientDoc.getSubreportController();
                DataDefController ddc = reportClientDoc.getDataDefController();
                IDataDefinition idd = ddc.getDataDefinition();
                Fields fs = idd.getParameterFields();
                Iterator fiter = fs.iterator();
                while (fiter.hasNext()) {
                    IField ifld = (IField) fiter.next();
                    if (parameterName.equals(ifld.getName())) {
                        found = true;
                    //System.out.println ("\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
                if (!found) {
                    IStrings reportNames = src.getSubreportNames();
                    //System.out.println ("  Sub Reports If Any ...");
                    if (reportNames != null) {
                        Iterator iter = reportNames.iterator();
                        while (iter.hasNext()) {
                            String repName = (String) iter.next();
                            //System.out.println ("\t Sub Report Name " + repName);
                            ISubreportClientDocument srcd = src.getSubreport(repName);
                            ddc = srcd.getDataDefController();
                            idd = ddc.getDataDefinition();
                            fs = idd.getParameterFields();
                            fiter = fs.iterator();
                            while (fiter.hasNext()) {
                                IField ifld = (IField) fiter.next();
                                if (parameterName.equals(ifld.getName())) {
                                    result = repName;
                                    break;
                                //System.out.println ("\t\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
            //System.out.println ("********************************************************** ");
            catch (Exception exc) {
                System.out.println ("Error/Exception while trying to find the report name for parameter [" + parameterName + "]");
                System.out.println ("*******************************************************************************************");
                exc.printStackTrace();
            return result;

  • How to set a form field that automatically saves as email subject title

    I am creating a form in acrobat 9 and want the submit to email button to automatically use the information from one of the text fields as the subject title of the email. So when the client submits the form at the end the PO number they have used will automatically be the email subject. Is there any way to do this? I have found an example created using javascript but I am very much a novice with this so I don't know where to start with this? Any help would be greatly appreciated

    Read this tutorial:
    http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

  • How to set payment form in payment methods in CRMD_ORDER

    Hi All,
    while creating service order before going to save, i need to check wether the payment card number and type fields are empty or not(in transactional data there is a tab payment methods) , if empty i need to set the payment form field as
    'payment card' as default.
    and one more thing i have to assign a even to this ZFM so that it can trigger before going to save the service order.
    please help me out this is hight priority issue.
    Thank yiou.

    Hi
    This can be acheived using the Field selction control.
    Check the field selction key for the PO document type.
    SPRO-> Materials Management-> Purchasing-> Purchase Order-> Define Document Types.
    Now maintain the filed selction key in
    SPRO-> Materials Management-> Purchasing-> Purchase Order-> Define Screen Layout at Document Level
    In the filed selction group Terms of delivery and payment, maintain the field selection option as display for the fields
    Terms of payment
    Terms of payt. (days, percent)
    For the field selection key ME21N & ME22 also maintain the same
    Thanks & Regards
    Kishore

  • How to Set a Form Mail Address

    I have a form all set up on a web page in DW and what it's
    supposed to do, but I don't know where the field is to put my
    e-mail address for the form to send the info to. I tried putting it
    in "action", but that's not it as a test to see if I'd get anything
    failed. So, where
    do I put my e-mail?

    There are only two ways to process form data -
    1. Use mailto:[email protected] as the action of the form
    2. Use a server-side scripting method to a) harvest the
    form's data, b)
    process it in some manner, e.g., enter it into a database, c)
    formulate and
    send an email to one or more email recipients, and d)
    redirect the visitor
    to some ending page
    Method 1 is quite simple, and is also the least reliable. It
    depends both
    on your visitor having an email client already installed on
    their computer -
    this eliminates public computers, or home users without email
    clients
    installed (more and more it seems) - and on the installed
    email client
    responding to
    the mailto call. It is not possible to use this method *and*
    send the
    visitor to a
    thank you page as well.
    Method 2a is the preferred method, since it eliminates the
    problems of
    method
    1, but it means that you have to grapple with
    server-scripting somehow (ASP,
    CF, PHP, perl, etc.).
    Method 2b would be to use some third-party form processing,
    like
    http://www.bebosoft.com/products/formstogo/.
    You would have to decide which of these methods is best for
    your needs,
    but if it's Method 2a, then start by asking your host what
    they provide for
    form
    processing. If it's 2b, then read their FAQ/instructions
    carefully.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "DanMat6288" <[email protected]> wrote in
    message
    news:fm3p7l$517$[email protected]..
    >I have a form all set up on a web page in DW and what
    it's supposed to do,
    >but
    > I don't know where the field is to put my e-mail address
    for the form to
    > send
    > the info to. I tried putting it in "action", but that's
    not it as a test
    > to see
    > if I'd get anything failed. So, where
    do I put my e-mail?
    >

  • How to set a form field in pro so an 'adobe reader' user can insert a jpg (not a pdf) as an image. It used to work but now doesn't.

    I think this question has been asked a million times before but I'm hoping something has been resolved now! It did work for me and my client a few months ago (by using the 'event.target.buttonImportIcon();' script. I'm 99% certain it worked fine a few months ago, where the adobe reader user could select a jpg to insert...but now it only allows a pdf. Does anyone know if anything can be done? I know you may say LiveCycle but is there really nothing else?
    Thanks in advance.

    There's nothing to solve. If Reader (XI only) is used only PDF files can be selected. This is how it's supposed to work (although I agree it's silly and should be changed).

  • How to set print form for Purchase order in SPRO txn.

    Hi,
         I need to find out the name of the smartform used to print purchase order.
    Cheers
    Senthil

    HI,
    go to SPRO - MM - Purchasing - Messages - Output Control - Message Types - Define Message Types for Purchase Order
    select the message tyoe and then click on processing routines and you will get the form name..
    Thanks & Regards,
    Kiran

  • How to set a select option's item as invisible (using a method code)

    Hi there,
    I need to hide parameters and select option fields, but Iu2019m using the select_option component to add all items to the layout using just one View Container Element.
    I could use to hide the View Container Element setting the property visible, but I need to hide fields with certain conditions. I also could add one View Container Element for each select option, but I have many... I wish I could make in other way.
    Iu2019ve checked the Definitions of the Interface IF_WD_SELECT_OPTIONS  and the Ulli Hoffmannu2019s book and I have found no help at all.
    Thanks in advance,
    Filipe Torres
    Edited by: Filipe Torres on Sep 15, 2008 12:34 AM

    Thank you, this helps but will solve just part of my problem. I'm using many views and to pass the values from those select options and parameters I just declare them in the first view... The other answer helps me more that shows how to remove one element. I was looking for a hide feature and not remove, but seems that I have to remove.

  • How set adobe form as dynamic *urgent*

    Hi,
    I wish to know how to set adobe form as dynamic in web dynpro 7 as my add and delete rows button can't work in web dynpro but can work successfully in adobe formDesigner.
    thank you

    Hi weilin,
    I'm not an expert on Java Webdynpro but i can give you my code in an Abap WebDynpro where i made it and where that works .
    Hope this will help you.
    Best regards.
    <i>
    In the view where my forms have to be display,
    go to methodWDDOMODIFYVIEW
    Here write this code according to Java requirement
    DATA:
        lr_interactive_form TYPE REF TO cl_wd_interactive_form,
        lr_method_handler   TYPE REF TO if_wd_iactive_form_method_hndl.
      CHECK first_time = abap_true.
      lr_interactive_form ?= view->get_element( 'ADOBE' ).
      lr_method_handler ?= lr_interactive_form->_method_handler.
      lr_method_handler->set_legacy_editing_enabled( abap_true ).
      lr_method_handler->set_hide_toolbars( abap_true ).
    Then you form will be display as interactive in your page
    </i>

  • Using a password to make a sub-form visible

    Good day all;
    Now that I have this form nailed down and ready to send to the user, I get asked “1 more thing”.
    On the form I have a button that opens up a sub-form to allow the administration group to add extra notes. They asked if there was a way to hide this from all users except for the people in their area.
    The one thing I thought of was a password. In other words, if a user clicked on the button that was labeled “Admin Only”, the user would have to enter a password for the sub-form to become visible.
    Of course there might be a different ways to do this, so, I would appreciate any help I could get.
    Thanks All.
    Chomp  

    You can use the JavaScript method app.response to ask for a password.
    var pwResponse = app.response({
        cQuestion: "What's the password?",
        cTitle: "Enter Password to show subform.",
        cDefault: "",
        bPassword: true,
        cLabel: "Password:"
    if (pwResponse == "asdf") {
        SubformXYZ.presence = "visible";

  • How to make sub sites in SharePoint 2010 as Read Only

    Hello,
    We have a requirement to make sub site as read only in SharePoint 2010 programmatically.
    How we can achieve it using Server Object Model ?
    Thanks,
    Hatim

    Hi,
    You can write a WinForm program, and use
    SPSecurableObject.BreakRoleInheritance method to achieve your requirement.
    More information for your reference:
    http://fangdahai.blogspot.com/2012/09/how-to-set-sub-site-in-read-only-mode.html
    https://social.msdn.microsoft.com/Forums/en-US/1f836da6-88ea-4d88-9e43-3383d139ca01/what-is-the-idea-of-stop-inheriting-permission-from-parent-site?forum=sharepointdevelopment
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How do I hide objects in all instances of a sub-form?

    I have a list of objects in a sub-form.  They are hidden or made visible depending on the selection of a drop-down menu outside the sub-form.  It works correctly for the first instance, but objects that are supposed to remain hidden become visible in all subsequent instances of the sub-form.
    How do I make the objects remain hidden in all instances of the sub-form?

    I think you want to move all the code from the change event of form1.EXP_Sample_Form.Identifier.Who.LOB_List.LOB_List to the calculate event of form1.EXP_Sample_Form.Bottom_of_Form. 
    Which would then look like;
    switch (Identifier.Who.LOB_List.LOB_List.rawValue)
        case "AmeriHealth Caritas":
            PCPInfo.Docs.SiteVisit.presence = "hidden";
            PCPInfo.Docs.Comments_SiteVisit.presence = "hidden";
            PCPInfo.Docs.SiteVisit_Received.presence = "hidden";
            PCPInfo.Docs.PanelAttestation.presence = "hidden";
            PCPInfo.Docs.Comments_PanelAttestation.presence = "hidden";
            PCPInfo.Docs.PanelAttestation_Received.presence = "hidden";
            break;
    Here is your form with this suggestion made, https://workspaces.acrobat.com/?d=koCEYxi-59F7n5iyIoMhGQ
    Bruce

Maybe you are looking for

  • Code snippet help

    Hello experts I have to read serial number from  characteristic "SBANK_SERIAL_NUMBER"  in class "KSE_SN_ENDOSCOPEs" contained in a name plate data of a instument. i wrote the code but iam unable to see the results at output. Thanks SP Program goes li

  • Downloading MS Office Professional 2010

    I purchased a replacement computer and I am trying to install my copy of MS Office Professional 2010.  I went to office.com/productkeycard; entered my key card; and, got the prompt to start the download.  After downloading I could not get the "run" p

  • Upgrade Crystal Reports 8 to 2008

    hello, do you guys know if there's a tool or a way that guarantees an upgrade path from crystal reports 8 to crystal reports 2008? i have a custom who's interested in upgrading like 150 reports.  I was wondering if there are ways or tools to do so an

  • Upgrade 10.2.0.4 to 11.2.0.2 with proC

    Hello, I want to upgrade 10.2.0.4 to 11.2.0.2 with proC,can you help to find out metalink document. OS=AIX 5.3 Regards, Merri

  • Missing i tunes files

    Computer crashed-fix was to restore back to day 1-lost all iTunes. Used external hard drive to replace all 1500+songs from another computer but when I tried to sync with iPod none sync'd and each song has the ! sign next to it and messge saying 'file