How to set a field in the XML from a script?

Hello

I want to put a flag changes in the xml data when a field is changed. I added a field for that in the xsd, which is linked to the pdf file:

< xs: element name = "modifiedFields" >

< xs: complexType >

< xs: SEQUENCE >

< xs: element name = "countryModified" type = "xs: int" / >

< / xs: SEQUENCE >

< / xs: complexType >

< / xs: element >

And I want to access it when a change event occurs:

salesReport.Page1.ProductNameTableSubForm.ProductNameTable.Row1.country::change - (JavaScript, client)

countryModified = 1;                              does not work

$. modifiedFields.countryModified = 1;     does not work

There is no field in the pdf file that is bound to countryModified. How can I set the value of the countryModified field without going through a field related to this?

Thanks in advance for your help.

See you soon,.

Arne

Without seeing the entire xml structure I can't give you the exact syntax, but it would be something like this:

xfa.datasets.data.modifiedFields.countryModified.value = 1

Paul

Tags: Adobe LiveCycle

Similar Questions

  • How to set a field to the screen where I want

    Ma have a nice one for all

    Here I have a prob is that I keywordFilterField.getKeywordField () and keywordFilterField in my screen when I scroll "keywordFilterField.getKeywordField ()" also go to accrding to the list, but here I want to Scrool only to list items to please help me in this regard.

    I got the answer I added this field to title

  • How to set a field in a form of DML to only display?

    It seems that it would be obvious, but I can't figure out how to set a field in a DML form read-only.  Thanks for all the ideas.

    The most obvious thing is to define the type of item to display only. Save Session State to Yes if the value of the item is required in after not submit treatment or if the value is only for display on the page.

    Alternatively, if you want the element to appear as a normal text control, but do not be modifiable, set the item text field and the custom attributes type to readonly .

  • How to set up and enable the WINS and WINS-R resource records?

    How to set up and enable the WINS and WINS-R resource records?

    Hello

    Please repost these questions in the Technet Forums

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    See you soon.

  • How to set background color of the text?

    I have a TextFrame: abcd

    I want to set the background color of the text "bc" is red

    How to set background color of the text?

    Who would be with custom underscore. Set the solid style, choose a color and to adjust the weight and offset of an underline, making it thick and move up behind the text.

  • How to disable certain fields in the form of a calculation with a checkbox for the fields.

    How to disable certain fields in the form of a calculation with a checkbox for the fields.

    In Canada, we have taxes

    I create a form that allows them to calculate a total

    Shema-pdf-form.gif

    I need to be able to turn off all of those taxes to participate in the calculation and to their field visible should be 0

    I was thinking about using a check box (when the checkbox is enabled (Yes) the tax is calculated, unchecked (Off) the tax is not calculated and visible field should show 0 or anything...)

    I really need help on this one, I am a complete newbie...

    Note that the second tax is calculated on the sum of what the first tax Add (tax first is pan-Canadian tax (all provinces).

    The second tax is never only use (Quebec only (in addition to one Canadian)

    Sometimes to sell outside Canada - no tax at all is calculated...

    What should I do?

    Yes, it's just the JS...

  • How to stop taking control in the page from popping up every time I double click on the firefox desktop icon?

    Pop - up when I double click the icon of firefox on the desktop, the home page and control of two-page fact sheet page. How to stop taking control in the page from to appear repeatedly when I double click the icon of firefox?

    You can solve this problem with the file blocklist.xml was forced to update.

    See:

  • I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I'm not

    I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I don't?

    Are you turning in the Apple device, a company or the insurer? Can you turn on the device? If so, you could try to send a command to erase with iCloud. If this is not the case, if her deal with Apple, they he will wipe away. If the only damage the screen, you don't want just the screen replaced?

  • the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    Hello

    It seems that you want to restore the files removed from the memory card.

    I will definitely help you with this.

    I would say you can search the Internet for data recovery software by using your favorite search engine.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.

    Thank you.

  • How to disappear an image of the layer from left to right to display gradually the image below, that is solid on the left to slide to the right?

    How to disappear an image of the layer from left to right to display gradually the image below, that is solid on the left to slide to the right?

    No need to clarify, Mark. Thank you very much

  • How we change our plan of the plan from photography to plan student (all products)? I recently became a student in graphic design.

    How we change our plan of the plan from photography to plan student (all products)? I recently became a student in graphic design.

    Please contact Adobe support to terminate this program & re buy a new plan according to your choice.

    In case you are re buying a different plan, cancellation fees are waived off the coast.

    Concerning

    Stéphane

  • Is it possible to create a new file using the XML via java Script?

    Hello everyone,

    Is it possible to create a new file using the XML via java Script

    • I have xml information that need to use for file name, size.
    • Based on xml file we can create a new file in InDesign with java script?
    • Kindly help me if anyone has an idea about this.

    I use InDesign CS4 on windows 7

    Sample file is attached below.

    Kind regards

    Siva

    <UpdateAd>
    <AdId>3403699</AdId>
    <Width type="mm">91,79</Width>
    <Height type="mm">80,00</Height>
    <ProductionCategory>4</ProductionCategory>
    <BookedCCIColors>sw</BookedCCIColors>
    <WorkFlowType>PDF</WorkFlowType>
    <CustomerNumber>652224</CustomerNumber>
    <CustName1>Erich Prang</CustName1>
    <Description/>
    <Description2>R</Description2>
    <UpdateIns>
    <Titel>RHZ</Titel>
    <Publication>B2</Publication>
    <RunDate>26-07-2011</RunDate>
    <Zone>H30</Zone>
    <KDDATEN>nein</KDDATEN>
    </UpdateIns>
    <WorkflowStep>IR</WorkflowStep>
    <Proof>No</Proof>
    </UpdateAd>
    
    

    xml.png

    Try this:

    var f =File.openDialog ();
    f.open('r');
    var xml = new XML(f.read());
    f.close();
    
    var myDocument = app.documents.add();
    myDocument.documentPreferences.pageHeight = xml..Height+"mm";
    myDocument.documentPreferences.pageWidth = xml..Width+"mm";
    var rect = myDocument.pages[0].rectangles,add();
    rect.geometricBounds = myDocument.pages[0].bounds;
    rect.strokeAlignment = StrokeAlignment.INSIDE_ALIGNMENT;
    rect.strokeColor = myDocument.swatches.item("Black");
    rect.strokeWeight = 1;
    myDocument.save(File(f.path + "/" + xml..AdId + ".indd"))
    

    Substances

  • How to get the XML from the Request of Java object before sending. SOAP Web services

    I'm building Java request to Online Web Services and we'll call it application A . I got the WSDL forms the second part of the file in order to communicate with their application and we'll call it application B .

    Of the WSDL file generate the Java required classes that are Requests and Responses . classes Application A will send some request object after setting the parameters required and with the exception of response object of application B .

    The connection is established and the two applications A and B communicate with each other.

    Question:

    Of application A How can I get the xml data (or text file) for the request object before sending it to application B ?

    As described the connection is passing Java object such as request and I know that in some point this request will be converted to xml file. How to get it?

    -EDIT-

    Missing important information which can be confusing.

    I'm generated the Java rating were generated using the Axis framework

    The problem is solved by, add the following statements in the bindingStub class that was automatically generated from the WSDL file to the web-services you are trying to access.

       String request = _call.getMessageContext().getRequestMessage().getSOAPPartAsString(); 
     String response = _call.getMessageContext().getResponseMessage().getSOAPPartAsString();
    

    These statements should be placed after the following method call _call.invoke otherwise you will get NullPointerException .

    _callis a variable of type org.apache.axis.client.Cal and it is automatically generated byAxis

  • How can I find and replace the xml tags?

    Hi, I am using xml in my workflow and want to be able to remove some tags if they contained particular text.

    Here is an example of the xml struct...

    < Entry >

    < name > DEFAULT < / name >

    < such > default < / such >

    DEFAULT < address > < / address >

    < / Entry >

    I use this initial structure to define paragraph styles to follow when you import the xml data.

    This leaves DEFAULT in place everywhere where an entry is not any content of this field.

    I want to be able to import my XML and then run a script that deletes tags that include by DEFAULT, - I need to the xml tag to remove not only the text, if I do a normal find and replace will remove only the text not the tags that is causing problems with style. I also want to remove the end of para/return (^ p) that I placed at the end of the line. So it would be the same opening editor mode and removing content, tags + hard back in there, but I want to automate the process...

    So I think that's what I'm looking for in each case

    "< name > DEFAULT < / name > ^ p.

    and I want to replace it with nothing.

    Is this possible in a script (ideally javascript)?

    I have a little knowledge of javascript, but don't know how to search for and target this kind of string in indesign...

    using indesign cs5

    Thank you very much

    Hello

    Script should do it in two steps:

    1 find all occurrences of that is ' > by DEFAULT.<>

    2 delete the whole paragraph which is a found_text container.

    For example, in this way - JS - (a textFrame filled your text must be selected):

    var mStory = app.selection[0].parentStory;
    app.findTextPreferences =  null;
    app.findTextPreferences.findWhat = ">DEFAULT<";
    var myF = mStory.findText();
    var count = myF.length;
    while (count--)
         myF[count].paragraphs[0].remove();
    

    Rgds

  • How to set CurrentDateTime field date. MinValue in valueChangeListener

    Hello

    I use Jdeveloper 11.1.1.2. I dropped a view as a table object and a validation button below the table for the jspx page and in this table, I have 2 columns is selectBooleanCheckbox
    and another date. MinValue field.

    My requirement is each time a person change the value that is to check/uncheck true/false checkbox, I need to for the column Date.MinValue currentDateTime.

    I'm trying this way

    < af:selectBooleanCheckbox value = "#{row.bindings.DocumentFlag.inputValue} '"
    label = "#{bindings." OTMEmployeeCoursesView1.hints.DocumentFlag.label}.
    required = "#{bindings." OTMEmployeeCoursesView1.hints.DocumentFlag.mandatory}.
    shortDesc = "#{bindings." OTMEmployeeCoursesView1.hints.DocumentFlag.tooltip}.
    ID = "it2' autoSubmit = 'true '.
    valueChangeListener = "#{backingBeanScope.backing_EmployeeTrainingDocuments.setDateonValueChange}" >
    < f: validator binding="#{row.bindings.DocumentFlag.validator}"/ >
    < / af:selectBooleanCheckbox >


    {} public void setDateonValueChange (ValueChangeEvent valueChangeEvent)
    valueChangeEvent.getComponent () .processUpdates (FacesContext.getCurrentInstance ());
    getTableCurrentRow (employeeCoursesTable);

    }

    {} public void getTableCurrentRow (myTable richeTableau)
    CollectionModel cm = myTable.getValue ((CollectionModel));
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)
    cm.getRowData ();
    String LastUpdateDate = rowData.getAttribute("LastUpdateDate").toString ();
    String DocumentName = rowData.getAttribute("DocumentName").toString ();
    String DocumentFlag = rowData.getAttribute("DocumentFlag").toString ();
    System.out.println ("value DocumentName is:" + DocumentName);
    System.out.println ("value of DocumentFlag is:" + DocumentFlag);
    java.sql.Date Date.MinValue = new java.sql.Date (System.currentTimeMillis ());
    SimpleDateFormat formatter = new SimpleDateFormat ("" dd/MM/YYYY HH: mm: a "");
    Formatter.format (inputDate);
    rowData.setAttribute (LastUpdateDate, formatter.format (inputDate));
    System.out.println ("getSqlToday () is:"+Formatter.format(inputDate)); ")
    }


    and I get an error like

    oracle.jbo.NoDefException: Houston-25058: 2011-03-24 16:01 type attribute definition is not found in noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_848.


    can someone help me how to set the value currentdatetime in valuechangelistener.

    Thank you
    Herald

    Suggestion: assuming you are using ADF BC, this would be better done at the level of the Entity object. You just when the Set accessor for the DocumentFlag attribute is called, also call the setter for the attribute date setting the value to the current date/time.

    CM.

Maybe you are looking for

  • About this Mac disk storage error

    My storage said I have 21GB in movies and I looked up and down and emptied everything (after saving) I could and he said that?  Can someone show me the ways of the force to solve this problem please? Thank you and blessings, Dave Yaeck

  • Problems of updating BIOS on Satellite L40 - 15G

    Good afternoon. I have Toshiba Satellite L40 - 15G and I want to put 4 GB of ram (2 x 2).It works with 3 GB but with 4 GB it just does not start - gives me a blue screen. I read on the internet and discovered that I have to update my BIOS (my version

  • Need drivers XP for Satellite P200-14O

    Hello! I need driver xp for this model (Toshiba satellite P200-14O pspb0e) or can I use driver some someone else?Any suggestion or help? I would be very grateful!

  • Envy 15-j010sr I can not find drivers

    Hello. I have the problem. I can't find the drivers on windows 8 I check this http://h10025.www1.HP.com/ewfrf/wc/product?cc=us&DLC=en&docName=bph07143&LC=en&product=5449315 but do not find drivers. Please, send me the link for the download. Ty

  • Structure of the timed real-time event loop does not work

    I'm a new user for LabVIEW. And I've encountered a problem that frastre really me! Hope someone can help out me. Thanks in advance! I just want to use the structure of the event under timed loop, which is important in my extrmely design. However, thi