Dynamic Form ---- How to define mx:model or Param/value

I have created a dynamic Form reading input type from
external .xml file. Does anyone have advice concerning sending the
form data to an external .jsp or .php file without knowing what
your <mx:Model> will be? Whenever I try to write:
<mx:Model>
<root>
<q1>data</q1>
<q2>data</q2>
</root>
</mx:Model>
I receive this error: 1120:Access of undefined property
event. I am sure this is because the form elements are created
using actionscript and not within mxml.
I also tried sending it within actionscript using the
send.data(param) like this, same error:
var service:HTTPService = new HTTPService();
//service.contentType = 'application/xml'
service.resultFormat = 'e4x';
//service.destination = 'DefaultHTTP';
service.url = 'URL removed';
service.method = "POST";
service.addEventListener("result",handle_loginResult);
service.addEventListener("fault",handle_loginfault);
var o:Object = new Object();
o.q1 = event.q1;
o.q2 = event.q2;
service.send(o);
Example
of the Application with elements rendered
If you would like to see the complete code:

What are you expecting "event" to refer to?
Put an id on your Model tag, then you can use it to reference
the data.
Note, mx:Model builds a tree of dynamic objects. You will be
happier in the long run if you use mx:XML instead.
Tracy

Similar Messages

  • Portal Forms - How to make a Field with DEFAULT value NON-EDITABLE by Users

    I HAVE A FORM WITH A DATE FIELD ON IT WITH DEFAULT VALUE.
    THIS IS A TABLE-FIELD.
    I WANT THE FIELD TO BE DISPLAYED ON THE FORM BUT NOT TO ALLOW
    USERS TO EDIT/CHANGE IT.
    HOW CAN I DO THIS?
    TKS IN ADVANCE

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

  • Custom Text disappears on exit when using Dynamic Forms

    If you have a dropdown list and you tick the box to "Allow Custom Text Entry" in a Dynamic form format, it will not hold the custom value when you leave that field.
    If you save the Dynamic form as a Static Form the custom entries work fine.
    I need help ASAP with this as it is very annoying.
    Thanks in Advance

    I need help with this. I followed these instructions to the T as far as I am aware but I cannot get it to work. I get the error message:
    "Script failed (language is formcalc; context is
    xfa[0].form[0].form1[0].#subform[0].DropDownList1[0])
    script=addEnteredValue(sDropdown_XFA, svalue)
    var oDD = xfa.resolveNode(sDropdown_XFA);
    if ((null == sValue) || ("" == sValue))
    return;
    var sLBValue = "";
    var bFoundValue = false;
    for (var i = 0; i < xfa.resolveNode(sDropdown_XFA + ".#items").nodes.length; i++)
    sLBValue = xfa.resolveNode(sDropdown_XFA + ".#items.#text[" + i + "]").value;
    if (sValue == sLBValue)
    bFoundValue = true;
    if (!bFoundValue)
    oDD.addItem(sValue);
    oDD.rawValue = sValue;
    addEnteredValue("form1.#subform[0].DropDownList1", gDropDownTemp.value);
    gDropDownTemp.value = "";
    Error: function 'addEnteredValue' on line1, column 38 is unknown. "
    Obviously I'm doing something wrong. How do you make it recognize the addEnteredValue function? -- When I added "gDropDownTemp;" to the File-->Form Properties-->Variables tab it said that it MUST have a value so I put 0, it wouldn't allow me to not enter a value even though instructions say otherwise. I'm new to this and I know what I want but getting to that point is another story it seems. Any help would be greatly appreciated.

  • How to Define a Dynamic Barcode on a PDF Page?

    I have a situation where we have a PDF form with multiple rows, (rows can be added as per the user's requirement), means user can click AddRow button and pdf will generate a new row to fill the data. There is no max limit of the rows, it vary and can be anywhere from row 1..10, 1..100, or 1..50 and so on.....
    The first pice of the form is to create table/row with Add Row button has been completed. I have already added the AddRow button functionality into the form, but we also need to point the row's data to the barcode. Each data row should point to a single barcode 1 to 1 bases (One row one barcode). How to implement and design the barcode so that each row will be handled dynamically with one barcode? Or, if there is any better approach to handle this.
    I would really appreciate if you could send any document, example or sample.
    Thanks!

    Consider the following scenario:
    if you have defined a table and made a Cell in the table contain a TextField and it repeats, the SOM expression would look this
    form1.Table1.Row1.TextField1[0] (Cell1 of Row1) as an example.
    This instance of TextField[0] can be captured in the barcode Collection via the collection UI, but there is no way through the UI to get form1.Table1.Row1.TextField[1] (second instance) included in the barcode data.
    I would check this blog entry out if you are interested in capturing values for repeating objects in a barcode, such as you might find in a dynamic table of a dynamic form:
    http://blogs.adobe.com/formfeed/2010/02/paperforms_2d_barcodes_with_re.html

  • How to create a dynamic form with bind variables :schema & :table_name

    My application has two LOV's, one to select a schema, and the next to select a table within that schema. I then have a button which passes me to a report which displays the data in that table.schema.
    I now want to create a link to a form where I can edit the record based on the rowid of that table.schema, but it doesn't appear that I can create a dynamic form where I pass the schema.table_name and rowid. Is this possible? Can anyone advise how I can do this? The form builder only wants a fixed schema/table name.
    Thanks in advance.
    Stuart.

    Hi Stuart,
    In this sort of situation, you will need to be a bit creative.
    I would suggest a pipeline function called as if it was a report.
    Then you can pipe out the required fields.
    Since you will have a variable number of fields, you could use two of the multi row field names for your field names and values.
    Then after submit, you can create your own procedure to loop through the fields (stored for you in the Apex package) and update the table as required.
    Not very specific I'm afraid, but it should work.
    Regards
    Michael

  • How to make my dynamic form pages flow correctly?

    I have created a dynamic form which has multiple questions with expandable text fields that will take multiple pages once completed.  I do not know how to make the form flow correctly past the first page.  I can attach the form if I knew how to do that.

    Thank you Paul.  Your editing assistance was greatly appreciated. I think I now understand that there should be only one page subform that is flowed, regardless of how many text box objects I have in my questionnaire. This did the trick.

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • How to get the index of subform in dynamic Forms??

    We are creating a Dynamic Form in which there is a field "PAN number" in a block. With the Script, we are replicating the blocks. Suppose there are 10 blocks (hence 10 PAN number fields will be there) and if the user wants to enter the PAN number in any of the blocks, how can we get the index of the block on which a value has been entered?

    Are you sure you are using JTree? (I couldn't find a method named getIndex at all!)
    As I couldn't quite understand what you are getting at, one thing that would be helpful is if you refer to "How to use Trees" in The Java Tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

  • How do I translate a dynamic form from english into spanish?

    With your assistance, I was able to create a dynamic form with expandable text fields. Now I am being tasked with translating this form from English into Spanish.  I do not know how to edit the words in the text box captions so that the appropriate accents are added.  Currently, the text font is Myriad Pro.

    Hi,
    check my example.
    It explains how to design multiligual forms.
    http://thelivecycle.blogspot.com/2010/01/multiligual-forms.html

  • How to save a completed form that was created as a dynamic form, with expandable files?

    I have created a dynamic PDF form with expandable fields etc. As this is to be accessible for customers to completed, how can they save a completed copy on their own PC?
    I tried it myself and I receive an error msg stating that I can only save a Blank Copy of this Form:  Data typed into this form will not be saved. Adobe Reader can only save a blank copy of this form.
    How can I create a dynamic form (with expandable fields/flowable layout etc) that allows the applicant to not only complete the form but also, to save a completed copy?

    Thanks! That worked , however I now have an additional issue.
    While the form works in Internet Explorer (I'm using IE11), in that it's viewable, it opens and allows me to save etc) it doesn't work in Google Chrome and I'm getting the below error message:
    Any ideas on why it doesn't display in Chrome and does in IE (I'm using the same PC and I'm using Adobe Reader XI)!
    there are other PDF forms on site that are not dynamic but are fillable, and these are opening!
    Thanks

  • How to define a text index in data modeler

    Hello,
    how to define a text index (indextype is ctxsys.context) in data modeler?
    The SQL-command would be:
    create index P1_TEXT_BESCHR_SPRACHE on P1_PDM_MODUL_SPRACHE(BESCHREIBUNG) indextype is ctxsys.context
    parameters ('lexer global_lexer language column LANGUAGE format column FORMAT STORAGE PDMSTORE')
    online
    Thanks in advance for any help.
    Monika

    Hi Monika,
    After creating relational model, you'll have to create physical one. In physical model there is index properties dialog, where you can adjust context index properties.

  • How to define a PDF form

    Hi all,
    I am working on a HIPAA form, we have defined this as a SAP script in our system, but SAP has provided a functionality where we can define our output as a sap script,pdf or smart form (but for that we need to define the foem in all three ways). Right now we are just dealing with SAP script but we want to get it generated as pdf. so can you please tell me how can I define my pdf... or is there a way where I can look out for the std pdf provided by SAP, the same way as we do have std. SAP Script.
    Thank you.
    Raj

    Hi Pavan,
    Thanks for the reply... actually the issue SAP has issued a std transaction THIPAA for issuing the Hipaa certificate, and this transaction is calling program RPLHIPU1. The program looks for the entry in the table T5F99OSFT and see if the form is defined as a sap script, smart form or pdf. So we have a ability to maintain the values in this table if we want out HIPAA certificate to be defined as a pdf,sap script of Smartform. So when I maintain the value as sap script in the table T5F99OSFT it did print the certificate. (because we have defined a sap script for it and I just and I just assigned that SAP script in the table)But when I tried to get it printed as a pdf and put the values in the table and ran transaction THIPAA it just said the entries are not maintained and same is the case with Smartform also. So when looked if there is any smartform defined which I can assign in the table I couldn't find any, so I was just wondering is there way where we define our form as pdf and then I can assign the values in the table T5F99OSFT.
    THanks,
    Raj
    Edited by: rajatg on Aug 5, 2009 5:09 PM

  • How to define the dynamic navigation between two component in web ui

    Hi All,
    I have a requirement to create a new assignment block in accounts overview screen .
    1.Created new view(Table view) in the BP_HEAD component.
    2.Created new button on the table view toolbar .
    3.If the user clicks the new button it should navigate to interaction log component(BT126H_CALL).
    Please hekp me step 3 how to do .
    I have checked planned activity assignment block in the account but is dynamic navigation.
    Please explain me how to define the dynamic navigation between two components.
    What is window delegate .
    Thanks,
    Venkyy

    Hi ,
    Kindly follow the link , this will be helpful for your issue :
    http://wiki.sdn.sap.com/wiki/display/CRM/CRM-NavigatingtoyourcustomBSP+component

  • How I can create dynamically-formed requests or use native SQL in EJB?

    Hi all.
    I'm working around modify an example from NetWeaver Developer Studio (CarRental). I want to get ordered data from table and allow users to specify the ordering field, not in the code. EJB QL doesn't support dynamically-formed queries like "select object(b) from QuickBooking b where b.status like ?1 order by b.<b>?2</b>" so i can't passing field name as parameter into query. Creating a sorting method for every field is not good solution because I need a dynamically-formed requests.
    I think using native SQL will help but I don't know how I can use SQL in EJB.
    Thanks,
    Lev

    import javax.persistence.EntityManager;within class, place
    protected EntityManager  entityManager;of course make it public, private, whatever you need.
    Then, in your method
    entityManager.createNativeQuery(....);R. Grimes

  • How to define new colors for the form?(Finish)

    Hello! Everyone!
    I want to define new colors for the new form.
    But I don't find where I can define it.
    How to define new color for the form?
    Thanks in advance!

    You have to set the Canvas color or as I said earlier you need to use one of the available color schemas on the OAS or Builder runtime.
    If you want to use user defined colors in the builder, then you need to create a new color palette and use it.
    I personally haven't tried it, but there is a section in the online help that describes how to do this.
    Tony

Maybe you are looking for

  • Objects Used

    Hello, I have a  bunch of infoobjects and I want to know if they are being used in queries? how can I? thanks

  • Kanban with purchase order : avoid manual change status to full

    Dear guru , i use a kanban with purchase order. When I enter status empty (using for example PK13N) the system create purchase order. I want to avoid that the users enter status full using PK13N or PKBC . The users execute goods receipts against purc

  • Navigation hides behind slideshow

    I have tried several navigation scripts and z-index all over the place but no matter what I try the sub-folders of my navigation on my homepage always gets hidden by the slideshow. Can someone tell me how to correct this? If you need to see it go to

  • Refresh master block - best way?

    hi, i want to refresh the master block every time a change is saved from the detail one (they have common items/fields). I want to do it by the fastest possible way cause it is gonna be on the web. Downloading all master rows again would not be an op

  • Powershell get default calendar name

    Hi, I am working on a script for monitoring the permissions of mailbox calendar folders, the problem is we have a Multilanguage exchange environment. Some of the mailbox folder names are in EN and some are in Dutch. So I thought in the first place I