Using messageBox in locking fields

I've got a form that's functioning somewhat like an index. When data is filled in for a particular entry, it needs to be locked down. My strategy for accomplishing this is using a button with scripting to set the access on those particular fields to ReadOnly.
This all works great -until I try to add in a variable of a messageBox in which the user gets a warning and is allowed to back-out of the lockdown to make changes as needed. It seems that using hte messageBox is an all or nothing proposition -I can't figure out how to access the "okay" or "cancel" buttons to create behavior from there. Everything I try either locks the fields or does not allow the locking regardless of the button pressed.
Can anybody point me in the right direction here?
Thanks!
Jennifer

Take a look at page 594 of the XML Forms Object Model Reference. You'll see what the return values for xfa.host.messageBox() are, and that they are based on what button is clicked by the user. Hope that helps.
Chris
Adobe Enterprise Developer Support

Similar Messages

  • Avoid assigning to servlet static fields without using a shared lock??

    Hi
    i received the following warning on my code, does anyone give me a help on this? Thanks
    "Avoid assigning to servlet static fields from javax.servlet.Service.service () without using a shared lock."
    And my code are as follow:
    public class MyDataSource {
        private static DataSource ds = null;
        public static DataSource getDataSource() throws NamingException, Exception
            if (ds==null){
                   InitialContext ctx = new InitialContext();
                try{
                    synchronized(getDataSource()){
                    if(ds==null){
                        ds = (DataSource) ctx.lookup(SysProperties.ds);
                } catch (Exception ex) {
                    throw new Exception("DBConnection Exception: " +ex.toString());
                }finally{
                        if(ctx !=null){
                            ctx.close();
            return ds;       
    }

    The service method of a servlet is multi-threaded to handle multiple requests. Hence,any static or public fields accessed by the service method should be restricted to a single thread access (for example using synchronized keyword) to make it thread-safe. That is why you are getting the warning message.

  • Adobe Form - Locked field

    Hi All
    Could someone please tell me what are the function 'Lock Text', 'Lock Static Object' and 'Lock Field' under 'Edit' on menu selction bar - used for - (I'm new with Adobe Form) - Thanks

    Hi Liem,
    You can find answers to such questions easily in adobe designer help. I am providing below the answer to your query, Hope it will be helpful:
    Lock text:
    LiveCycle Designer lets you lock text in text objects or in the captions of objects by using the Lock Text command. When you select Lock Text, you must double-click the desired text or caption in order to edit it. This makes it not as easy to modify the text. If Lock Text is not enabled, you click in the caption or text object to start editing the text.
    Lock Text applies to all text and captions on the form design. Using Lock Text is particularly useful if you want to select and move objects but not make any changes to the text. You can single-click the object to select it, but you must double-click the caption or text in order make any changes.
    Lock Static Object:
    LiveCycle Designer lets you lock all static objects on the form design by using the Lock Static Objects command. All static objects in the form design cannot be selected, moved, or modified.
    The Lock Static Text command is useful in situations when you have finished formatting static objects in the form design and want to continue working with other types of objects.
    For example, your form includes a large number of text field objects, as well as text objects that provide instructions on filling the form. You have laid out and formatted all the static text objects and need to apply a different font to the text field objects. You can easily do this by locking the text objects and then using Edit > Select All to select all the text field objects at once and then change the font.
    When text objects are locked, the text inside them is also locked. However, if you want to continue to select and move text objects, but not make any changes to the corresponding text, you can change the behavior of the text to make it not as easy to modify.
    Lock Field:
    LiveCycle Designer lets you lock all field objects on the form design by using the Lock Fields command. All field objects in the form design cannot be selected, moved, or modified.
    The Lock Fields command is useful in situations when you have finished formatting the field objects in the form design and want to continue working with other types of objects.
    For example, your form includes a large number of text field objects and check box objects, as well as text objects that provide instructions on filling the form. You have laid out and formatted all the field objects and need to apply a different font to the text objects. You can easily do this by locking the field objects and then using Edit > Select All to select all the static text objects at once and change the font.
    When field objects are locked, their corresponding captions are also locked. However, if you want to continue to select and move fields, but not make any changes to the caption, you can change the behavior of the caption to make it not as easy to modify.
    Regards,
    Vaibhav Tiwari.

  • Error when communicating with server, and locked fields

    Hi there,
    I am having a really weird, and annoyingly intermittent, problem.
    I'm trying to write a single value to my application via an Input EVDRE, for testing purposes. I've been doing this all morning (admittedly to a different application set but still...) but this time when I "send and refresh", it takes ages before coming back with this error:
    "An error has occurred while communicating with the server"
    Further more, if I look at the table "dbo.lckFinance" there is now a locked field in the database for this specific category and time. So a user without access to a DBA (or the database, in my case!) would be stuck now - even if the communication problem was solved, they couldn't post anyway.
    The application is not part of appshell, we are running BPC version 7.0.112 on SQL Server 2005.
    I've looked in the Event Viewer on the server and found nothing untoward there.
    Any idea what is happening and how I can avoid this in future? The communication thing is obviously a problem, but I'm just as concerned by the locking.
    Please help!
    Many thanks,
    Jason

    Hi Jason,
    If you have problems with the network this has to be solved.
    I don't think we can have a software working if a cable was unplug ).
    We advice our customer to use citrix servers in case if the latency into network is high (more than 200 ms) and of course in case of loosing packages.
    But I don't think the problem in your case is related to the network.
    It seems in your case it was a problem of send governor.
    This can have problem when the cube and dimension are not syncronize or you have an error in one of dimensions.
    Also can you check the table sgqueue if you have any record there when nobody is sending data?
    If you have records there then you have to delete these records.
    Check also tbl"your application"lock if you have records.
    Regards
    Sorin Radulescu

  • I have a lock field(boot.efi) in recycle bin how to put it out (for unlock and empty my recycle bin)

    I have a lock field(boot.efi) in recycle bin how to put it out (for unlock and empty my recycle bin)

    Trying logging out/in or a restart.
    If that doesn't allow you to empty the trash:
    Trash – Empty When File is Locked or in Use
    Trash FAQ       
    Maybe this will help:
    https://discussions.apple.com/message/17029415#17029415

  • Clear signature but do not unlock previously locked fields

    I have designed a form in LiveCycle ES 8.2.1 in which certain fields are locked when a check box is checked. They should remain locked. However, when a first digital signature is inserted and the user clears the signature. previously locked fields get unlocked. These fields must always stay locked.  Does anyone have a solution for this?
    Thanks!

    I have added the code in Employee Signature field Change event to check the signature status and lock fields if the checkbox is checked . But it is not working.
    The requirement is that if the check box is checked, all the fields above that must be locked whether signature is valid or cleared.
    This is the first form I have designed in LiveCycle. So I would appreciate any help in this matter.
    Thanks,
    swat_mpg
    1. This is the code
    form1.SubformMain.SubformText.SubformSignatures.EmployeeSignature::change - (JavaScript, client)
    var digSig = event.target.getField(GetFQSOMExp(this)); 
    var status = digSig.signatureValidate(); 
    app.alert(status);
    switch (status){
    case 0:
    case 1:
    case 2: 
    if ( form1.SubformMain.SubformText.chkAppraisalComplete === 1){
    xfa.host.messageBox("Signature status is:- "
    & status)form1.SubformMain.SubformName.txtfLast.access
    = this.rawValue?"readOnly":"open";form1.SubformMain.SubformName.txtfFirst.access
    = this.rawValue?"readOnly":"open";form1.SubformMain.SubformName.txtfInitial.access
    = this.rawValue?"readOnly":"open"; 
    form1.SubformMain.SubformGeneral.txtfDivision.access
    = this.rawValue?"readOnly":"open";form1.SubformMain.SubformGeneral.txtfPosition.access
    = this.rawValue?"readOnly":"open";form1.SubformMain.SubformGeneral.txtfTimeInPosition.access
    = this.rawValue?"readOnly":"open";form1.SubformMain.SubformGeneral.txtfTimeWithSupervisor.access
    = this.rawValue?"readOnly":"open";form1.SubformMain.SubformGeneral.txtfSupervisor.access
    = this.rawValue?"readOnly":"open";form1.SubformMain.SubformGeneral.DateFrom.access
    = this.rawValue?"readOnly":"open";form1.SubformMain.SubformGeneral.DateTo.access
    = this.rawValue?"readOnly":"open";
    txtfA.access
    = this.rawValue?"readOnly":"open";txtfB.access
    = this.rawValue?"readOnly":"open";txtfC.access
    = this.rawValue?"readOnly":"open";txtfD.access
    = this.rawValue?"readOnly":"open";txtfE.access
    = this.rawValue?"readOnly":"open"; 
    form1.SubformMain.SubformText.chkAppraisalComplete.access
    = this.rawValue?"readOnly":"open";}
    break; 
    2. Image of the Partial form

  • Lock fields after send a PDF file

    Hello all,
    I have done an application that consists in fill in many fields using Adobe LiveCycle Designer 8.0 program.
    After many fields are filled, I click on a Regular button that sends an e-mail.
    When I receive the e-mail, I download the attached pdf file to a determined folder.
    The problem is that when I open this generated PDF I am able to edit the fields.
    Is there any way to lock fields after clicking the Send button?
    Thanks in advance.
    Best regards,
    Roberto

    After your code for emailing the form, place additional line of script for making the form as editable..
    Language: Java Script/ FormCalc
    <parentSubform>.access = "readOnly";
    parentSubform is the root subform node of your form..
    Thanks
    Srini

  • How to schedule the background job using current selection screen field val

    Hello Friends,
    How to schedule the background job using current selection screen field values.
    after completion of the job the spool should be sent as a mail to SAP Inbox.
    Is there any way to create the variant dynamically by reading the current selection screen values.
    Thanks,
    Ravi

    Hi,
    To get the variant details you can use teh following FM.
    'RS_VARIANT_CONTENTS'.
    Regards,
    Ankur Parab

  • Can I create a custom XMP panel but using the exact same fields from standard XMP panels?

    Hi,
    I am new to XMP and not very technical, so please excuse me if this sounds like a stupid question!
    I have managed to create my own custom panels for Photoshop using the Generic Panel method with my own custom fields and they work fine. However what I need to do now is create a custom panel that uses the exact same fields from some of the standard panels. The reason being is that I have 4 fields that need to be integrated into another non-adobe system (Extensis Portfolio) that recognizes standard XMP fields, but at present these 4 fields are spread across different standard panels and it would be much easier for the user in Photoshop if they were all together on one panel.
    An example field is the "Additional Model Info" field that currently resides on the standard IPTC Extension panel. If I fill in a value in this field on a JPEG then open the the image in Extensis Portfolio, then the field is also filled in in a field called IPTC - Model Info, displaying a key of Iptc4xmpExt:AddlModelInfo.
    Is there a way I can take this standard field and use it on a custom panel, so that it can still be filled in in Photoshop and the value viewed in Extensis Portfolio? Sure I can create a custom panel and create a field called "Additional Model Info" but I can't figure out how to connect it to the corresponding field in Portfolio. I tried changing the  xmp_property name="Iptc4xmpExt:AddlModelInfo" but this just broke the panel.
    Is what I am trying to do possible and if so how and can it be done using the Generic Panel method?
    Many thanks!

    I am trying to do the same thing but with only the IPTC Keywords field. Searching everywhere but no luck.
    Thanks!

  • Should I be able to see a priority change using a mutex lock   ?

    If I have a program which uses a mutex lock in solaris 9 which is set up to protect/priority ceiling of 5 and kick it off using priocntl with a priority of 11 and RT, I can look at top and see that it has priority 111. So my process is running real time. I then use a second xterm and wait till the program hits the lock portion of the code. If I do a priocntl -d pid, it is still priority 11. I know it is in the lock because there is a printf and a sleep of 20 seconds. Should I be able to see the priority go to 5? How can I prove the priority inheritance off the mutex lock is working in a test program, so that I know I am using it correctly? Thanks for any insight.

    I also tried it with a priority ceiling of 50, figured out that RT priorities worked the reverse of regular priority, the higher the priority number, the higher the priority. I still however am not able to prove the priority inheritance occured. Anybody got any thoughts on how to prove it is working properly.

  • Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab?

    Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab? When there was support for Google Toolbar, I was able to do this; now, whenever I want to search for something, I have to open a new tab to do it, and cut-and-paste my search into the search field in the new tab. I used to be able to highlight, drag, and drop something into the search field and have it automatically open in a new tab. This is enough for me to switch to Chrome . . .

    Set a preference to have searches from the Search Bar (upper right) automatically open all searches in a new tab
    #type '''about:config''' in the URL/Location/Address bar and press the Enter key
    #if you see a warning, accept it (promise to be careful)
    #Filter = '''browser.search.openintab'''
    #in the lower panel, double click the item (or right-click and choose "Toggle") to change the value to "true"
    #close the about:config tab and test
    #See:
    #*For help with opening/using about:config, also see: http://kb.mozillazine.org/About:config
    #*Also see: http://kb.mozillazine.org/About:config_entries (click on "Browser", scroll down to browser.search.openintab)
    '''Search Bar''': http://support.mozilla.com/en-US/kb/Search+bar
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    About Google toolbar............
    Google decided that they will no longer produce the Google Toolbar for Firefox 5 and newer version. It is best to move on to other alternatives than to try any "hacks" to the toolbar that may or may not perform in the future. Future versions of Google toolbar will only work with IE7-9. Google Toolbar is not available on any other browser, even Google's own browser.
    *http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    *https://support.mozilla.com/en-US/kb/google-toolbar-not-compatible-firefox?s=google+toolbar&r=0&as=s
    *http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    *Google Toolbar 8 FAQ (IE only): https://www.google.com/support/toolbar/bin/answer.py?hl=en&answer=1111588
    '''''To access your Google Bookmarks visit''''' www.google.com/bookmarks.
    Alternatives:
    *http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    *https://addons.mozilla.org/en-US/firefox/addon/googlebar-lite/
    *https://addons.mozilla.org/en-US/firefox/addon/gbookmarks-google-bookmarks-fo/

  • Export Project Tasks to Excel using VBA by Custom Field

    Question referring to the link:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/9c46458c-893f-41ba-bd46-bdb59c533f4a/export-project-tasks-to-excel-using-vba-by-custom-field?forum=project2010custprog
    Help needed. I have inserted my question at this address for Andrew or anybody else to reply. Hope to hear from you.
    Regards,
    Chuck

    Thank you Andrew for getting back to me and I have found somewhere on the net the following macro that would do the job for the version 2007. Here is a copy for those that may need it.
    Option Explicit
    Sub CreateMenus()
    Dim cbrMain As CommandBar
    Dim ctlMain As CommandBarControl
    Dim ctlOLExport1 As CommandBarControl
    Dim ctlOLExport2 As CommandBarControl
    Dim ctlOLExport3 As CommandBarControl
    Set cbrMain = Application.CommandBars.ActiveMenuBar
    Set ctlMain = cbrMain.Controls.Add(Type:=msoControlPopup, Temporary:=True)
    ctlMain.Caption = "Export to Outlook"
    Set ctlOLExport1 = ctlMain.CommandBar.Controls.Add(Type:=msoControlButton)
    With ctlOLExport1
    .Caption = "Selection to Outlook tasks"
    .OnAction = "Macro """ & "Export_Selection_To_OL_Tasks"""
    End With
    Set ctlOLExport2 = ctlMain.CommandBar.Controls.Add(Type:=msoControlButton)
    With ctlOLExport2
    .Caption = "Selection to Outlook appointments"
    .OnAction = "Macro """ & "Export_Selection_To_OL_Appointments"""
    End With
    Set ctlOLExport3 = ctlMain.CommandBar.Controls.Add(Type:=msoControlButton)
    With ctlOLExport3
    .Caption = "Selection to Outlook notes"
    .OnAction = "Macro """ & "Export_Selection_To_OL_Notes"""
    End With
    End Sub
    Cheers!
    Chuck

  • Using Customized group name fields in Live Office

    Hello everybody,
    I've created a Crystal Reports based on a BEx Query and including a costcenter hierarchy. Now I want to add this report in Excel sheet via Live Office. I did this according to the official HowTos provided by Ingo Hilgefort. Now I've following issue. When I choose the data for the selected fields in Live Office, I could manage to insert the Live Office object into my report but the display of the cost center hierarchy nodes doesn't comply with the display in Crystal Reports. There I've defined a group with a customized group name field (costcenter.medium description) Live Office seems to use only the costcenter node ID.
    Crystal Report:
    Marketing und Vertrieb----
    63     63     63     63     0     0
    Vertrieb----
    54     54     54     54     0     0
    Vertrieb a----
    1     1     1     1     0     0
    Vertrieb a----
    3     3     3     3     0     0
    Vertrieb a----
    4     4     4     4     0     0
    Vertrieb a----
    2     2     2     2     0     0
    Vertrieb a----
    2     2     2     2     0     0
    Vertrieb a----
    3     3     3     3     0     0
    Vertrieb a----
    2     2     2     2     0     0
    Marketing----
    34     34     34     34     0     0
    Marketing a----
    3     3     3     3     0     0
    Live Office:
    1000H1.1000H1000.1000H1300----
    63      63     63     63     0     0
    1000H1.1000H1000.1000H1300.1000H1310----
    54      54     54     54     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3100-----1      1     1     1     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3105-----3      3     3     3     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3110-----4      4     4     4     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3120-----2      2     2     2     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3125-----2      2     2     2     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3130-----3      3     3     3     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3135-----2      2     2     2     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3140-----34      34     34     34     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3150-----3      3     3     3     0     0
    How can I use customized group name fields in Live Office?
    Thank you for helping me on my issue.
    Regards,
    Florian

    live office uses web services to authenticate (dswsbobje) which depends on a java app server for kerberos to be enabled to login with AD. Is Infoview working with AD? This would be required. I'm not sure about your other issues.
    Regards,
    Tim

  • Using the URL type field in a Dictionary

    Using the URL type field in a Dictionary
    How and when would I use the URL Field in a Dictionary?  What is the advantage of using this field?
    For example, you may have tasks within a service delivery in which performers must access a spreadsheet and enter their estimated efforts and costs in that spreadsheet. You might use this URL type field to direct the task performers to the site where the spreadsheet is residing.
    To set up the URL field:
    In the Dictionary, for the desired Field, select the "URL" type.
    When the service performer enters information into the field (during the Service Dellivery moment), it will beautomatically concatenated with the RequestCenter system URL, and presented as a hyperlink immediately below the entry field in the service form.
    The performer is directed to the URL, i.e.:
    /RequestCenter/servicemanager/MemorySize
    Advantages to this design approach:
    1.      Allows users who do not have access to RequestCenter to view the estimated efforts and costs.
    2.      Compensates for the fact that the service form itself cannot display the fields in a table format.

    Hey,
    As per my understanding, you want to display link with text instead of whole url string. For that you can provide link text as a description in URL type field so the same will be displayed as a link title in list view while rendering.
    Thanks.

  • How we will use date n currency fields in bdc

    how we will use date n currency fields in bdc

    Hi
    When you have to upload using BDC, always use char type fields.
    For date, use date(10) type c.
    write sy-datum to date. Date will be as per using setting, either mm/dd/yyyy or dd/mm/yyyy...
    For currency also, you need to declare as
    data1(15) type n and
    data2(15) type c.
    Now suppose you have a value 12545421.91 . As per user setting it can be 12545421,91.
    In this case, first push the value to NUMC type.
    data1 = 1254521.91 and then data2 = data1 / 100.
    This will change it in required format and can be populated in the bdc table.
    Regards
    Navneet

Maybe you are looking for

  • Minimized files make it difficult to open other files in InDesign CS4

    When I minimize a file I 'm working on to the bottom of the screen in InDesign CS4 and try to open another file, the file I'm trying to open minimizes to the bottom also. It took many tries and a lot of frustration to realize I have to drag the minim

  • Save options while exporting to pdf

    I do export in pdf often, and each time I see 3 checks (Pring each stage of build, add borders.., Include date), which are very annoing, since I don't need them at all and have to switch off all this great features. How to switch them off permanently

  • How do I add the system classpath to Jar Manifest Class-Path

    My application is implemented on win2000 and need to be moved to unix as a executable jar file, the oracle jdbc classes (classes12.zip and classes111.zip) were included in MANIFEST.MF as the following: Class-Path: /Oracle/Ora81/jdbc/lib/classes12.zip

  • Inbound Processing : Error when changing a BOM

    Hi Experts, I have the following error when I send a BOMMAT IDoc in "Change" Mode (Editing the BOM, to recreate the History inthe Target system) : Start processing in API: CSAP_MAT_BOM_MAINTAIN Group BOM Changes to the BOM exist after 03.11.2008 Date

  • Load Balancing / Failover

    wondering if anyone would have advice for me on load balancing with coldfusion either with software or hardware. our basic set up is NAT through a firewall to local IPs. we don't really have the option of assigning outward IPs to the webservers. it's