Message Box scripts

Hello

I am new to scripting and am hitting a wall. Hoping someone can point me in the right direction. I have created a form that has a button "+" button, and less. If the user clicks on the button "+", they will add a line to their table. If they click the button "-", they remove a line. I want to have a POP up appear when trying to remove a line that asks them if they are sure they want to delete it. I am able to bring up the message box, but I don't know how to control the actions of the answer they select. If he clicks 'Yes' (they are sure they want to delete the line), I want the line to be deleted. If he clicks on 'No' (they do not want to delete the line), I want the user just returned the form without modification. I have included my script for the button "-" below. Can someone help me with the rest? Thank you very much!

Form1. GettingSettled.GettingSettled.Table1.Row1.Subform1.Remove::click - (JavaScript, client)

JavaScript to add a line in a table

var

rowNum = this.parent.index + 1;

this.parent.parent.instanceManager.removeInstance (rowNum);

("are xfa.host.messageBox you sure you want to delete this line Are?"

, "Deleting a line" , 1 , 2);

Try the following if block on the "click event" of "form1. GettingSettled.GettingSettled.Table1.Row1.Subform1.Remove button.

If (xfa.host.messageBox ("' are you sure want to remove this line?", "deleting a line", 2, 2) == '4') {}

In the above line: 4 = Yes and 3 = No

Insert here the Code to delete line

}

For more details, please consult the help of Adobe: http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=001368.html

Tags: Adobe LiveCycle

Similar Questions

  • Problem to display information in a message box

    Hi - I create a deployment script that creates a PSobject to display a summary of configuration changes I'm about to do to a host, as well as a YES / NO box to choose whether to continue with the configuration. The question I have is to get the PSObject information to correctly display correctly in the message box.  I can display ok in the console, but not in the message box.  I attach a doc with the release of the console box and message, I would like to the messagebox, output look the same as the way in which its displayed in the console.

    Code to create the PSObject...

    $hostname = $_.esxihost

    $dvswitch = $_.dvswitchname

    $pg_vmotion_1 = $_ .vmotion_pg_1

    $pg_vmotion_2 = $_ .vmotion_pg_2

    $pg_nfs_a = $_ .nfs_pg_A

    $pg_nfs_b = $_ .nfs_pg_B

    $vmk_vmotion_IP1 = $_. IP1_vmk_vmotion

    $vmk_vmotion_IP2 = $_. IP2_vmk_vmotion

    $vmk_vmotion_SM = $_. SM_vmk_vmotion

    $vmk_ipstorage_IP_VLAN128 = $_. VLAN128_vmk_ipstorage_IP

    $vmk_ipstorage_IP_VLAN129 = $_. VLAN129_vmk_ipstorage_IP

    $vmk_ipstorage_SM = $_. SM_vmk_ipstorage_IP

    $object = new-Object - Typename PSObject

    $object | Add-Member-MemberType NoteProperty - name ESXHostname - value $Hostname

    $object | Add-Member-MemberType NoteProperty - name DV_SwitchName - value $dvswitch

    $object | Add-Member-MemberType NoteProperty - name PG_1_VMotion - value $pg_vmotion_1

    $object | Add-Member-MemberType NoteProperty - name PG_2_VMotion - value $pg_vmotion_2

    $object | Add-Member-MemberType NoteProperty - name PG_NFS_A - value $pg_nfs_a

    $object | Add-Member-MemberType NoteProperty - name PG_NFS_B - value $pg_nfs_b

    $object | Add-Member-MemberType NoteProperty - name VMot_1_IP - value $vmk_vmotion_IP1

    $object | Add-Member-MemberType NoteProperty - name VMot_2_IP - value $vmk_vmotion_IP2

    $object | Add-Member-MemberType NoteProperty - name VMot_SM_IP - value $vmk_vmotion_SM

    $object | Add-Member-MemberType NoteProperty - name NFS_VLAN128_IP - value $vmk_ipstorage_IP_VLAN128

    $object | Add-Member-MemberType NoteProperty - name NFS_VLAN129_IP - value $vmk_ipstorage_IP_VLAN129

    $object | Add-Member-MemberType NoteProperty - name NFS_SM - value $vmk_ipstorage_SM

    write-output $object

    Code to create the message box...

    $title = "Please verify information."

    $message = ' is the correct information for $hostname?  Do you want to continue? « ;

    $yes = New-Object System.Management.Automation.Host.ChoiceDescription "& Yes", "the information above is correct.

    $no = New-Object System.Management.Automation.Host.ChoiceDescription 'and not', 'Information above is NOT correct.

    $options = [System.Management.Automation.Host.ChoiceDescription []] ($yes, $no)

    $result = $host.ui.PromptForChoice ($title, $message, $options, 0)

    Please see the attached document for the 2 different types of output - 1 correct, incorrect 1...

    Thanks in advance

    The two results are created by different parties.

    When you view $object on the console, it is the release of PowerShell trainer, who knows the objects, product display.

    The 2nd exit, which is missing from the code you gave, but I guess that the $object added you to the $message variable, is produced by the same PowerShell component that manages the output of Write-Host.

    In this case the object is not interpreted, but as it is dumped.

    You can force this 1st output by converting this specific output in [channel].

    Something like that

    .

    $obj = new-Object-property PSObject @ {}

    Field1 = 'abc '.

    Field2 = "xyz".

    Field3 = 'xyz '.

    Field4 = 'xyz '.

    Sphere5 = "xyz".

    Case Field6 = "xyz".

    }

    $title = 'Please check the information '.

    $message = "is correct for information?  Do you want to continue? ' r $($obj |) (Out-String) ".

    $yes = New-Object System.Management.Automation.Host.ChoiceDescription "& Yes", "the information above is correct.

    $no = New-Object System.Management.Automation.Host.ChoiceDescription '& no.","Information above is NOT correct.

    $options = [System.Management.Automation.Host.ChoiceDescription []] ($yes, $no)

    $result = $host.ui.PromptForChoice ($title, $message, $options, 0)

    This will give

  • Message box in function that returns a list deletes the created list... (Dialog box)

    Hello

    I work with a complex dialogue, its purpose is to manage a section in the PDF file.

    I use a "mclv" object in the dialog box to represent data entries in the PDF file in order to manage the result in another section.

    I created a function that creates the list based on a previous section in the PDF object, the function works perfectly well.

    But I have a small question, the function used to create the list of the dialog box object performs a check with the former front list created, as appropriate,

    and if in any case it is different from the old list, I need to warn the user that the list has changed and if there were any changes applied to the result it will be returned to zero and must be recreated.

    But when the poping that message box, all lists are deleted and nothing is displayed in the objects 'mclv.

    If I remove the message box, the lists are all very well...

    Is there anyone who have come across something like this before? If so, any solution to this problem?

    I asked my question a bit too quickly, I already found a work around

    But I still don't understand why he behaves like that tho...

    I just thought how to work around this problem.

    If anyone has encountered this problem can use this solution:

    Instead of having the message inside the function to return box, I declared a global Boolean variable to the Script object

    If the message box must be displayed, the Boolean value is set to True

    Once in the initialize event of the dialog box, if the value Boolean true I call the message box and reset the value Boolean false

  • APEX 41 field help as popup message box

    I use Apex 4.1
    And I would use a message box popup that Apex has when you click on a label that helped defined similar.

    For a list that is created in the shared area, I am wanting to use the space defined by user 1 as message text to inform users a little more on the icon option when they take their mouse on the label of the field.

    Is the pop-up message which is used to HELP something that can be called.

    I've seen in previous posts on the creation of a separate form and call it via a java script call. It cannot yet be so difficult in 4.1 since they have the level of assistance field.

    Any help is appreciated.

    greG

    Sorry, I misinterpreted what you were asking.

    The lists are very customizable. The field attributes and custom attributes can all be used within the list template. I've seen lists to do amazing things.

    A ToolTip would be sufficient?
    http://www.grassroots-Oracle.com/2011/01/adding-tooltips-to-your-Apex-report.html

  • Display a field value, and a message in a message box text

    Hello

    I got a message box that indicates the value of a text box when a button is clicked. I would like to add a message to the message box text, so that my message box displays something like:

    You have entered this data: 'textField value'

    This script works for the value of text field, but I can't understand how to combine it with a regular message box text message. I tried different combinations of () and "" but no luck.

    If

    (TextField1.rawValue ! = null( )

    {

    xfa.host.messageBox (TextField1.rawValue

    , "Message box title");

    }

    Kirstine

    Hello

    I think that the code would be something like this

    If (TextField1.rawValue! = null)

    {

    xfa.host.messageBox ("you entered the data:" + TextField1.rawValue, 'The Message box title');

    }

    Hope this helps

    Malcolm

  • A question of FormCalc Message Box

    Hello

    I do MessageBox in formCalc and I'd like to set the focus on the field when the user select 'yes '.

    Form1. #subform [0]. TextField1::exit - (FormCalc, client)

    if (xfa.host.messageBox ("Would change you the value in the field?" )) , 'Warning' , 2 , 2) == "4") puis

    xfa.host.setFocus ($)

    endif

    I can do the function works in JavaScript, but not in FormCalc. Can some tell me what's wrong?

    It must be FormCalc as the message box appears at the end of a complex calculation for a long time I did not. And I don't have the qualifications (or the time) to modify this JavaScript script.

    Kirstine

    The field name must be in quotes...

    xfa.host.messageBox ("TextField1")

    Paul

  • second line in a message box

    Hi guys,.

    I hope you can help me with this.

    I want to create a second line in a message box.

    I discovered in javascript that I use for this \n somewhere in the xfa.host.messageBox("") but I tried everything, and it still does not work.

    Can you help me with this?

    Thank you in advance!

    Diana

    Because your look similar to this script and you have selected the JavaScript option for the language?

    xfa.host.messageBox ("this is a message. \nThis is a new paragraph. \n\nHere is a new paragraph with two spaces. ","this is a title ", 3, 0);

  • Tables: Must have text Message box appears if the totals do not agree

    I have a table that has six columns of figures. Each column is reached. I would get a text box ("these totals must agree") to appear IF (column mouse + column Rats) is NOT equal to (column B column C + column D + column E.)

    I didn't need calculate the sum of the totals of columns, that is to say, no need to know the total of mice and rats, etc.. I just have to make sure that the number of rats and mice is equal the number of category B, C, D and E pets. And to let the form user know.

    I hope that makes sense!

    Thank you!

    There are two ways to handle this.  Normally validation of this type is made when the user has finished the form and is ready to submit.  This is because in this case, validation is based on several columns and rows, so if you wanted a pop-up for the error message box, they would get a message popping up every time a number is entered until all columns are added correctly.

    It looks not to form any kind of function submit, so I got stabbed another angle.  I've added a message that is a note and a warning below the list of categories.  This is normally visible and is hidden when the columns add up correctly.  I added the validation code in the event of page layout: ready for JustifyE since it was already used another script and it fires when you need it.

    Update form is attached.

  • I get the same message: a script on this page may be busy, or it may have stopped responding

    Since a couple of days I get the same error message: "a script on this page may be busy, or it may have stopped responding." You can stop the script now, open the script in the debugger, or let the script continue. »

    I'm not a COMPUTER expert, however, I have read similar online messages and tried many steps such as:
    --deleting history navigation and cookies
    -Mozilla resetting to the factory settings
    -Uninstall and reinstall Mozilla

    Unfortunately, the problem is always the same. What can I do? I work from home and need internet to work 100%.

    Moreover, the navigation works fine in other browsers, but not Mozilla.

    Thank you

    This script is the culprit in the following message?

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger or let the script.

    Script: resource://gre/modules/addons/XPIProvider.jsm-> jar:file:///C:/Program%20Files/Mozilla%20Firefox/browser/extensions/%7B82AF8DCA-6DE9-405D-BD5E-43525BDAD38A%7D.xpi!/bootstrap.js-> resource://gre/modules/commonjs/toolkit/loader.js-> resource://gre/modules/commonjs/sdk/loader/sandbox.js-> resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/jquery-2.1.0.min.js:28

  • Auto SMS sent from my iPhone 5 to this number SMS int ' l 447903553650 and loaded for free! No history of sms sent in my message box! How can I solve it?

    Auto SMS sent from my iPhone 5 to this number SMS int ' l 447903553650 and loaded for free! No history of sms sent in my message box! How can I solve it?

    Tap settings > Messages and then turn OFF send as SMS .

  • AirPlay message box appearing pictures lock on screensaver on tv

    AirPlay is set up on my TV for my photos and music, but a message box keeps appearing in my photos screen saver blocking

    Looks like the conference room mode is on.  Disable in the settings:

    On restrictions of airtime and the mode of the conference room on your Apple TV - Apple Support

  • Satellite Pro A300 - error message box: Pwdbank - abstract error

    Pro A300 laptop constantly arisen in the error message box: Pwdbank - abstract error. Must kill the pwdbank process to stop it.

    Anyone know what is the problem and how to fix it?

    Thank you.

    AFAIK the pwdbank.exe is a part of TrueSuite.

    If you use fingerprint or tool, you can disable the automatic loading of this file.
    Otherwise if you need this, you should check for an update from Toshiba Web site:

    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

  • Firefox 4 shows several message boxes with "uninstall all '. '. How can I stop this?

    Firefox 4 shows several message boxes with "uninstall all '. '. They may not be closed and they freeze Firefox. The only way to stop is to END of TASK through the Task Manager.
    OS: Vista) with all the service packs and updates as of April 21, 2011. All other browsers and applications are closed.

    This problem may be caused by an extension that is not working properly.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Tools > Modules > appearance/themes).

    In Firefox 4, you can use one of them to start in the questions to troubleshoot Firefox in Safe Mode:

    • Help > restart with disabled modules
    • Hold down the SHIFT key while double-clicking the shortcut from the desktop Firefox (Windows)

    See:

  • Message box

    Hello

    I hope someone can give me a hand with this...

    I created an array of offset, where each position of the table corresponds to the offset for a channel. I have another array containing the names of channels.

    Now I want a pop window mentioning the name of the channel on the left and his shift on the right (there are 36 shifts) so the user can check them.

    So far, that I've created a loop For which opens a message box (using the 'msgboxdisp' function) with a single value in time, 36 times, which to be honest is an extremely poor solution.

    If anyone can suggest something

    Thank you

    Hi Leillo,

    Here is the approach of ambivalent MsgBox.

    For iCount = 1 to 23
    StatSel (iCount) = 'no '.
    Next
    StatSel (6) = 'yes '.
    Dim offset (100)' define an array of 100 for the channel offset
    Dim a, i, Msg
    a = ChnNoMax'Calculates the number of channels
    ICount = 1 to a ' loop to calculate the table of offsets
    Call StatBlockCalc ("Channel", "1-", iCount)' compute channelwise, 1st row on the last, all channels (iCount represents "all channels.
    offset (iCount) = statarithmean ' table of offsets
    Next
    for i = 1 to a
    MSG = Msg & I & vbTAB & offset (i) & + "\n"
    Next
    Call msgboxdisp (Msg, "MB_OK", "MsgTypeWarning", 3)

    MsgBox items won't be able to show all the 100, but you could filter only issue items / interesting and hide the others uninteresting.  Or you can go the road from SUDialog to pop up to a custom dialog box, you set for a table with 2 columns.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • How can I avoid my message box to send these messages which are invadeing?

    All these messages are poping up upward in the message box, now I can't send my message, because now I'm over my limit of message, but none of the messages are not from me.

    If you use Hotmail, your probably got account compromised.  Ask here and they can rectify things: http://answers.microsoft.com/en-us/windowslive

    Steve

Maybe you are looking for

  • How can I check for other versions running of Foxfire

    received pop-up which until now has no one to check other versions running of foxfire, how can I do this?

  • Windows 7 on Sleekbook 15

    Our district has recently purchased a HP Pavilion TouchSmart Sleekbook 15. We need these machines to run windows 7 and I'm looking for a list of the drivers I need for machines. We will run the 64 bit OS 15 - b129wm of the model Will be grateful if s

  • WMP not working or loading and install file says could not be installed because the latest version installed

    WMP has stopped working a few downloaded days ago new installer. When I try to use it, the message error "there is a more recent version pf WMP (11.0.6002.18311)... Not possible to use an older package (11.0.5721.5146) on the current drive. Could not

  • Base system device error

    Good day to you all, please can you help me solve the device driver missing 3 missing system on my Pavilion dv6-1325sf... I tried to search for drivers online, but couldn't find a... Please, I'll be glad if someone can help me... Thank you

  • Como bloquear Panel tactil dell inspiron?

    I have a Dell inspiron laptop. A dia por problemas me estaba ocasionando tuve than formatear, y desde entonces ese no me permite bloquear el mouse del panel tactil, nor desde el teclado atajo desde Control Panel. Algun Consejo?