How to check the existence of field in a chain at the level of the header?

Hello


I have a bunch of fields on my_form, just for example here in this announcement I'm on U.S. State names, say for example.

I have 3 domains, their names are as below

1) NY,

2) CA,

(3) TX

I placed a hidden his name, a text field is FGL (I mean, the gray field list), uses this GFL for my purpose of programming

Since the back-end (in our case, its an ERP - SAP) am filling/filling this field GFL, say for example... its data looks like, CA TX (I mean, am concatenating the names of State with a separation of a space)

(FYI... I already have some piece of JS in my_form INITIALIZATION and for certain other purposes docReady event)

Now my requirement is as below,

 

(1) LOOP all objects domain (here they are like state names) of my_form, then check if their name (NY) existing data of GFL... If exisitng (in our case, its not existing) pls shaded with readOnly... If not existing

(in our case, its not existing) pass the coloring and readOnly, go to the next loop / iteration / state / field

Actually, I can achieve my requirement by putting the JS in initialization event each object field as mmee below, (but I have about 200 fields in my_form, that's why I want to put all the field objects of my_form in one piece of code at the level of the header in a generic way in loop),

var myStateName = / NY /;

var returnValue = GFL.search (myStateName);

If (returnValue! = - 1) {;} / / This state/field/object is found in the list of fields of gray, so dimmed with readOnly

this.ui.oneOfChild.border.fill.color.value = "192,192,192."

This.Access = "readOnly";


};

For certain other requirements, one of the experts provided below JS in these forums, as below

function findNodes (vNode) {}

If (vNode.className = 'field') {}

If (vNode.isPropertySpecified ("name") = true) {}

If (.search(/_U$/g) vNode.getAttribute ('name')! ==-1) {}

/ / Script to run, when a match is found

...

}

}

}

for (var i = 0; i < vNode.nodes.length; i += 1) {}

findNodes (vNode.nodes.item (i));

}

}

findNodes (xfa.form);

In fact, I tried to change the JS above according to my needs, but its does not work, please provide me with the correct JS according to my requirement.

Thank you

Try this:

function findNodes (vNode) {}

If (vNode.className = 'field') {}

If (vNode.isPropertySpecified ("name") = true) {}

var myStateName = new RegExp (vNode.name);

var returnValue = GFL.search (myStateName);

If (returnValue! =-1) {}

this.ui.oneOfChild.border.fill.color.value = "192,192,192";

This.Access = "ReadOnly";

}

else {}

this.ui.oneOfChild.border.fill.color.value="255,255,255";//whatever color is free access

This.Access = "Open";

}

}

}

for (var a = 0;<>

findNodes (vNode.nodes.item (a));

}

}

findNodes (xfa.form);

Kyle

Tags: Adobe LiveCycle

Similar Questions

  • How to check all existence directory in TestStand?

    How to check all existence directory in TestStand?

    Is there a function TestStand? Or another option without writing my own code in the external program (for example, LabVIEW or C)?

    Thanks in advance

    Try the Engine.FindPath method. BTW several times when you do file IO, depending on what you're doing exactly, you need to write a code module.

    CC

  • How to check the values in multi-record block. ?

    Hello

    I'm new to forms. I have the field titled "Comments" in the block of multi-record. I have a button called "reject". Reject button is in the control block. If I press the button reject, field comments must be entered in one of the record. Otherwise, he should tell message. How to check the multi-record block. ?

    Pl.Help.

    Thanks in advance.
    Mano

    Mano,

    Add NEXT_RECORD just before the END of the LOOP.

         GO_BLOCK('');
         FIRST_RECORD;
         LOOP
              IF NVL(:., ' ' ) = ' ' THEN
                   MESSAGE('');
                   RAISE FORMS_TRIGGER_FAILURE;
              END IF;
              EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
              NEXT_RECORD;
         END LOOP;
    

    Kind regards

    Manu.

    If my response or response from another person was helpful, please mark accordingly

  • Anyone know how to check the date of warranty until when?

    Anyone know how to check the date of warranty until when?

    https://checkcoverage.Apple.com/Jo/en/;JSESSIONID=9pJ0X9pFPJtNg3c44yDGCvk9pVpt5l QSgn4B60y4Skv1WfmnqMkF!-1840326800

  • How to check the balance on the gift card itunes

    How to check the balance on the gift card itunes

    Redeem it

  • Satellite A200 - how to check the temperature of the processor fan?

    Hi all

    I have a Satellite A200 that my teenagers use a little, or abuse a little! Recently, it would not start up. I suspect the fan and pulled out the fan cleaned and tested the fan on a PSU, worked out well. He put it back together, ran startup repair and now the computer is operating normally. The fan is however not appear to come at all. In the Device Manager it tells me it works very well. I'm all good with the mechanical side of the House, but I'm a quamby operating system! How to check the temp CPU or fan?

    Thought that replace the fan but don't want to go that far just to get no results. Currently using the vacuum on low like an external fan and didn't want to just run the laptop with no cooling for fear of permanent damage. Although children watch movies with her on their doona may have already reached this!

    Any advice would be appreciated.

    Hey mate,

    How to clean the fan exactly? It s advisable to use the jet of compressed air. This could blow the dust of fans cooling and, therefore, it of not necessary to disassemble the laptop.

    In addition if the fan doesn't work anymore it of necessary to replace. You can order spare parts at an authorized service provider.

  • How to check the print queue in Windows 8

    Difficulty controlling the queue with your new Windows 8? Here's a great video on how to do it:

    Hope this helps to understand how to check the print queue in Windows 8. If you have problems, let me know, I'll see what I can do to help.

  • HP Photosmart 7525: How to check the version of the firmware of the HP PhotoSmart 7525 is up-to-date?

    How to check the version of the firmware of the HP Photosmart 7525 is up-to-date? And where can I go to download the latest firmware?

    Hello

    Follow these steps to check the update of firmware for your printer:

    http://support.HP.com/us-en/product/HP-Photosmart-7520-e-all-in-one-printer-series/5199461/model/5286642/document/c03312867/

    Note: the printer must be connected to your network to check the updates, if it is connected with a USB key follow the steps in the tehse to connect the * beep * to your wireless network:

    1. In the wireless menu, tap Settings.

  • How to check the size of the file to a text file.

    How to check the size of the file to a text file.

    Please explain to me.

    I'm new in LabVIEW. and have no idea about that...;

    Hi prashant,

    go to the file e/s palette and then the advanced palette which is a search palletteand sub getfilesize.vi... but this function gives the result in bytes...

    Thank you and best regards,

    srikrishnaNF

  • HP G42 notebook: how to check the heat sensor

    my laptop fire but there is no system message...

    and performance down... could be heat sensor not properly detect...

    How to check the heat sensor...

    my laptop G-42-355tu

  • How to check the use of the ram?

    I have 3 GB of ram on my pc, and I want to know how to check the use of the ram in xp pro? is the use of FP in taskmanager? or (k) of the kernel memory?

    I have 3 GB of ram on my pc, and I want to know how to check the use of the ram in xp pro? is the use of FP in taskmanager? or (k) of the kernel memory?

    Yes, Yes... and no. All applications on your computer uses RAM, not only the pagefile or system (kernel).

    What are you really trying to do?

    See http://www.petri.co.il/pagefile_optimization.htm , especially the part under "How Pagefile your system use?"

  • How to check the manufacturing date of the Z2?

    Hello, so the title sums up pretty much everything this. On the previous xperia phones, you can check under the battery, with xperia Z, that it was written on the back at the bottom but on Z2? How to check the date of manufacture?

    Hello and welcome to the community! Since you are new, please make sure that you have checked our Forum.

    This label can be found in the MicroSD slot, click on the following link:
    http://Userguide.sonymobile.com/referrer.php?region=en&product=Xperia-Z2#IMEI-number.html

  • How to check the manufacturing date of the Z3 Compact?

    How to check the manufacturing date of the Z3 Compact?

    @HerrOdin

    Simple, pull on the flap of the IMEI and search for 14W__

    The first 2 digits are for the year and the last 2 digits are the week

    http://support.sonymobile.com/global-en/xperiaz3compact/Userguide/IMEI-number/

  • How to check the firmware version?

    Hello

    How to check the version of firmware on my device?

    Help, please!

    Thank you

    Hello mohsen122002,

    Hope that this page will help you.

    -Bryan-

  • How to check the type of memory installed (ECC or not)?

    all!

    I have some servers Dell PowerEdge R420 and I want to upgrade memory, install more...

    How to check the type of memory installed (ECC or not)?

    Dmidecode output here:

    Drive.google.com/.../View

    Hello.

    Unfortunately, we are not able to open the link you have provided. You can display information about your memory on the web iDRAC under hardware and memory interface. You see the type of error correction (ECC or Non ECC) within the information memory page. You can also view the same information on OpenManage Server Administrator and even make use of the memory part number to find out more information.

  • How to check the JSON object properties available

    Hi I have a JSON of WebService object.

    How to check the available JSON object?

    ex JSON:

    {

    name: "someName".

    DESC: 'someDesc '.

    }

    How to check the available name?

    Because sometimes not available from the server name properties

    void MyClass::httpFinished(QNetworkReply* reply)
    {
    QString data = (QString) reply->readAll();
    bb::data::JsonDataAccess jda;
    QVariant variant = jda.loadFromBuffer(data);
    QVariantMap variantMap = variant.value();
    QString name = variantMap.value("name").toString();
    }
    

    I want to hide component Label on my .qml if name not available from webservice.

    Thank you

    Kaz32 wrote:

    Hi I have a JSON of WebService object.

    How to check the available JSON object?

    ex JSON:

    {

    name: "someName".

    DESC: 'someDesc '.

    }

    How to check the available name?

    Thank you

    If you want to check if the name is available, you must use

    bool nameExists = variantMap.contains ("name")

Maybe you are looking for

  • I updated firefox to version 9.0.1, but the appearance has not been changed, pc win 7

    I had updated my other pc (vista) and then the appearance in dispute.I tried now with win you 7 one and firefox is still the same as before, but it's the §tre version. When I go to google, the message is always there to update.

  • RefNum becomes zero

    Hello I'm working on Report generation toolkit for MS office, Excel to be precise. I have a loop where in the program takes data from a spreadsheet and paste to another sheet for some operations, Meanwhile, refnum value suddenly becomes zero. Strange

  • Forgotten password for signing

    Hello Sorry for the dummy question, but I can't find a solution. I have everything for the signature, but I lost the password. I can't find an email or something to ask RIM to recover. Anyone know how I can do? Thank you! It's the local f.f. password

  • BlackBerry smartphones can not send e-mail

    I can't send the email from my Bold 9870 but someone sent me an email and I was able to answer.Whenever I have email, it displays a red X in the mail

  • Connections user requests EBS / hour

    HelloCould someone suggest me a script to count the number of Application connections / hour for the last days?The query I used (I think it's Hussein - thanks) gives me group per day. But I'm looking for group by hour.Select Login_Time, count (*) NTC