How to change appearance of xfa.host.messagebox

    Is there anyway to apply a different look to the xfa.host.messagebox ?  It is pretty, um what is the word ..... -- ugly. That is the word
Any help would be very appreciated.
Thanks

Hi,
The url that Steve gave above takes you to the Help file for LC Designer.
You put the messageBox line within your script when you want to alert the user to something or to give them a choice. for example you could put the script within a calculate event to let the user know the value of a hidden variable:
xfa.host.messageBox("This is a message", "This is a title", 3, 1);
The help file sets out the four different options for the last two parameters (which can be used in any combination).
xfa.host.messageBox("This messageBox uses:\n\nParameter 3 = 1 (Warning) and Parameter 4 = 1 (OK, Cancel)", "Hello World!", 1, 1);
The "\n" will insert a return (new line).
Scripting for additional features within a dialogue window can be achieved using the Javascript Dialog Object; however this is getting quite advanced. The AcroDialog product from Windjack Solutions does make this process easier.
The messageBox returns a number depending on which button the user clicks:
Returns 1 if the user clicks OK;
Returns 2 if the user clicks Cancel;
Returns 3 if the user clicks No;
Returns 4 if the user clicks Yes;
On this basis you can script actions depending on which button the user clicks in your messageBox, by asigning the returning value to a variable and then looking at the value of the variable. For example in the click event of a button on the form:
var nButton = xfa.host.messageBox("You are about to delete this row.\n\nDo you want to continue?", "DELETE ROW", 3, 2);
if (nButton == 4) // Hitting the Yes button returns 4
     _dyndetail.removeInstance(this.parent.index); // proceed with delete
The above deals with LiveCycle Designer. If you are scripting exclusively in Acrobat then you could use the app.alert(); method, to display your message.
Hope this helps,
Niall

Similar Messages

  • Xfa.host.messageBox

    I am trying to get a message to appear if someone tries to enter enter data in a drop down list before entering in formation in a previous list.  I have two drop down lists: ServiceType[0] and Action[0]. I have this code set up in the change event:
    topmostSubform.Page2.Action[0]::change - (JavaScript, client)
     if  (topmostSubform.Page2.ServiceType[0].rawValue == null){
    xfa.host.messageBox("You must select a Service Type Value"
    , "Error", 3, 1);}
    When I select something from the Action[0] list, nothing happens when I have not selected anything in the ServiceType[0] list. What am I missing please?

    Hm,
    generally your scripts look fine.
    But, JavaScript does not support the instance accessor [0] you used, only FormCalc does.
    To use them in JavaScript you need the xfa.resolveNode method like xfa.resolveNode(" topmostSubform.Page2.ServiceType[0]").
    Also, to resolve the first instance of an object, which has always the accessor [0], you don't need to describe the accessor.
    So topmostSubform.Page2.ServiceType is the same as topmostSubform.Page2.ServiceType[0]
    Just a hint for your script in JavaScript.
    if (xfa.resolveNode("topmostSubform.Page2.ServiceType").rawValue == "" || xfa.resolveNode("topmostSubform.Page2.ServiceType").rawValue == null) then
         xfa.host.messageBox("You must select a Service Type Value", "Error", 3, 0)
         xfa.host.setFocus("topmostSubform.Page2.ServiceType")
         xfa.event.change = ""
    or in FormCalc.
    if (topmostSubform.Page2.ServiceType.rawValue == "" or topmostSubform.Page2.ServiceType.rawValue == null) then
         xfa.host.messageBox("You must select a Service Type Value", "Error", 3, 0)
         xfa.host.setFocus("topmostSubform.Page2.ServiceType")
         xfa.event.change = ""
    endif

  • How to change the fully qualified host name

    Hi,
    how can I change the fully qualiied host name?
    Regards
    Marc

    Hi Michal,
    I'm doing the FlightSeatAvailabilityCheck-Scenarion of the demo example and get an error. To get more details about the error I had a look in the XI Runtime Workbench. There I can see, that the wrong url is called (without the hostname) and  that the access is forbidden (403). Therefore I want to change the fully qualified host name. I knew that I have to change icm/host_name_full but I don't know where I can do it (which transaction)?
    Regards
    Marc

  • How to Change Appearance of "Top-Level" Wiki Server Pages?

    In Mountain Lion Server t is easy enough to change the appearance of our Wikis, Personal pages and their attached blogs - simply by going to "Wiki Settings...->Appearance" or "My Settings...->Appearance". This allows us to change the background pattern on pages, add a custom texture to headers, and select from a handful of preset colour schemes.
    It would be nice to have that level of control over the appearance of all the pages in my Wiki, but there seem to be a handful of default, top-level pages in the wiki whose appearance cannot be easily controlled anywhere. These include the "Home" Page, the "All Activity", "All Wikis" and "All People" pages.
    Is there a way to change the background and apply different colour schemes to these pages, too?

    Tom
    Anything is possible in the portal, however, out of the box functionality will not let you do this. Therefore you would have to create your own method of doing this.
    What you could do, would be to have some form of UI that would allow the users to see what TLN entries they have, and let them arrange it however they choose. This information could potentially be stored in the /userhome folder in KM for their preferences. Then, have your own TLN iview, which retrieves the navigation entries from the navigation service, and then retrieve the personalised order from the configuration in the /userhome folder.
    It simply depends on how much development expertise you have, and how much time and effort you wish to spend on this.
    I hope this gives some kind of ideas
    D

  • How to change appearance of text in HTML snippet?

    Does anyone know if / how I can make the text inside an HTML snippet (when rendered in the overall HTML page) appear like the text on the rest of the page?
    Here, you can see an example of what I mean: http://zach.in.tu-clausthal.de/tmp/iweb.png
    So, the HTML snippet contains, effectively, a hyperlink to an email adress - now I would like to make the email adress look like all other links on my web page.
    I have tried to insert a <span class=".."> inside the HTML snippet, to no avail.
    Any other ideas, suggestions, and insights will be highly appreciated.
    Regards,
    Gabriel.

    Normally you would just use a style for the <a> so that you can style the link and rollover.
    If you want to use this code as is, put the CSS into the snippet. You don't need a span "class".
    Change the span to this...
    <span>zach in.tu-claushal.de</span>
    ... and add the style...
    <style type="text/css">
    span {
        font: 1.0em "Verdana", sans-serif;
        font-style: normal;
        color: #000FFF;
        text-decoration: underline;
        text-transform: normal;
    </style>
    Change the font type, size and color to taste.
    I have expressed the size in ems but you can use pixels etc.
    If you don't want the underline, change "text-decoration" to "none".

  • How to change appearance in Safari header?

    How do we increase the font size (File Edit etc)?
    How do we increase the boxes at top right (Reduce, Full Page, Close)?
    How do we change the color of the header to something more readable?
    How do we add a tab creater, like in Firefox?

    Coach,
    1. Under the "View" menu at the top click "Customize Toolbar" to add text size to the toolbar. Or you can hold Control and "+" to increase size and Control "-" to decrease size.
    2. For window size first (Click and hold) drag the bottom right corner to the size you want. Then click on the square in the upper right (Between the "__ and the "X" to increase to full size.
    3. Not sure you can change color
    4. For Tabs go to: Edit>preferences> tabs (which also lists the key shortcuts for each function)

  • Q10/BBY Link - How to change appearance?

    I have the Q10 and the "delightful" new Link software to do one-way transfers of data...
    Every time I open the Link software, I get this page full of pictures and videos that on the phone.
    Is there a way to hide these and go straight to the productive aspects of the BBY?
    It is nice to have a camera, but it feels a bit odd to show pictures of kids, etc everytime I connect the device to update calendars and contacts in the office.
    Thank you for any assistance.

    Hey Imgeuk,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    My apologies but the appearance can not be changed, it will show the pictures and album art for music in BlackBerry Link when you launch it.
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Xfa.host.messageBox or app.alert not working some machines

    Hi,
    We've a PDF form with alert messages on a button click. We've written a function in a script object which is called on button click. This PDF is working fine on most of the machines but does not work few machines. On all machines, we have same adobe reader version (9.4.0). The machines with this problem have similar configuration as others (windows XP, no other adobe software installed etc.). When we look at the javascript console, it gives messages like the function is not available. What could be the issue here. I think if we reinstall/repair the adobe reader, probably it will resolve the issue. But before doing that we want to understand what exactly the problem could be. Has anybody seen this error before?
    Thanks
    Ram

    That's odd...
    Does that same happen with a blank template containing nothing but a button with a click event:
    app.alert("click");

  • Xfa.host.SetFocus question.

    I have a code on Exit event of the field that checks if 5 digit US ZIP code, 5 digit US ZIP code + 4, and 6 digit alphanumeric Canadian Postal Code.
    If user enters valid 5 digits code, then I set focus to specific field-FField1. Code is simple and it works. What does not work is, if I tab out , without entering anyting in the Zip code, the focus is set to some other field, not FField1. How can I force it with the code that focus is set to FField1 all the time.
    Code is simple:
    var regExpDate = /^\^\d{5}-\d{4}|\d{5}|[A-Z]\d[A-Z] \d[A-Z]\d$ $/;
    var vMatched = this.rawValue.match(regExpDate);
    if (!vMatched){
    this.rawValue=null;
    xfa.host.messageBox("Enter the following format: 99999 or 99999-9999 or A9A 9A9 );
    xfa.host.setFocus(this);
    else
    xfa.host.setFocus(form1.subform1.FField1);

    Hi again 1996,
    You can use setFocus multiple times in the exit event, and the last one that is called is where you end up. I would suggest putting the 'default' tab before all of your logic, to ensure that it's the one that gets called when the field is valid:
    i.e.:
    xfa.host.setFocus(form1.subform1.FField1);
    var regExpDate = /^\^\d{5}-\d{4}|\d{5}|[A-Z]\d[A-Z] \d[A-Z]\d$ $/;
    var vMatched = this.rawValue.match(regExpDate);
    if (!vMatched){
    this.rawValue=null;
    xfa.host.messageBox("Enter the following format: 99999 or 99999-9999 or A9A 9A9 );
    xfa.host.setFocus(this);
    This way, unless vMatched is true and the second setFocus is called to override the first, your user should always be sent to FField1.
    I know that this isn't a part of your question, but I'd like to suggest avoiding the 'thou shalt not pass until...' situations. What if your user doesn't know the postal/zip code, and wants to fill in the rest of the form before finding it? They could enter dummy data to get past your requirement, but then there's a chance that they'll forget to replace it with the real value. Altogether, I think it's better to check for invalid data in the pre-save/pre-submit events, and warn them of the required fields then.
    Also, consider only calling setFocus for when the user is tabbing away from fields. If you manually call setFocus to control the tab order from all fields (I do this for all of my forms, as I find that dynamic forms don't play nice with the tab order) then use:
    if (xfa.event.commitKey == 3) then
         xfa.host.setFocus("$.parent.NextFieldName");
    endif
    This way, if the user clicks on another field that they want to fill next, they won't be redirected to the one you chose for them.
    Sorry for the unsolicited advice... These were just some of the things that I've had to deal with in the past.
    - Scott

  • Jdev 11g: af:inputListoFValues - change appearance of results table?

    Hi,
    I find no way how to change appearance of table with results in inputListoFValues.
    I'd like to set the widths of specific fields etc.
    Jernej

    Hi,
    if you mean the table that is part of the LOV popup then skinning is the only option you have. See the chapter "Customizing the Appearance Using Styles and Skins" of the Web Developer documentation to learn about skinning
    Frank

  • Need of hostname change on existing endeca host

    Hi All,
    I have installed all endeca core packages (Mdex6.2.1, Platform6.1.1, Workbench2.1,..) and a pipeline on one of linux box. Now, there is a need of hostname change. Hope it does not break any  existing platform and pipeline. Is there any document related?
    What i can think of on endeca perspective are,
         Hostname change on environment.properties
         URL change on pipeline esp file
         Change eac central server hostname on workbench
         URL change on Preview app setting on workbench
    Is there anything else I need to consider?
    any comments are more than welcome.
    Thanks,

    Take a look at support KB: How to Change IP addresses or host names for Endeca Hosts (Doc ID 1532056.1).

  • How to certificate a Form, that i can use xfa.host.importData("");?

    Hello!
    I´ve got made a Form that can import an XML Document. For this feature i use the javascript function
    xfa.host.importData(""); <-- empty String to open the OpenFileDialog
    the form works in Adobe Acrobat Reader 7.05 fine, but now i have updated my Adobe Acrobat Reader to 7.07 and nothing happend. A first look in the JavaScript Debbuger says me, that there is an security problem. So i have searched for this problem here in the forum and found an answer that this is only working with a certificated document/form.
    Is that right? I think its a bug, because why shoudt i certificate a document for Adobe Reader 7.07 and not for 7.05?
    My question is, how do i certificate the Form and what do i need to configure in the adobe reader that my document is working?

    [email protected] wrote:
    > Eva,
    >
    > While it's technically possible to attach files to an XFA-PDF form (a form designed in LiveCycle Designer (XFA) and saved as a PDF document) using Acrobat Pro, for example, it's really not recommended. An XFA form saved as a PDF document really a PDF with a thin wrapper around an XFA document. When the PDF document is opened in Designer, the PDF wrapper is discarded and therefore any annotations (such as bookmarks, attachments, comments, etc.) that you might have added to the PDF document using Acrobat are lost. Fortunately, we have a great solution for this in an upcoming release but I can't really give any details on it at the moment.
    >
    > As far as digital signatures go, I'm not really an expert in that area so I can't speak to whether attachments get signed or not. This might be a good question to post on an Acrobat Forum
    or the Reader Extension Forum
    >
    > Stefan
    > Adobe Systems
    Stefan,
    I'll have to disagree with you...I don't see the use of file attachments within an XFA form as an
    issue. Sure, the attachments will be discarded when you open them in Designer, but the purpose of
    Designer is for designing the form template, not as a client application for
    viewing/filling/distributing forms. The same could be said for form data or digital signatures...as
    soon as you open up a PDF file containing saved form data in Designer, you lose that information as
    well.
    As far as the digital signatures go...the attachments are included as part of the information
    that is signed. If you add or remove an attachment, the signature validation icon will display a
    yellow exclamation mark indicating that something in the form has changed.
    Justin Klei
    Cardinal Solutions Group
    www.cardinalsolutions.com

  • I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple I'd as there was some problem with the first one. Now at some places still my old apple I'd is appearing.  Pls adv how I change this to my new apple Id.

    I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple id
    as there was some problem with the first one. Now at some places still my old apple Id is appearing.  Pls adv how I change this to my new apple Id.

    Anything you downloaded with the first Apple Id will forever be tied to it, and will always require it to update.
    The question here is, why did you think you needed to create a new Apple ID? What was the problem with the first one?
    To get rid of th old one, you'll need to delete everything you downloaded with it, and then sign out of the ID in several places around the iPad. 
    Go to Settings->iTunes & App Stores->Apple ID->Sign out.
    Repeat the process, for Facetime, Messages, Mail and any other App you need to sign out of.

  • HOW TO CHANGE HOST NAME AFTER SAP IS INSTALLED?

    i have installed ecc6 in my computer.But after installation is completed i want to change my computer(system) name.If i change the computer name is there any problem occur.May i change computer name after installation also.

    As far as my understanding goes it can be done. The only problem is SAP is not recommending it. Still if you want to give it a shot please go through the link to learn more and step by step guidance.
    [Click Here|http://www.saptechies.com/changing-host-name-on-r3-host-what-do-you-do/]
    Also take a look  at this SDN thread, you might find something interesting.
    [click here for SDN thread|How to change the hostname was set/defined in SAP system?;
    Edited by: santra.anirban on Sep 13, 2010 10:45 AM

  • How to change host name

    HI All,
    In the em console , all the urls hostnames are invalid , So the URLs are not working proerly.
    ex:
    http://*2002:4b90:1bf3:16:b43a:e855:c778:a869*:9001/wsm-pm
    How to change this hostname in em ? Please help me ot this issue.
    Thanks
    Govindan P

    hi Govindan,
    You can use virtual hosting for changing the hostname.
    Regards
    Fabian

Maybe you are looking for

  • Idoc-XI-POS (Triversity) scenario - new in XI

    Hi, I am new to SAP XI and I have a scenario wherein I have to send message to SAP Triversity (POS which excepts CSV files) from R/3. Can anyone please guide me with the entire process starting from configuring the systems - R/3 sender, XI (SLD, IR,

  • Does anyone know if the HDMI to DVI Adapter that comes in the Mac Mini box is DVI end male or female?

    Does anyone know if the HDMI to DVI Adapter that comes in the Mac Mini box is DVI end male or female? Should I be getting a male to male DVI cable, or will this one work out of the box? Thanks!!

  • Question about different versions

    I was just trying to clean up my computer a bit and saw that I have versions 1.4.2_04, _05 and _06. They are 107MB, 108MB and 108MB, respectively. Do I need all three of those or can I delete 4 and 5? Michele

  • Customising existing iView by deleting fields/columns

    Hi, I wanted to know the tools/procedure require to customise existing iViews (in a MSS implementation). If we want to say delete/add a particular field or column in an existing iView, what tools do we need? Visual Composer or Web Dynpro? Is there a

  • DW CS3 locked files and FTP issues - cannot update pages

    I just upgraded to Dreamweaver CS3 and now cant seem to update any of my web pages. I can connect to the server etc and see my files locally & remotely but when I try check out a file to update it I get an error message saying 'index.html is a locked