Restrict saving a form w/ data entries

I would like to save my form such that when I enter client
data this data will not show up the next time I open the form, even
if I TRY to save it. I think this is essentially a Read Only format
but I'm unsure how to do this while still allowing the fields to be
filled in.
J

Here is what I have done and it seems to work in my case.
I created a file named filename.js in the javascripts directory under Adobe and added the following code
// should allow priviledged calls to saveAs method
TrustFNsaveAs = app.trustPropagatorFunction(function(docvalue,saveFilename)
app.beginPriv();
docvalue.saveAs({cPath: saveFilename});
app.endPriv();
FNsaveAs = app.trustedFunction(function(docvalue,saveFilename)
// privileged and/or non-privileged code above
app.beginPriv();
TrustFNsaveAs(docvalue,saveFilename);
app.endPriv();
I added the following to a button click on the Form
// Create Subject and Message for Email
var cMessage = "Job - " + this.getField("Job#.0").value;
cMessage += " - " + this.getField("JobCity.0").value;
cMessage += " - " + this.getField("JobState.0").value;
cMessage += " - " + this.getField("Foreman").value;
//Check for invalid characters in Filename
var cFilename = cMessage.replace(/[?:\\/|<>"*,]/,"");
// Compile Path and Filename
var cFile = ("/p/data/" + cFilename + ".pdf")
//Run Save Function
FNsaveAs(this, cFile);
//Email File
this.mailDoc({
cTo: "[email protected]",
cSubject: cMessage,
cMsg: cMessage
You can name the following anything, I changed them from what I used to more generic names
FNsaveAs
cMessage
CFilename
cFile

Similar Messages

  • How to use HTML or XML described visual forms for data entry in Java app?

    Hi,
    We are considering to use HTML as a mean of configuration for visual content and layout of data entry dialogs in our Java GUI applications. Java program will need to be able to populate/collect data into/from dialog controls. I am guessing that JEditorPane and FormView classes could be used for this but I have not figured out yet how to do this.
    I would really appreciate any help you could provide with respect to this. Please share any tips, utilities, references, etc. Maybe one can suggest non-HTML (e.g. XML, UIML, ...) way to achieve the same requirements and recommend some utilities respectively.
    Thanks.
    -Vitaly

    Just to clarify, we need a solution for Java application (no applet, no web server, no servlets, no JSPs, no EJBs).
    -Vitaly

  • Do I need to have the SDK to update a PDF form using an HTML form for data entry?

    I would like to update as many PDF forms as possible based on
    the users initial log-in information so that they are not
    constantly , and repetitively entering basic information.
    Can this be done using Javascript and does it require the SDK
    to perfom?
    I would appreciate your help with this real-world scenario.
    Thanks

    Hello
    I am using Web Client with the DownLoadFile() option to download files from a site.  If too many requests come in too fast it will banned that address for 24 hours.  (A DDOS security measure) I need to have the program wait until the file
    is downloaded before making the next request but be running in the background so not to freeze the application.  A progress form will allow the user to know the status of the downloads. 
    I see something about asynchronous downloads but do not seem to understand how I would make use of it or if it is the method I want to use.
    If someone could point to or give a good example of what I need to do, it would be most welcome.
    David Edwards
    David,
    There are two ways which come to mind here, both using the WebClient:
    The first is that in a BackgroundWorker, you use the synchronous download method. The synchronous method is a blocking call so obviously it can only get one at a time, and when that one is completed, the loop then starts the next.
    The second way - also in a BackgroundWorker - is to use the asynchronous method. The reason for this is because only the asynch method provides events to monitor progress and know when the file has completed. This gets a bit more involved because you're
    still processing them in a loop, but it's definitely something that can be done - I've done it several times.
    You haven't really given many details, so beyond this general conceptual description there's not a lot more that can I can explain, but your goal definitely can be achieved using a WebClient.
    I hope this helps. :)
    Still lost in code, just at a little higher level.

  • Saving interactive forms with data AND then performing further edits

    I need to produce a series of interactive PDF application forms which are long and quite complicated.
    This being the case, is it possible to save the file in it's partially completed state and close it down then at another time re-open and continue to fill out the remainder of the form? I have extended features in Acrobat 9 to allow the user to fill out the form and save their changes, but when the people helping me test this re-open the form to continue, they get the message:
    "This document contained certain rights to enable special features in Adobe Reader. The document has been changed since it was created and these rights are no longer valid. Please contact the author for the original version of this document."
    The form is now locked and flattened with no live form fields on it.
    To complicate matters, it doesn't work on the PCs in my office but I can do further editing after a save on my own computer - could that be something to do with Acrobat versions or is it maybe because I am the auther of the form?
    Thanks for any advice you can give me.
    Dan Mason

    Hey guys,
    thanks for your fast reply!
    @ Chintan:
    I searched all through the wikis, blogs, forums etc. and I really couldn't find any example for the issues I tried to describe (maybe that is a problem?). If you have already read some threads about this theme, could you please point me to one? That would be really great!
    @ Otto:
    Maybe that could work, but I would like to leave out all the function module stuff. I'm dreaming of a direct connection between MII and the ADS. As I understood, the ADS and the PDFObject (wherever it comes from) are communicating via Webservice, that is not directly usable by other frameworks. I think that's the main problem?! So it's only possible to build a PDF object in ABAP or WebDynpro Java, that automatically communicates with the ADS and it's only initiatable via remote function call?!
    Thanks and regards
    Anika

  • HR data entry folks can maintain their own records

    HR data entry folks can maintain their own records.  This was discovered recently during a security review.  This is a huge segregation of duties and SOX issue.  How can we restrict the access of HR data entry clerks so that they can't maintain their own records?

    Hi,
    Structural authorization need not be present in your system for using object P_PERNR, auth object P_PERNR works with simple position based security(personnel number has to be assigned to each user and PA infotypes restricted via object P_ORGIN) as well. P_PERNR restricts access to infotypes/subtypes maintained for one's own personnel number.
    The object field PSIGN is used to restrict this access. PSIGN= I means one would have access to certain infotypes and their subtypes( specified in INFTY and SUBTY fields of the object) for own personnel number and PSIGN= E means no access to those infotypes and subtypes for self. Also, PSIGN= * is equivalent to value I.
    You can activate this object via OOAC/ table T77S0 as specified in above post.
    Hope this clarifies.
    Sandipan

  • Restricting data entry to a particular language in the form

    Hi,
    I created a multilingual form in which all the fields of the form are in a particular language . Now am trying to restrict data entry in the form to that language at the client side only . Say if it is a form in french, can we restrict the data entry to french only .  The approach i was trying to implement was adding a script against the change event of all data fields and see if the characters lie in the range of  the language unicode character set . But have not been successful in it yet . Can anybody help me find some way or provide any sample for it ?
    Thanks

    Hello, I'm German
    Probably you can restrict the characters used for text entry, so for example ü is allowed in the German form but not in French.
    But you will NEVER be able to restrict the users staying only writing French in French forms 100%.
    1) You sometimes, not often, do encounter letters that are not typical for the language. (Though it can appear in any kind of word, it's quite regular for names.)
    2) Let's say I fill the French form. I encounter a problem when I type in the word "Müller". This word wouldn't be French at all. The text will be delted and probably given an error message. Well... I learn out of this error message. Next time I'll type Mueller. ^^
    (I knew several pages were people were restricted to talk English by forbidding letters that were not used in English very often... That didn't stop us violating that rule. The only error that really bugged us wasn't the restriction in not using letters that don't exist in English but the "please don't swear or insult so." error that kept appearing for ex. when we used the German word for "that" (= "dass"). They just didn't like the last 3 letters.)
    3) Many countries have the same or include other countries unicodes. For example English could be written in the German form or in the French form.
    4) You can't get out the syslanguage as far as I know. This would be a great hint which language the person is using.
    5) I don't think you can use the spellcheck in any way... great violation against spellchecking could also be a hint for another language.
    I know a quite big internetcommunity which did try to accomplish the same as you do. After about 2 years and a lot of experiments they stopped their efforts and were content by popping up the random error-messages warning that you don't have to insult, just like those other communities mentioned above. ^^ (Though they tried to restrict the insulting parts to the language used that didn't work out. Too many people knew how to insult in other languages ;D or which words were similar to insults.)
    People just never do what they are supposed to do and are quite nasty finding workarounds...
    My advice to you would be:
    Don't make the effort.
    Sorry for not being able to provide you with a solution, but the opposite.
    Lisa

  • Restrict Duplicate entry of record before saving the form

    Hi!!
    I need to validate duplicate entry of ITEM CODE before saving the FORM. Which means, if I have entered an ITEM CODE in a row, the same ITEM CODE should not be allowed to be entered in any other rows. It should throw an error message and should ask to enter another ITEM CODE instead. I did not get the correct logic from the threads.
    Regards
    Mitto

    hey i have a requirement that to restrict duplicate entry in both block(both multi record).the blocks are DEPT(MATER)
    EMP(DETAIL)
    the associated fieds in master block DEPT.DEPT_NO,in detail EMP.EMP_ID .
    I have done' Kevin D Clarke’s calculated item ' both in master and detail block
    its working fine for master block but in case of detail block its only respond to the current session(i.e. if the new value is inserted or save it will restrict another record to be inserted of that last record's value),it does not restrict duplicate value enter ,checking with other existing records(which are saved in earlier session,though after query it is shown on the form)
    can anyone guide me why its not working

  • Restrict Which Users Can Enter Data In List Form in SharePoint Foundation 2013

    Is there a way to restrict which users can enter data in particular fields in a list item entry form?
    We are using a SharePoint Foundation 2013 list and calendar to manage vacation time. We need to restrict non-supervisor users users from entering a value in a certain field in the vacation request form.
    Here is how the system works now:
    1. Employees complete the vacation request form (which creates a list item)
    2. An email is sent to their supervisor to either approve or decline the request
    3. Approved requests are automatically entered onto the vacation calendar
    We have restricted the list so that only supervisors can edit items (the pending vacation requests). The problem is that all users can mark their own requests as approved when they fill out the request form in the first place. Is there a way to restrict
    which users can enter data in particular fields on a list item entry form?

    Thanks for the suggestion. We ended up 1) hiding the approval column and 2) creating a second list, workflow, etc. The user no longer sees the approval column when filling out the form. Requests are now submitted to list A. Workflow #1 copies the request
    to List B, then deletes the item from List A. Once the request is added to List B, Workflow #2 emails the user that the request has been received and emails the supervisor that a request needs to be approved. Only supervisors have editing permissions on List
    B. Approved requests are automatically added to the vacation calendar (the calendar view of List B).
    We found the following site to be helpful in learning how to hide the list column:
    http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2013/06/03/how-to-hide-a-sharepoint-list-column-from-a-list-form.aspx

  • Saving form field data with Adobe Reader and Java script.

    We would like to create some customized PDF documents with pre filled form  fields for our customers. The documents will also have extended Java script  functionality to check some entered data and to save the form data to a local  disk.
    Our customers will need to click on their personalized link on our web page  and then download a pdf document with personal pre filled form fields  specifically for that customer.  From our site the PDF file will be dynamically  created and partly filled out with our web application. (The application uses an  external PDF library for the pdf creation).
    They would then need to be able to edit the form fields and save/export  them as a pdf whilst offline.
    The saving/exporting of the data should be implemented by the extended Java  Script functionality (http://www.adobe.com/devnet/acrobat/pdfs/js_developer_guide.pdf). Once the data has been edited they will send the pdf file directly back to  us.
    The issue we have is with regarded to teh EULA for Acrobat Reader. If we  create those documents with an external application is the user allowed to open  those PDF files with his Adobe Reader without breaking the Adobe Reader  Restrictions in the EULA for the Reader?  (http://www.adobe.com/products/eulas/pdfs/Reader_Player_AIR_WWEULA-Combined-20080204_1313.pdf, chapter 3.2 Adobe Reader  Restrictions)

    Hello,
    the problem which I have pertains only to the Adobe Reader. Because
    our user will use Adobe Reader to open our pdf documents but it looks
    like that the EULA for the Reader doesn't allow the user to open pdf
    files which have the extended option to save data out of the form
    fields unless!! this feature was created by an adobe product. But I
    created the pdf file not with Adobe. So I don't want our user be punished...
    It is actually a question of the law? departement of Adobe. But there
    is no Forum for that
    Or could you please forward my forum question to somebody of this department.
    I don't want to publish a product where the user breaches the EULA
    every time they are opening it
    Regards
    Niels

  • Data entry form problem - form in query-only mode

    Hi there,
    I am trying to create an data entry form to insert recordacross 2 out of 3 tables. The last of the four tables already have details and does not need to have record inserted into.
    This is the scenario, my four tables are Factory, Employee, Works_in. Works_in resolves a many to many relationship between Factory and Employee
    Now for a person to be employed in a factory, he must be assigned to a factory.
    I have a list of factories already in the database. After choosing a factory from the database, I want to insert records to do with his Fname, Lname, Hiredate bla, bla, bla to the Employee table.
    I have a single form with Factory as the master, and 2 tabs each for Employee and Works_in.
    After linking all my tables with the ability to choose a factory first on the master form from a combo box and after inserting records into the other forms, it says form running in query-only mode.
    What do you think?
    Many thanks in advance.
    Cube60

    I think that's too much of the wrong information.
    It sounds like you have multiple forms. Are they Modal or Non-Modal?
    What code do you use to call the form that's not working?
    Does it work initially and then stop working?
    James.

  • How to populate new record on data entry form based on search results?

    Hello,
    I'm new to jdeveloper im using version 11.1.2.1.0.
    Usually Im using forms 10g.
    I created search panel with table and its working but problem is how to transfer/populate all the field value according to that search result to New data Entry Form
    by clicking the table record or a button.
    Given :
    TABLES,EO
    1. PatientMasterIndex
    2. PatientTransactionMaster <<---- master
    3. PatientTransactionDetail <<-- detail relation
    Here the scenario,
    After Search of any patient, when i clicked one or more patient (which Jdeveloper allow multi select on jtable) on the table record it should automatically transfer or copied to the text field, i want to show on the form of PatientTransactionMaster like PatientNumber,PatientInsuranceNumber etc. to be save on db as new record, also non database field for view only like patient Name,address,age.
    IN forms i can do that by :PatientTransactionMaster.PatientNumber := :blocksearch.PatientSearchNumber ,etc.....
    or an item trigger to populate the said PatientTransactionMaster block. ( select .... into :PatientTransactionMaster.PatientNumber,etc....)
    Any suggestion,links,sample is highly appreciated.
    Sorry for my english.
    Thank you very much

    Hi,
    Do you want to create a detail record that will include some values from your master record??
    Or do you want to create a record with values from your Search criteria, only in the case you do not have any results?
    if it is the second case.
    When do you want to do that? After a press of button? or immediately?
    In general you have to handle the values from search criteria.
    Additionally, if you use ViewCriteria, you have to have bind variables for your search criteria that you will want to use.
    So in general, you have to know the values by using bind variables, understand that the query has no results (This can be done in many ways, depending on your implementation. if you are using a button, you could make a disable condition with iterator.estimatedRowCount property.)
    Perform the insert operation with the values from the bind variables.
    Regards,
    Dimitris.

  • Allow a simple form with "data" to be saved by the user.

    Back in version -x, it used to be so simple.  You created a form that could be read in a web browser.  Users could could fill out the form and save the form to their computers with their data.  Since that first version that allowed that, Acrobat has not progressed in logical fashion.  In a later version, you couldn't save the data.  Then in another version, you could again save the data.  Now you have some nice interactive features. I appreciate the new developments and see where they could be a godsend.  However, the simple thing that I used to be able to do in version -x, and the thing I most want to do,  I can no longer do and it is frustrating.
    Here's the situation:  we have an announcement on the web for Vacation Bible School.  We want to have a pdf with a form that people can fill out online and save to their disk (as their copy of the registration form) and then print out one copy of the form so that they can send it along with their check for the registration fee.  Why should that be so difficult?
    If it weren't for the fact that people have to send in checks, one of the fancy new options would work.  But it is not applicable in this situation.
    Here are my current options:
    I can "distribute" an emailable form (which I don't want to do) and then explain to the user that they should not hit the "submit" button but save the file to their disk.  (First rule of public relations - Don't confuse the public!)  It works in the last version of REader 8+ and in Reader 9.
    I can save the form without distributing it. But the user can't save it with the data!
    Please, PLEASE, PLEASE.  Allow a simple form with "data" to be saved by the user.
    Peace and blessings
    Barbara

    Thanks for a quick response.
    In Acrobat *8 or 9 Professional you can enable a form to be activated with the save feature.
    How do you do this.  When I saved the form without distributing it, and opened the form up in Acrobat Reader, the header said specifically that the data could not be saved in the form.  And when I went to save it, I got the message in a popup that said "Data in this form will not be saved. Reader can only save a blank copy of this form."  Then a second message (with a light bulb) said:  "Please print your completed form if you would like a copy for your records."
    So, if in fact I can have the form (without "distributing" it) so that the user can save the form with the data, how do I do that?  Are there commands I use, options?  Please let me know.  I will be eternally grateful.
    Also, if you edit form fields, you may remove the submit button.
    The edit form fields does not offer any access to the submit button.
    Best,
    Barbara

  • Can I Create A Data Entry Form with iWeb?

    I want members of my club to be able to make data entry selections each week directly to my web site via a data entry form, and have those entries stored for my retrieval and later posting. Can this configuration be set up in iWeb? Thank you in advance for pointing me in the right direction.

    http://discussions.apple.com/thread.jspa?messageID=7465901
    _Additional Info_

  • What else must I do to force data entry other than making the field required in LC 9 Forms Designer?

    I am trying to make sure that fields are populated with data prior to moving to the next field, but it seems that simply making the field required is not sufficient.  What else must I do to enforce data entry within required fileds?
    Thank you,

    There are a variety of scripting techniques that can be used based upon the form requirements, UI aesthetics, designer preference,... The script below forces data entry into a text field object called 'tf1' but it is a dangerous practice and should be used carefully. You may find yourself in a infinite loop based upon the tab order. A safer pattern includes global field validation upon submit.
    // form1.page1.subform1.tf1::exit - (JavaScript, client)
    if (this.isNull) {
      xfa.host.messageBox("tf1 is a mandatory field.","Text Field 1 Error",0);
      xfa.host.setFocus("form1.page1.subform1.tf1");
    Steve

  • What can be considered as the business logic of simple data entry form

    Hi all,
    I want to separate my applications logic into layers. It is a simple data entry form and doesn't contain any complex business logic. So I want to get this simple business logic to different layer. But the problem is, I cannot clearly identify what are business logic of this kind of simple data entry form.
    How do I separate business logic of this simple data entry form to another layer?
    any help is appreciated,
    Thanks in advance,
    Dil.

    dcminter wrote:
    It is a [form] and doesn't contain any complex business logic. So I want to get this simple business logic to different layer. But the problem is, I cannot clearly identify what are business logic of this kind of [form].Are you asking which bits are business logic?
    Suppose that the data comes into your system immaculate from some external system. Imagine that it will go out into some other system. The bits that you would still have to write are your business logic.That's a nice practical definition. Thank you, I'm stealing it.
    Also interesting to note that validation falls into that category... say you're recieving data from a magical external source... you still have to validate it.
    And of course you'd still have to store it somewhere, ans retrieve it.
    Yep, I definately like that definition.
    Cheers. Keith.

Maybe you are looking for

  • View is Created with the Wrong Datatype

    Hello All, One of the rows I select while creating a view is a number. Oracle Creates the view with the selected field as a varchar. Why would oracle change a datatype of a selected column in the expressed view? Here is the code: CREATE OR REPLACE VI

  • I recently downloaded FCP X and now FCP 7 won't open, any ideas why?

    All my projects are in FCP 7 but I am about to start usiing FCP X. Since I downloaded FCP X I am unable to open 7 from Applications or XML Files, please help.

  • CR files are automatically checked out (with Visual Source Safe 2005)

    Dear CR Support, i have a strange problem. Every time i open my solution in V.S. 2008 (V.B.) all my CR files are checked out automatically. I must do "Undo Check Out" every time. I Use: Visual Basic 2008 Crystal Reports 2008 Visual Source Safe 2005 F

  • "completed" status tasks in UWL giving Exception...

    Hi All, Once the Request is approved successfully at all the Levels, the status of the Request in UWL shows as "completed" and the request is moving to "Tracking Tab". But, if we click on this completed status Request, it is giving "500 Internal Serv

  • Ipad and iphone contacts cross over!  dont want it!  heLp!

    i have an ipad.  my husbsnd has an ipad.  i have an iphone.  my son has an iphone. i keep getting my husbsnds ipad and my sons iphone contacts coming over to my recent contscts.  annoying.  i think i stopped my husbsnds contscts from intruding.  but