Offline User Form

Greetings flex community,
I've been tasked with designing a user form that will be
filled out offline (no net connection, no webserver, etc..) This
form is for signing up for an e-newsletter. I desided to use Flex
for this, however I've run into a bit of an issue. My goal is to
have the form fields saved locally to an .xml file (<mx:Model
source="enewsletter.xml" id="XMLFILE"/>). I've searched the
forums and am lead to believe this may not be possible? Are there
some imports that can be added to the
<mx:Script></mx:Script> to allow this functionality?
I'm fairly new to flex so forgive the noob'ness :) Here's the
code I have so far, any corrections are also welcome and
suggestions. Thanks in advance!
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
]]>
</mx:Script>
<mx:Style source="theme.css"/>
<mx:Model source="enewsletter.xml" id="XMLFILE"/>
<mx:Panel width="640" height="480" layout="absolute"
verticalCenter="-31" horizontalCenter="-1" id="ui_main" title="Sign
Up for our E-Newsletter!" horizontalAlign="center"
verticalAlign="middle" fontWeight="bold" backgroundAlpha="1.0"
alpha="1.0" fontFamily="Arial" fontSize="12">
<mx:Label x="33" y="196" text="Zipcode:" width="69"/>
<mx:TextInput x="110" y="194" borderStyle="inset"
borderColor="#000000" enabled="true" id="ZIP"/>
<mx:Label x="33" y="313" text="Phone:" width="69"/>
<mx:TextInput x="110" y="311" borderStyle="inset"
borderColor="#000000" enabled="true" id="PHONENUM"/>
<mx:Label x="35" y="373" text="E-Mail:" width="44"/>
<mx:TextInput x="110" y="371" borderStyle="inset"
borderColor="#000000" enabled="true" id="EMAIL"/>
<mx:Label x="278" y="13" text="Last Name:"
width="69"/>
<mx:TextInput x="355" y="11" borderStyle="inset"
borderColor="#000000" enabled="true" id="LastName"/>
<mx:Label x="33" y="13" text="First Name:"
width="69"/>
<mx:TextInput x="110" y="11" borderColor="#000000"
enabled="true" id="FirstName"/>
<mx:Label x="33" y="128" text="Street / Mailing Address:"
width="148"/>
<mx:TextInput x="189" y="126" borderStyle="inset"
borderColor="#000000" enabled="true" width="326" id="ADDRESS"/>
<mx:Label x="303" y="164" text="State:" width="48"/>
<mx:ComboBox x="355" y="161" id="STATE"
enabled="true">
<mx:dataProvider>
<mx:Array>
</mx:Array>
</mx:dataProvider>
</mx:ComboBox>
<mx:Label x="33" y="161" text="City:" width="69"/>
<mx:TextInput x="110" y="161" borderStyle="inset"
borderColor="#000000" enabled="true" id="CITY"/>
<mx:Label x="33" y="42" text="Do you wish to recieve mail
about new vehicles and information, upcoming events and more?"
width="577"/>
<mx:Text x="33" y="97" text="Please enter your mailing
information below if you selected Yes." width="577"/>
<mx:Label x="33" y="227" text="Do you wish to recieve
phone calls about new vehicles and information, upcoming events and
more?" width="577"/>
<mx:Text x="33" y="282" text="Please enter your phone
number below if you selected Yes." width="577"/>
<mx:Label x="33" y="342" text="Please enter your E-Mail
Address to recieve our E-Newsletter." width="577"/>
<mx:RadioButtonGroup id="radiogroup1"/>
<mx:RadioButton x="54.0" y="71.0" label="YES"
groupName="USPSMAIL" fontWeight="bold" id="YES1"
enabled="true"/>
<mx:RadioButton x="132" y="71" label="NO"
groupName="USPSMAIL" fontWeight="bold" id="NO1" enabled="true"/>
<mx:RadioButtonGroup id="radiogroup2"/>
<mx:RadioButton x="54" y="256.0" label="YES"
groupName="PHONE" fontWeight="bold" id="YES2" enabled="true"/>
<mx:RadioButton x="132" y="256" label="NO"
groupName="PHONE" fontWeight="bold" id="NO2" enabled="true"/>
<mx:Button x="544" y="388" label="Submit" enabled="true"
id="SUBMIT" click="XMLFILE"/>
<mx:ControlBar>
</mx:ControlBar>
</mx:Panel>
<mx:Text text="No purchase necessary to sign up, must be
18 years old or older. Copyright (c) 2007 Kendall Automotive
Group." width="633" textAlign="center" horizontalCenter="0"
verticalCenter="227.5" fontFamily="Arial" fontSize="10"
color="#000000" height="21" fontStyle="italic"
fontWeight="bold"/>
<mx:SWFLoader width="640" horizontalCenter="-1"
verticalCenter="-295" source="Untitled-6.swf" autoLoad="true"/>
</mx:Application>

I'm sorry, but writing to the local file system is forbidden
by the security restrictions on both the browser, and especially,
the Flash Player.
Now, you CAN write to what is called a local SharedObject,
which is kinda like a "cookie on steroids". Then on connection,
write tht data to the server.
And again, you might consider using AIR(Apollo), which is
currently in beta. You write Flex code, but it uses a different
rendering engine than the Flash Player,and can access local assets.
Tracy

Similar Messages

  • Get form values from an uploaded offline interactive form.

    Hi,
    I have created a simple offline interactive form with 2 text input elements Email and PhoneNumber.
    I have created a button on the view. In the action, I have to get the values of the Email and PhoneNumber
    How to capture input values from an offline interactive form.
    Thanks
    Srinivas

    Hi Arafat,
    I followed the how to do document https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/offline%20interactive%20pdf%20form%20using%20download.pdf , and it mentioned what you just said. But I couldn't understand your suggestion "In second view you need to embed the IF element and create the required context attributs mapping for fields. Set the pdfMode as usePDF."
    In the second view, I have created another interactive form for previewing the offline form.
    I am able to preview the offline form. On submit action (submit button is on the view), when I print the context values, I get nulls.
    Thanks
    Srinivas

  • How to SAVE the images in the offline adobe form pdf

    Hi All,
    Actually I am working offline adobe forms.In my one of the requirement user want to upload the images in the final output pdf form. For this requirement I added Image Field in the layout. So, now I am able to upload the images from desktop but I am unable to save the uploaded images in the pdf form.
    Please let me know is there any parameters need to pass for this requirement.
    Please help me ASAP and your help will be appreciated.
    Thanks,
    Ravi.

    Hi Sandy,
    Sorry for Delay.Could you please provide script code for the Button and in which event we want to add the code
    I want to Save the lot of images in the PDF. For that I kept Image field in the form.Here I am able to upload the images but those are not saved.
    If possible please share the details document.
    Please help me.
    Thanks,
    Ravi.

  • Integrating Offline adobe form in Portal

    Hi All,
    I created offline adobe form using SFP tcode.
    This form needs to be integrated in Portal. When user logs in, he/she should be able to open this form.
    Can offline adobe form can be integrate to portal directly? or do we need to create the Webdynpro applications only for poral?
    Please let me know whether we can integarate offline adobe form to portal directly. If not why?.. I don't know about portal.
    Thank you!
    Prasad

    Hi Deepika,
    This discussion thread is all about integrating a WebDynpro application which contains adobe form into portal.
    I assume your requirement is different which needs to upload an offline adobe form into portal.
    There are documents available to explain this functionality in detail. Please note down the following.
    1) For uploading adobe form should be XML schema based.
    2) There should be a webdynpro application with uploader UI element which has been integrated into the portal.
    3) On form upload, you will get all the data associated with the form within webdynpro
    Thanks & Regards,
    Sanoosh

  • Sending Offline Interactive Form Via Email

    Hi,
    I am running NW 2004s SPS09 and trying to configure GP to use offline adobe interactive forms.  As of now, I am able to create a callable object from an Adobe template, prefill fields from other background execution/web service callable objects, and launch a process when the form is submitted via email.  I am having trouble routing the form to the next processor through email.  I created an interactive form callable object, checked 'Enable Use In Guided Procedures' and selected 'Create Offline Interactive Form And Send By E-Mail'.  My first thought was that there was some delay in the sending of emails, but callable objects in other processes that send plain text notifications work fine.  The process does not enter an erroneous state and waits at that action.  Looking at the GP monitor under NW administration, the correct processor is set for the action, but the task does not appear in the user's UWL or GP runtime center (I figure this is because the task is meant to be completed offline).  Any suggestions would be much appreciated.  Thanks!
    ~Greg

    Turned out the 'switchToNewMailCommunication' property for the GP service was set to true when it should have been false.
    ~Greg

  • Offline Adobe Form using GP - How to save data to SAP

    Hi,
    I have the following requirement.
              o An offline form is sent to different users and when they fill the form and Click on Submit, the data should be saved to SAP.
              o When the data is submitted, it should be recognize the user and multiple clicks if any so that data is not duplicated
    I have used Guided Procedures for this. I have created an Interactive Form callable object with an xdp template and "Create offline Interactive form and send by e-mail" option.
    Problem:
    1. The document emailed to user can be submitted only once. My requirement is whenever form is submitted it should update the previous data.
    2. How to save this data to SAP?
    Version:
    SAP NW SP12
    Adobe Live cycle designer 7.1
    I have gone through various blogs on Adobe Offline interactive forms and GP but I could not get a solution for this. Please help.
    Thank you,
    Vasu

    Hi,
    IMHO there is no easy solution for your requirement. However there is a workaround: you can create so-called "impersonalized" forms. They can be sent or returned as many times as needed from same or different users. However the effect will be that for each form sent out and accepted by GP, GP will start a new GP process. That means that the forms are the first step of such a process - so to say.
    An offline form "in the middle" of a process can be embedded into the process as a dedicated step only. Once this form is returned to GP by the user, the process is continued and 2nd or later form returns are ignored. However there is the possibility to build an additional step into GP to check the input data and if they aren't valid to send out the form to the user once again.
    So you see that there are some possibilities but no straight forward solution for your needs. Hope I could help anyhow.
    Regards,
        Jan

  • F4 help in Offline Interactive form

    Hi Experts,
    I have got the F4 help in online interactive form created by Web Dynpro using value help.
    I need to get F4 help in OFFLINE interactive form where the user even need not to connect to SAP system.
    Plz Help
    Thanks & Regards
    Arvind

    Hi,
    I am using value help in following way:
    1) Value help drop down list: I have field which is linked to MARA-MATNR in my context. When I try to create a value help drop down list and bind it to MARA-MATNR field, the value help drop down does work but just only once. After that I am not able to use F4 help on that field. Can you please let me know if I am missing any other settings as I am not doing any settings apart from what I wrote. or please provide me link for step by step screen shot,
    Note. I search many site but they are give same method but i am unable to take f4 help in adobe form

  • Dropdown list in offline Adobe forms based on Particular plant number

    Hi All,
    Actually I am working on the offline adobe forms. In one of my requirement User will enter the Plant number after that user click on Submit button then the data in Function/Area and Equipment fields will come in a drop down list based on the particular plant number(User entered plant).
    So. for this requirement I will create the one RFC function module, from that FM I create one web service and configured in SOAMANAGER and finally integrated into the adobe form.
    Now my question is user enter the plant number after that user click on Submit button then the total list in the both fields will come in a drop down list for the particular plant?
    Your help will be appreciated.
    Thanks,
    Ravi.

    Hi Lennart,
    Here are a few comments/hints:
    1. To access the data value of a form field use the rawValue attribute
    2. Not sure which event you are using, try using the change event, if you are using it your script doesn't work since the updates did not happen and you are using the wrong attribute
    3. the change event has an attribute newText that can be accessed as follows: xfa.event.newText
    Cheers
    Juergen

  • SSO authentication in offline adobe form

    Hi,
    I have a scenario wherein I'm  submitting an offline Adobe form . Now, I want the system to automatically pick up the windows credentials with which the user has logged in and use those to submit the form to SAP.
    Please explain as to how to achieve the above.
    Thanks and Regards
    Nidhi Jain

    Hi Nidhi Jain  please did you find any solution ?

  • Offline adobe form closes automatically on Vista while its works in XP

    Hi Experts,
    I have a problem in which the 100 % offline adobe form is not working on vista machine while the same is working in XP. The form closes automatically on vista machine using acrobat reader 9.3 version while the form is trying to load data from a webservice to populate the dropdowns. It is working fine in all XP machine with Acrobat reader 9.0.
    The form are created using ALC 8.1 and Interactive form element has display type = ActiveX.
    Please can you provide some solution to the problem, does any setting like buffer size etc needs to be added/increased on vista. I had asked user to downgrade the acrobat reader version to 9.0 on vista machine to eliminate one factor and waiting for result.
    Regards
    Deepak

    Hi Chintan,
    Thanks for the advice. I had already asked the user to downgrade the adobe reader version.
    I know that ZCI is available for the release currently being used and should be used, but the forms were designed some 7-8 months back and currently UAT is going on, so I need to fix this issue quickly.
    I had already planned to move the forms to ZCI after UAT.
    Now, the single forms behave differently (some fields/pages visible/hidden and populated accordingly) based on the input provided by user. There are 39 different scenarios in which the forms runs.
    Now for the user on vitsa, the form is working for 10-15 scenarios but the adobe reader closes automatically for other scenarios. The only thing I can think of is that data volume for non working scenario is more to be populated in the forms. While all the scenarios are working fine in XP machine.
    Have you faced this kind of issue, looks like buffer/memory issue on vista machine as the adobe reader closes without showing any error to the user?
    Regards
    Deepak

  • Saving an offline intercative form

    Hi ,
    When i try to save an  interactive form after filling some values , it doesnt allow me do so ,
    Kindly let me know how to save it .
    The scenerio is that I am using an offline interctive form element that takes a user input . After filling the values the user would be able to upload the interactive form through a web dynpro applictaion. But when i fill the offline interctive form . It doesnt let me save the form ..kindlyy suggest ..marks assured

    Namit,
    I believe you need the appropriate Reader Rights applied to the document.  If you are using Guided Procedures, you get those by generating an impersonalized form.  Otherwise, you have to apply them manually.
    See http://help.sap.com/saphelp_nw2004s/helpdata/en/56/f2c94a069f44a785b85748e11f82a0/content.htm
    Hope this helps,
    Jeff.

  • Authorization check for an offline Adobe form

    Hi folks,
    Quick ques - Is there a way I can validate whether a user has the authorization to enter data on an offline Adobe form ?
    The form is going to be generated and sent to users. So when the user is ready is to fill data, there is no connection to SAP.
    Any ideas?
    Thanks for your help!
    Rds, Liz

    Hi Liz,
    Password encrypted forms are not supported by SAP but you can try with other options like putting inputs fields for user and validating them but that would not be an encrypted one.
    Password Encrypted Forms are supported from the Adobe LiveCycle ES versions 8.2 and it is a standalone tool and not supported by SAP.
    Pl refer to the following links for more information:
    [Re: Password protected PDF file;
    [pdf with password encryption;
    [Setting a security method in Adobe forms;
    Thanks and Regards,
    Jhansi Miryala

  • Adding Columns to the matrix in SAP B1 user form using Visual studio 2010

    Hi,
    Using Visual studio 2010, I have created a SAP B1 user form( b1f ) with one matrix.Matrix is having 5 columns. Its working properly. Later, I want to add few more columns. Then I added columns to the matrix as I have created columns initially. But, it does not saves.
    i.e, Whenever I run, In B1 I could see only old columns. Newly created columns are not showing.So, I closed the .net project and opened again. Created columns are not showing in visual studio b1f itself. So, I created again and saved. But, its not saving.I tried it many times.
    What I am missing?
    Any help is appreciated.
    Thanks in advance,
    Parvatha Solai.N

    Hi Parvatha,
    Are you using B1 Studio? Anyway try to clean the solution first then rebuild it. This would re-copy files to the output directory, that contain your changes.
    Best regards,
    Pedro Magueija

  • How to change co-ordinates of an internal table in page 1 & 2 using offline adobe forms?

    Hello All,
    How to change co-ordinates of an internal table(main window data) from page 2 onwards in offline adobe forms. For e.g., I need to print my internal table around 3-4 lines along with header&footer(only 1st page)in page 1. From 2nd page onwards Internal table should print header and use remaining page til end.
    Thanks in advance for your help.
    Thank you,
    Janakiram.

    Issue resolved...need to use content area option to achieve the same.
    Thanks,
    Janakiram.

  • How to disable a Entire row in a Matrix in Find Mode (User Form)

    Hi,
    How to disable a Entire row in a Matrix in Find Mode (User Form)
    Regards
    Jambu

    Hi,
       Iam using Bubble event = false in click event but the matrix row
    is allow to edit but we cant save the document in Find Mode That is fine.
    What is my actual requirement is In find mode matrix Row not allow to enter the data .
    For examble In ADD mode i enter the data in Three rows (Item Section - Matrix) and
    save the document. Whwn i open the document in find mode the three row is not allow
    to editable like the same functionality of PO, sales Order, etc ..
    Regards
    Jambu

Maybe you are looking for