Creating a Message Prompt for Users

Hello.
I'm trying to create a message prompt, parallel to my project which requires a certain amount of gain.
If it exceeds the limit, it should prompt us a message, saying that it's overlimit and the program should stop immediately.
This is something I should be getting.
However, the problem now lies in the prompt itself.
Whenever, i click OK, it just closes for 1 second, and opens back up.
How do I click it once, and the program stops ?
Will really appreciate any tips/advice.

sdkpark wrote:
try attaching the "true" boolean of the one button dialog to the stop in the while loop
OR, even use a select function to throw an error!  YES, it is OK (though commonly frowned on) that USER malfeasance is an error condition.  BUT, you gotta give the user more than 1 second...... Users commonly look at "*_1_MOTOSDG" as they pass by for longer than that.   Hmmmmmm.... perhaps a "re-adjust" with a three button pop-up to OK, Retry, abort with Retry as the default?
Edit Note: MOTOSDG is Members Of Their Desired Gender"  and I'm pretty "PC" for a MOTOS oriented person.
Jeff

Similar Messages

  • "catching" a prompt for user input and answering it through zenity?

    I'm trying to write a script (or multiple scripts) that will allow me to use command-line only applications via user defined actions in my file manager without having to open a terminal. Now I realize this basic functionality is already available, but as it stands I am unable to respond to command-line prompts for user input without opening a terminal. Is it possible to write a shell script that would act as a wrapper and allow me to use zenity (or another popup program) to respond to such queries?
    For example if I used a command-line program that prompted me for a password, could I "catch" that prompt with a shell script and answer it through another program, such as zenity?
    Last edited by falconheart (2011-01-16 22:37:25)

    The easier way to do this is to collect the info with zenity first, then pass it on the command line.  If the program insists on prompting, then you could try feeding it the info with redirection if it accepts it from stdin.  For example
    command < info.txt
    where info.txt is a temp file created by your script which contains whatever you want entered into the prompts.  This will work in some cases.

  • How to prompt for user input in Forms

    How do I prompt for user input in Forms?
    I am writing a piece of code where the user may choose, by clicking either of three buttons on an alert, to have the system assign a value to a variable, to input a value or to do neither?
    If the user chooses to input the value I want to update a set of database fields with the value.
    I have thought about showing a view where the value may be entered into a field displayed on that view. The value will be assigned to the variable by the user clicking a command button. The question I have in this case though, is whether, after the command button is clicked, control will be passed back to the code that called the view in the first place?

    Desgordon,
    This can be accomplished by displaying your message to the user using an Alert. I use 3 different Alerts (Note, Caution and Stop) in my forms and they are inherited from a central source file (such as an Object Library or a Template Form) so they can be used by all of my Forms. You can set the text of the Alert using the SET_ALERT_PROPERTY() built-in and capture what button the user presses with the SHOW_ALERT() built-in. Additionally, if you need more than one button to be displayed in an alert, you use the SET_ALERT_BUTTON_PROPERTY() built-in to rename the default button or to add up to a total of three buttons in the alert. Here's an example:
    DECLARE
       Alert_ID       ALERT;
       v_AlertType    VARCHAR2(10) := 'CAUTION';
       v_AlertTitle     VARCHAR2(25);
       v_AlertText    VARCHAR2(150);
       n_AlertButton  NUMBER;
    BEGIN
       v_AlertTitle := 'Title of Alert';
       v_AlertText := 'This is message to the user.';
       /* Code leading up to the decision point. */
       alert_id := FIND_ALERT(v_AlertType);
       /* Note: I only set the Label of Button 2 because the default button 1 label is 'OK' */
       SET_ALERT_BUTTON_PROPERTY(v_AlertType, ALERT_BUTTON2, LABEL, 'Cancel');
       SET_ALERT_PROPERTY(Alert_ID, v_AlertTitle, v_AlertText);
       n_AlertButton := SHOW_ALERT(Alert_ID);
      /* Now I can test the value of n_AlertButton for 1 or 2 to find out what button the user selected. */
      IF ( n_AlertButton = 1 ) THEN
         /* Do something, because the user selected 'OK' */
      ELSE
         /* It is assumed at this point that the user selected 'CANCEL' */
         /* Stop processing any further. */
         RAISE form_trigger_error;
      END IF;
    END:Hope this helps.
    Craig...
    -- If my response or the response of another answers your question, please mark the response accordingly. Thanks!

  • AS/400 db2 database asks signon to AS/400 prompt for USER ID and PASSWORD when BO report is refreshed by client users

    Post Author: LalitJoshi
    CA Forum: Publishing
    I have created a report which is using  AS/400 db2 database.Connection is setup in a universe and through Client Access ODBC driver.
    Users are trying to connect AS/400 db2 system through ODBC(Client Access ODBC driver)  and full client BO 6.5.
    It asks for signon to AS/400 prompt for USER ID and PASSWORD when BO report is refreshed by users.
    Is there any way i can avoid the USER ID and PASSWORD as it is not feasible to give database USER ID and PASSWORD to each users.

    > SAPClassNotFoundException:
    > com.ddtek.jdbc.db2.DB2Driver
    It looks like your JDBC driver is not found. Have you deployed the driver to XI?
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10</a>

  • How to Prompt for User/Pass Running Shell Script Remotely through ARD

    So I finally got my Active Directory Script working! However, I realized that I'm not the only one going to be running this script and to have my user name and password in the script itself is beyond foolish. While I know it's possible just to have whoever's running the script to manually add their username and password, I'd prefer to have prompts to make things easier for the rest of my team.
    Here's my current script. I've tested it on the machine I'm connecting to Active Directory and it works fine if you run it on the machine itself in terminal. However, I'm going to be doing this on about 150 machines and the whole point of the script is to do it remotely.
    #! /bin/bash
    MACNAME=$(scutil --get ComputerName)
    read -p "User Name: " USER
    read -p "Password for $USER: " PASS
    dsconfigad -add "CORP.DOMAIN.NET" \
    -username $USER \
    -password $PASS \
    -computer $MACNAME \
    -mobile disable \
    -mobileconfirm disable \
    -localhome enable \
    -useuncpath enable \
    -shell /bin/bash \
    -ou OU=Macs,CN=Computers,DC=corp,DC=DOMAIN,DC=net \
    -force \
    -localpassword "PASSWORD" \
    -groups "GROUPS"
    When I run the UNIX script through ARD to a machine, I get no prompts for USER or PASS. In fact, it gives me the following error "dsconfigad: Authentication server encountered an error while attempting the requested operation. (5202)" So it's not asking for a user name and password.
    Is there any way to make a shell script prompt you for a User Name and Password when you're sending commands remotely through ARD? Or is there another way to do this?
    Any suggestions would be greatly appreciated.
    -rks

    Best solution is to create an account that is exclusive to binding machines.  By doing this, you can embed the user name and password in the script.  Heck, you can post it on your website.  If the account is configured properly, it will only be able to create machine records in a defined container.  If you are mixing Macs and PCs in your AD domain, I also recommend creating an isolated container for your Mac records.  Now, the account has even less access rights as you can make it so it only has rights to the Mac container.
    Otherwise, ARD does not prompt.  You can play around with an expect script but the reality is that you are still embedding the credentials in the script so it really does not achieve what you want.  ARD is not an interactive shell scripting tool.  It is more a fire and forget.
    Reid
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • How To create a message Choice for a page?

    Hi,
    I need to create a message choice for a page and on selection of that it should navigate me to next page..like
    ex:
    If iam havng 10 locations like Delhi,Hyderabad,Chennai....
    I need to select one of them and it should be navigated to next page based on the above selection...These values are to be retrieved from database...
    Can u gimme any idea..how to proceed?

    Maybe something like this will help.
    On your <af:selectOneChoice/> component configure a valueChangeListener and set autosubmit to true.
    In your valueChangeListener change the current view like :
    public void handleValueChanged(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    if (!PhaseId.INVOKE_APPLICATION.equals(valueChangeEvent.getPhaseId())) {
    valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
    valueChangeEvent.queue();
    } else {
    // add additiional app functionality here
    ControllerContext controllerContext = ControllerContext.getInstance();
    ViewPortContext viewPortContext = controllerContext.getCurrentViewPort();
    viewPortContext.setViewId("test");
    Regards,
    Kenneth
    The deferred execution of ValueChangeEvent is necessary as the ViewID can only be changed in INVOKE_APPLICATION phase.

  • ADF security - prompt for user id and password again on page forward

    Hi,
    I am working with ADF using JDeveloper 10.1.3 with Business Components and ADF Faces.
    I have a Search page and a List page.
    Both pages are based on the same view within the same application module.
    The Search page is using the default Find and Execute Operations.
    The Execute button has an action that navigate to the List screen.
    faces-config.xml
    <navigation-rule>
    <from-view-id>/jspx/search.jspx</from-view-id>
    <navigation-case>
    <from-outcome>search</from-outcome>
    <to-view-id>/jspx/list.jspx</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/jspx/list.jspx</from-view-id>
    <navigation-case>
    <from-outcome>find</from-outcome>
    <to-view-id>/jspx/search.jspx</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    Security (Roles and Users) is based on the jazn-data.xml and web.xml
    URL Patterns for the pages have assigned to the role.
    Login Configuration is HTTP Digest Authentication
    <web-resource-collection>
    <web-resource-name>APP_SUPPORT</web-resource-name>
    <url-pattern>faces/jspx/search.jspx</url-pattern>
    <url-pattern>faces/jspx/list.jspx</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>APP_SUPPORT</role-name>
    </auth-constraint>
    <login-config>
    <auth-method>DIGEST</auth-method>
    </login-config>
    Everything is fine when running the application from JDeveloper,
    but when the application is deployed to the server (OC4J),
    After logging into the system, the Search page prompt for user id and password again
    on click of the Execute button.
    Have anyone experience this problem before?
    Thanks for any help.
    Jim

    Hi,
    does the same thing happen if you change your protected resource from:
    <web-resource-collection>
    <web-resource-name>APP_SUPPORT</web-resource-name>
    <url-pattern>faces/jspx/search.jspx</url-pattern>
    <url-pattern>faces/jspx/list.jspx</url-pattern>
    </web-resource-collection>to:
    <web-resource-collection>
    <web-resource-name>APP_SUPPORT</web-resource-name>
    <url-pattern>/faces/jspx/*</url-pattern>
    </web-resource-collection>Brenden

  • Prompt for user profile photos

    Hi,
      When we try to open any page in SharePoint with intranet users' pics in it, sometimes it prompts for user name and password and that to many times not once. So if I provide the username and password then it allows me to see the profile pics in the
    page otherwise shows a "x" on the picture.
    I want to know why this happens for some pics only not all?

    Hi ,
    What do you mean intranet users' pics?
    Does your MySite Host site have different FQDN from your SharePoint site?
    Please check if adding MySite url in IE browser trusted sites zone could work.
    If it still doesn't work, please check ULS log see if there is any related error for any clue when access the SharePoint page containing intranet users pics.
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to prompt for user input in PL/SQL

    How do I prompt for user input in PL/SQL?
    I am writing a piece of code where the user may choose, by clicking either of three buttons on an alert, to have the system assign a value to a variable, to input a value or to do neither?
    If the user chooses to input the value I want to update a set of database fields with the value.
    I have thought about showing a view where the value may be entered into a field displayed on that view. The value will be assigned to the variable by the user clicking a command button. The question I have in this case though, is whether, after the command button is clicked, control will be passed back to the code that called the view in the first place?
    Edited by: desgordon on Sep 3, 2008 10:33 AM

    desgordon wrote:
    How do I prompt for user input in PL/SQL?
    I am writing a piece of code where the user may choose, by clicking either of three buttons on an alert, to have the system assign a value to a variable, to input a value or to do neither?OK, you're doing that in Forms...
    >
    If the user chooses to input the value I want to update a set of database fields with the value.Write PL/SQL procedure for this purpose...
    >
    I have thought about showing a view where the value may be entered into a field displayed on that view. The value will be assigned to the variable by the user clicking a command button. The question I have in this case though, is whether, after the command button is clicked, control will be passed back to the code that called the view in the first place?Not clear what you mean with view?
    But if you call your procedure in that button then yes 'control will be passed back to the code'...
    Cheers!
    Edited by: Faust on Sep 3, 2008 7:57 PM
    Too slow...

  • Can we create two dashboard prompts for the same column in the samepage

    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideas

    863997 wrote:
    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideasYou are correct. You cannot build two prompts on the same column. Use this link for instructions on how to build a "between prompt" because of this fact:
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • CR prompts for user credentials after refresh even though I'm using SSO

    Hello Experts,
    We have a problem with a customeru2019s project concerning Crystal Reportu2019s Single Sign On feature:
    Even though weu2019re using SSO, Crystal Reports prompts for user credentials every time a refresh is performed manually in the browser.
    We already checked SAP note [1214594 - How to avoid database login prompts when refreshing reports in Crystal Reports|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap%28bd1lbizjptawmq==%29/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313334333533393334%7D.do]. The note suggests using Microsoft Windows authentication (trusted connection or operating system authentication) u2013 unfortunately we cannot use this kind of authentication in our project.
    Do you have any hint, idea or suggestions?
    Thank you in advance!

    Hello,
    What kind of Project are you developing? Search for Post Back in the SDK forum and Kbase system so you can keep the log on token active. Likely what is happening is the Token or connection times out after 20 minutes, which is IIS's default timeout. Using the postback method is one way of keeping the SSO connection active.
    Thank you
    Don

  • How to disable Office 2010 Upgrade Policy prompts for users in a Remote Desktop environment

    I have deployed Office 2010 to our Terminal Server.
    When users login to their Remote Desktops and start Office apps they are greeted with making choices for Upgrade Policies:
    Recommended
    Only Updates
    Don't Make Any Changes
    How can I centrally manage this policy and disable this prompt for users?

    Hi,
    From the description, what you mentioned is the Opt-in or First things first prompt when you launch Office program for the first time.
    If you want to disable the prompt, we can use Office Customization Tool or Group Policy to achieve this goal. For more information, please refer to the following blog:
    https://blogs.technet.com/b/odsupport/archive/2012/11/13/how-to-manage-the-opt_2d00_in-or-first-things-first-prompt-when-microsoft-office-2013-applications-are-first-launched.aspx
    Hope this helps.
    Regards,
    Steve Fan
    TechNet Community Support

  • HOW create support message ONLY for KEY USER

    Hi all,
    I just configured my service desk and I wanted to give only the key users the permission to create support messages. But every user have the rights to create a message from the satellite system.
    How can I prevent that? Is it possible to hide the option in the menu bar (help - create message) for non-key-users? The key users have the role SAP_SV_FDB_NOTIF_BC_CREATE . non sap users have just standard roles for hr, ...
    Thanks in advance!

    hi,
    in the documentation it is written
    Create messages from satellite systems with Help ® Create Support Message
    SAP_SOL_SERVTRANS_CREATE
    Authorization object S_RFC,
    profile S_RFC_VERS with the activity Execute for the object SAPSMO*
    this is working fine
    see link http://help.sap.com/saphelp_sm310/helpdata/en/71/50548566324a7491916585fe73a2b4/content.htm
    best regards Xavier

  • Extending the transactionsigner applet to prompt for user's pin

    Has anyone used the transactionsigner applet in IDM to capture the user's pin associated with the smart card? The sample provider class in the REF kit hints at the need to prompt for a pin but there doesn't seem to be a built in mechanism of the applet to prompt the user.
    Am I missing something?
    Thanks,
    Scott

    Best solution is to create an account that is exclusive to binding machines.  By doing this, you can embed the user name and password in the script.  Heck, you can post it on your website.  If the account is configured properly, it will only be able to create machine records in a defined container.  If you are mixing Macs and PCs in your AD domain, I also recommend creating an isolated container for your Mac records.  Now, the account has even less access rights as you can make it so it only has rights to the Mac container.
    Otherwise, ARD does not prompt.  You can play around with an expect script but the reality is that you are still embedding the credentials in the script so it really does not achieve what you want.  ARD is not an interactive shell scripting tool.  It is more a fire and forget.
    Reid
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • ICloud mail: iPhone creates Deleted Messages folder for Trash mail?

    I had a problem with one iCloud email account which I've spent half a day truing to sort so though I'd post what happened here in case anyone knows how it happened or in case anyone has the same problem.  The problem centres around the Trash folder.
    On all the other accounts (all iCloud email) the folders are replicated and all work.  So Sent, Archive, Drafts and Trash are there.  Deleting a mail on the iPhone, on the Mac or the Cloud puts the mail in the Trash (with the bin icon) and it's visible on all three devices in the same location (albeit the phone uses the Deleted Messages name for trash which is a bit dumb IMO considering it's called Trash everywhere else!!).
    One account though seems to be in a mess.  In the Cloud the folder structure is correct and all with the icons.  The first problem is when adding the account to the phone.
    First up, when selecting the various behaviours you can see the Deleted Messages icon with the bin icon to select for deleted messages (I do think this is confusing though - why not use the same folder name as appears in IMAP mail - Trash???)  BUT there is also a folder called Trash that the phone can see in IMAP but that doesn't exist in the iCloud folder structure.  Why this folder is even visible I don't know because on iCloud mail there are no user created folders at all, just the default icons and folder names.
    When I send a message to the address on the iPhone and delete it from there the iPhone creates a Deleted Messages folder that is visible on iCloud mail.  When I select the bin/trash icon on mail on the phone the mail is in there.  The bin / Trash folder on iCloud remains empty and the Deleted Messages folder has the deleted mail.
    So the first issue seems to be that the phone is seeing a folder that isn't there or that somehow the correctly named Trash folder with the icon has become named Trash when the phone sees it, and has a generic folder icon.  Either way, I can't delete this Trash folder.
    How it seems to have got fixed was that after trying all manner of things I went to Preferences on iCloud.  I told iCloud to store messages in Deleted Messages.  I then deleted the Deleted Messages folder then suddenly this Trash folder the phone had been seeing became visible.  I then deleted that too and on checking back the Preferences had defaulted back to Trash, the only available option now. 
    Having gone back to the iPhone the bin icon is still next to the Deleted Messages folder but that Trash folder had gone.  There were no other user defined folders either
    I then tested sending messages to the account and deleting them from the phone, Mac and Cloud and they all went to the right place (Trash) and were all visible.
    I'd had a problem ages ago where random mailboxes were appearing under the separate email names BELOW where the default boxes are listed and below any On My Mac folders.  I'm wondering whether at some stage, with an old Google hangover, whether I'd selected 'Use this Mailbox for' when these random boxes appeared which might have renamed or messed with the routing of boxes in the Cloud.

    That's the way it works. Push notifications are only triggered when you get "new" mail. Other actions, like deleting, reading, moving to a folder do not trigger a Push notification. Those actions only change things when you open the mail app.

Maybe you are looking for

  • PHP to CF Conversion

    I asked in a JS forum how to delay a browser closing for a couple seconds and someone came back with the solution, however they supplied one of the pieces in PHP to which I know nothing about. I know CF has no sleep function, but would like to see ho

  • Deletion indicator is missing in the infocube

    Hi, I have a value  k for filed (LOEKZ )deletion indicator in EKPO table but it is not getting extracted into Infocube. regards, kranthi

  • Where are Flash Player system prefs kept (OS X)?

    Does anyone know where the Flash Player System Preferences are kept? I'm refering to where it stores the preferences for the options in System Preferences in OS X? I'm trying to remote-deploy 11.3.x on 30+ machines and would like to have the "allow A

  • White Flashing Screen, iPhone not turning on

    I setup the new itunes software 7.3, and now it cannot play any music back. There is a warning that says audio playback will not work. Then i went through the activation steps to setup the iPhone, and since i am coming over from Alltel, Apple said i

  • Can you change the year of all songs in an album without changing the year of the album?

    Hi everyone, I was wondering if it is possible to change the year of all the songs within an album while keeping the year of the album. This is particularly relevant in 'Compliation' or 'Best of' albums, where all the years the songs were produced is