Run JavaScript passed through the form data.

OK, I'm in SAP.

SAP fills some hidden fields.

until now, the area, say fieldX rawValue = sectionX.fieldY.presence = "open" "

xfa.host.messageBox ("test" + fieldX.rawValue);

********popup says************************************

test sectionX.fieldY.presence = 'open ';

***********************************************************

Now, I want to take this code in fieldX and actually run.

I was doing this in a scriptObject section that I created.  The function I created sees the fieldX value, but I don't know how to run the code stored in fieldX.

thoughts?

Hello

You should be able to use the JavaScript eval function, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval.

Then;

eval (fieldX.RawValue)

This value of the present in a script object will be the more shape.   If you run it in a form like a button object, this will be the button.

Good luck

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • Looking to run a script when the form gets focus

    Hello all flexers out there...
    I have an application that uses a tab navigator control that is embedded inside a tab navigator control. Basically, it gives me two rows of browsers tab which is really cool. My problem, well my flex related question, is that I want to trigger a code when I select one of the tabs in the browser built-in tab control.

    I tried to use the indicator of activation in the header tag but who does not have the first time the form is opened, more it will always fire when the browser loses focus. I tried the indicator initialization, but this event only fires when the form is created first and before all the data is passed to the form. The creationComplete triggers once and it was after that the form is created the first time, but before that any data sent to it.

    Grrr... I need to initialize a few combo boxes, but I only want to run the Action Script when the form gets the focus and I need to have the data available before running the script. Any ideas?

    Thanks in advance for the help!

    Have an ordinary day...
    KomputerMan ~ |  :-)

    Thanks for the tip of Tracy, but the change event fired off so many times, I stop counting until I killed my debugging session.

    After reviewing all the events in the model itself, I finally started to recede in the code. It turned out that the show in the canvas that called the 2nd tab navigator works best.

    There is one thing about Flex that makes me just batty. The way in which things are called and the number of times where things sometimes called in Flex doesn't make much sense at all. I think we should clean up the sequence of events in Adobe Flex! I keep seeing all kinds of events fire off several times and I can't understand why. Well the show solved this problem for me!

    Have an ordinary day...
    KomputerMan ~ |  :-)

  • When I complete and sign a form and then print it out, the form data does not print.

    When I complete and sign a form and then print it out, the form data does not print. The form fields are empty with the exception of any signature.

    Thank you. Depending on your answer, I have compiled a procedure:

    Fill & sign a form in Adobe CD and print the form fields:

    (1) open the document.

    (2) click on tools - prepare the form. All fields are displayed in a vertical list in the bottom right of the screen.

    3) click on the first field in the list, scroll to the bottom of the list and shift-click to select all.

    4) click on the first field in the document, make a right click, select Properties.

    (5) on the general tab, uncheck the box locked in the lower left corner. Under field properties common form, select Visible and uncheck the read-only box, close.

    (6) print out and save the file.

    Note: even if you select all the fields in the document in step 3, this procedure may work for the fields on page 1. In this case, repeat steps 3 through 5 for each subsequent page.

  • Golden Gate 12 c 1z1-447 will become available on view of scheduling? or is it passed through the beta process

    Hello

    Golden Gate 12 c 1z1-447 will become available on view of scheduling? or is it passed through the beta process.

    I remember never 1z0 - 447 Oracle 12 c Golden Gate Essentials review be a review.

    He has demonstrated lately on the oracle website.

    but I don't see it on the site of the view.

    I thought it was supposed to become available to plan August 8.

    Roger

    Looks like someone screwed up PV.  When you click on the "View reviews" link on the main page of Oracle to PearsonVue 1Z1-447 appears under «Other reviews"rather than «beta reviews»

  • How to use several adf 12 shape and insert the form data in to table during the click on "submit" button

    How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?

    Make sure that you dragged the VO based EO.

    Also make sure that the VO attributes based EO Updatable property.

    The query according to VO is used only to add LOV to the column of the original VO ModelId.

    See you soon

    AJ

  • Why is there not an option to print only the form data in Adobe XI?

    I created a form in Adobe Acrobat Pro XI and saved.  So I want to open it in Adobe Reader, fill it in and then print only the data from the form, but it is not an option to print only the form data in Adobe Reader XI.  I don't know if it's in the way I created the form or something else.  Any help will be greatly appreciated.  Thank you!

    Adobe is a software company, unless you are a builder.

    Player cannot directly print the form data.

    The ability to print the form data only exist in Acrobat Professional and Acrobat Standard. To purchase the full product provides more bang for the buck.

  • Why doesn't the space bar "click on" than the tab through the form?

    I want to know if it is possible to change the buttons on my form so that when a user presses Tab through the form by typing they can simply press the SPACEBAR while the button is highlighted to 'click' top.  Also, if anyone knows a button cancel out of the tab order?

    Hello

    Not that I know of. The default behavior is that when a button has focus, the button enter fire the click event.

    Also, I don't think you can exclude a button in the tab order. If you open the palette tab, you can move the button to the bottom of the tab order, but you can't completely eliiminate it.

    Niall

  • Passing in the form of data members in the business rules page

    Hello

    I explored features of calculation Manager and how variables are handled in Hyperion Planning 11.1.2.3. I created 5 global variables that must be spent by a members of page of form data, but when I press save button that triggers the recording on / used members page / quick cache, a command prompt opens with the Member of default variables. How can I make the page members to BR? Should be pretty simple, but could not find the problem so far.

    Thank you

    Try selecting 'Member' instead of 'members' in the variable of calculation.

    Kind regards

    Altair

  • Change email of workflow based on the form data?

    I would like to send for submission of form data to different addresses according to what is selected in a drop in form? Is it possible using Javascript or liquid? Can I change roles or workflows on the fly?

    Thanks in advance,

    Bob Peterson

    Try this:

    Configuration of workflow notifications

  • How to run a file through the command prompt window

    I try to download a zip called Kindle Gen - file instructions say I should first extract it to c:\KindleGen and then run it through the command prompt window by typing c:\KindleGen\kindlegen (I ' v it not compressed)

    The showsc:\Users\Barry prompt window > then I'v typed into it after the > but its not to recognize the path to the file.

    Wonder if anyone can advise this as i ' v hurts?

    Thanks Barry

    I try to download a zip called Kindle Gen - file instructions say I should first extract it to c:\KindleGen and then run it through the command prompt window by typing c:\KindleGen\kindlegen (I ' v it not compressed)

    The showsc:\Users\Barry prompt window > then I'v typed into it after the > but its not to recognize the path to the file.

    Wonder if anyone can advise this as i ' v hurts?

    Thanks Barry

    If you have used Windows Explorer (computer) to create the directory in question (C:\KindleGen\) and extract the files in this directory...

    Open a command prompt.

    Type:

    CD \KindleGen

    Type:

    DIR

    Run everything you are supposed to run by typing the name.

  • Try to add my volume icon to the taskbar. Has passed through the stages but unable to check the box for the icon?

    I noticed that when I turned on my laptop that the volume was very fort! So, when I went to my silent icon it is when I noticed that he was not there with my battery power icon button. Then I wen through the steps to add them both back to my taskbar. Which were: click Start and then right click on the properties button, and then on the Notification area. Under system icons it won't let me check the volume and the power icon icon!

    Help

    Hello Annette,.

    From your description, I understand that you are unable to add the volume icon and the power icon to the taskbar.

    Run the fixit suggested in the following link.
    System icons do not appear in the notification area in Windows Vista or Windows 7, you must restart the computer

    http://support.Microsoft.com/kb/945011/en-us

    Registry WARNING: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see this link:

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry

    If you have additional questions, or if this problem persists, come in and we will be happy to help you.

  • Passing through the system properties in the user accounts, I have a user called "Account unknown" is not appear in manage my accounts, how to find it and access?

    I was looking through system properties... went into the settings in advance to user profiles...     I have a user called "Account unknown" this account is not displayed in manage my account, how can I do to find out what I can access it or delete it if I need to...

    Check out these links:

    Impossible to remove an unknown account, get the error 'cannot delete the unknown account because this object inherits permissions from its parent.
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/unable-to-remove-account-unknown-getting-error-you/8d01c84d-4bda-4A42-9425-53818eb1af21?page=1

    the former admin account controlling many files how to remove this unknown account I have only one account and can not delete or move files.
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/the-old-Admin-account-controlling-many-folders-how/3160990a-e723-45dc-84E8-3e493ef57c89?page=2

    Vista - unknown account
    http://www.Vistax64.com/Vista-account-administration/69763-unknown-account.html

  • Need JavaScript to get the forms box size

    Hello

    I need a JavaScript to get the box size. For example, I have a 100 boxes in a PDF form, and according to our concept, the size of appearance of checkboxes must be 10. and if I check one by one, then it is a tedious process. So I have a java Script to which I get all the box size of appearance in a console.

    Try this:

    for (var i = 0; i)

    var f = this.getField (this.getNthFieldName (i));

    If (f == null) continue;

    "If (f.type! ="checkbox) ' continue;

    Console.println (f.name + ":" + f.textSize);

    }

  • Scripts to export the form data to CSV format

    Is it possible to create a script to point to any PDF file containing the form fields and then export this data to a specified folder?

    Not exactly.

    You can write your write your own function to collect data and create a CSV file with it, but save this file in a specific folder must be performed by the user.

  • How to run a code in the form postSubmit event

    Hi all

    I have a simple code that runs perfectly when I put it in form : preSubmit: event, but when I moved to the : postSubmit: event it does not .

    Please let me know where to put my code if I need just to be executed once the form is submitted?

    Thanks in advance,

    Mohammed Al-Christiane

    Try using this code:

    vMsg var = ""; message to display to the missing mandatory fields

    var successflag = 1; indicator to determine if a required field is null

    validate all required text fields

    for (var nPageCount = 0; nPageCount

    var oFields = xfa.layout.pageContent (nPageCount, "field");

    var nNodesLength = oFields.length;

    for (var nNodeCount = 0; nNodeCount

    If (oFields.item (nNodeCount) Contracting == "error") {}

    If (oFields.item (nNodeCount) .rawValue == "" | ") oFields.item (nNodeCount) .rawValue == null) {}

    vMsg += oFields.item (nNodeCount) .name + ",";

    successflag = 0;

    }

    }

    -type in your code

    If (successflag == 1)

    {

    run the insertion in the database code

    }

    on the other

    {

    XFA. Host.MessageBox (vmsg); Displays the names of missing fields

    }

    Kind regards

    Chaitanya

Maybe you are looking for