Request user input

I have a simple UI class that has a single text field. This class has a method on it:
public String provideInput()
The UI is only supposed to permit the user to provide input when provideInput() is called by the backend logic. The string that provideInput() returns should be the text provided by the user; this text is then parsed and processed by the backend logic.
What is the most elegant way of causing the method provideInput() to block until input is provided? My current solution is to:
Disable the text field until provideInput() is invoked;
Set a flag indicating that input has not yet been provided;
When provideInput() is invoked, enable the text field;
Inside provideInput(), while input has not been provided, do Thread.sleep(x)
When the text field's ActionListener receives the actionPerformed event, flag that input has been provided;
Inside provideInput(), when the while loop terminates, return the text in the text field.

I have a simple UI class that has a single text
field. This class has a method on it:
public String provideInput()
The UI is only supposed to permit the user to provide
input when provideInput() is called by the backend
logic. The string that provideInput() returns should
be the text provided by the user; this text is then
parsed and processed by the backend logic.
What is the most elegant way of causing the method
provideInput() to block until input is provided? My
current solution is to:
Disable the text field until provideInput() is
invoked;
Set a flag indicating that input has not yet been
provided;
When provideInput() is invoked, enable the text
field;
Inside provideInput(), while input has not been
provided, do Thread.sleep(x)
When the text field's ActionListener receives the
actionPerformed event, flag that input has been
provided;
Inside provideInput(), when the while loop
terminates, return the text in the text field.That's alot of work to re-invent the modal wheel.
Modal dialogs are dialogs that block the rest of your UI until dismissed. You should use one of them. A JOptionPane for example.

Similar Messages

  • Request user input message format

    When using the request user input function it sends an e-mail that is very hard to read for end user and I not able to see which e-mail template that is being used so I can change the format.

    Hi,
    Please create Notification Templates in System Center Service Manager by following the link below:
    Creating Notification Templates in System Center Service Manager
    http://blogs.technet.com/b/servicemanager/archive/2009/09/28/creating-notification-templates-in-system-center-service-manager.aspx
    And also check the article below to know more details about how to create requesting input from user:
    Requesting Input from User About an Incident
    http://blogs.technet.com/b/servicemanager/archive/2009/12/13/requesting-input-from-user-about-an-incident.aspx
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Requesting user input from UNIX command window

    New to this forum, and relatively new to Java......question for you......
    Currently, I am able to request a .txt file from a user in my unix command window by having them type in the following command:
    java Game (nameOfTextFile).txt
    with the following code:
    public class Game {
    public static void main(String[ ] args) {
    try{
    reader = args[0];
    catch(Exception g){
    System.out.println(g);
    where 'reader' holds the .txt file.
    What I would like to do is as soon as the user types in the command:
    java Game
    it gives them the line:
    "Please type the file to be input"
    and at this point they type in:
    (nameOfTextFile).txt
    and then I can start working with the text file.
    Any ideas?
    Thanks

    public class Game {
    public static void main(String[ ] args) {
    try{
    reader = args[0];
    catch(Exception g){
    System.out.println(g);
    }This class will not compile. The variable 'reader' is not declared anywhere.
    You could create a shell program. When the user enters the name of the shell program at the command prompt, it gives them the prompt to enter the file to be input. And then from within the shell program you call the java program with the name of the file.

  • Urgent help request: User input in empty table

    I am trying to find some idea how does one code so that user can input rows or delete rows in am empty JTable. I would appreciate if any article, example or suggestion on this is extended. Thanks in advance.

    Sun's java tutorial has some examples.
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • Display dialog, await user input how to get no timeout?

    I have a script i run on login, it brings up a dialog that requests user input, how can I stop it timing out if nothing happens?

    Sorry long delay to get back to my question that I asked,
    Still having issues, original I used the timeout action, and that keeps the script working.... However it still times out and then when I use the
    giving up after 150
    I've not tested it to see if it prevents an early timeout, but clicking a the dialog and my script, just stops working there and does nothing else.
    --These files need to change on boot.
    --:Applications:Adobe Photoshop CS6:Presets:Scripts:SAVEAS.jsx
    --:Applications:Adobe Photoshop CS6:Presets:Scripts:SaveOnly.jsx
    --:Volumes:StudioC:Users:StudioC:Workflow:Folder Actions:0_HeliconHotFolder.scpt
    set CS6Applications to ((path to applications folder as text) & "Adobe Photoshop CS6:Presets:Scripts")
    set HeliconLabeler to ((path to home folder as text) & "Workflow:Folder Actions")
    set HeliconAbdul to ((path to me as text) & "Contents:Resources:Scripts:abdul:0_HeliconHotFolder.scpt")
    set HeliconMatt to ((path to me as text) & "Contents:Resources:Scripts:matt:0_HeliconHotFolder.scpt")
    set HeliconShah to ((path to me as text) & "Contents:Resources:Scripts:shah:0_HeliconHotFolder.scpt")
    set PS6SaveAsAbdul to ((path to me as text) & "Contents:Resources:Scripts:abdul:SAVEAS.jsx")
    set PS6SaveOnlyAbdul to ((path to me as text) & "Contents:Resources:Scripts:abdul:SaveOnly.jsx")
    set PS6SaveAsMatt to ((path to me as text) & "Contents:Resources:Scripts:matt:SAVEAS.jsx")
    set PS6SaveOnlyMatt to ((path to me as text) & "Contents:Resources:Scripts:matt:SaveOnly.jsx")
    set PS6SaveAsShah to ((path to me as text) & "Contents:Resources:Scripts:shah:SAVEAS.jsx")
    set PS6SaveOnlyShah to ((path to me as text) & "Contents:Resources:Scripts:shah:SaveOnly.jsx")
    tell application "System Events"
              if name of current user is equal to "StudioA" then ¬
                        set MacName to "true"
              if name of current user is not equal to "StudioA" then ¬
                        set MacName to "false"
    end tell
    with timeout of (60 * 61) seconds
              display dialog "Who is using the Computer?" buttons {"Abdul", "Matt", "Shah"} with icon caution
              if result = {button returned:"Abdul"} then
                        if MacName = "true" then
                                  tell application "Finder"
      duplicate file PS6SaveAsAbdul to folder CS6Applications with replacing
      duplicate file PS6SaveOnlyAbdul to folder CS6Applications with replacing
                                  end tell
                        else if MacName = "false" then
                                  tell application "Finder"
      duplicate file HeliconAbdul to folder HeliconLabeler with replacing
      duplicate file PS6SaveAsAbdul to folder CS6Applications with replacing
      duplicate file PS6SaveOnlyAbdul to folder CS6Applications with replacing
                                  end tell
                                  display alert "Turn Camera on"
                                  delay 1
                                  tell application id "breezesys.com.dslrremotepro" to activate
                                  menu_click({"DSLRRemotePro", "Camera", "Set date/time and owner string..."})
                                  delay 1
                                  tell application "System Events"
      keystroke "a" using command down
                                            delay 1.5
                                            keystroke "Shot_By_Abdul"
                                            delay 1.5
      keystroke return
                                  end tell
                        end if
              else if result = {button returned:"Matt"} then
                        if MacName = "true" then
                                  tell application "Finder"
      duplicate file PS6SaveAsMatt to folder CS6Applications with replacing
      duplicate file PS6SaveOnlyMatt to folder CS6Applications with replacing
                                  end tell
                        else if MacName = "false" then
                                  tell application "Finder"
      duplicate file HeliconMatt to folder HeliconLabeler with replacing
      duplicate file PS6SaveAsMatt to folder CS6Applications with replacing
      duplicate file PS6SaveOnlyMatt to folder CS6Applications with replacing
                                  end tell
                                  display alert "Turn Camera on"
                                  delay 1
                                  tell application id "breezesys.com.dslrremotepro" to activate
                                  menu_click({"DSLRRemotePro", "Camera", "Set date/time and owner string..."})
                                  delay 1
                                  tell application "System Events"
      keystroke "a" using command down
                                            delay 1.5
                                            keystroke "Shot_By_Matt
                                            delay 1.5
      keystroke return
                                  end tell
                        end if
              else if result = {button returned:"Shah"} then
                        if MacName = "true" then
                                  tell application "Finder"
      duplicate file PS6SaveAsShah to folder CS6Applications with replacing
      duplicate file PS6SaveOnlyShah to folder CS6Applications with replacing
                                  end tell
                        else if MacName = "false" then
                                  tell application "Finder"
      duplicate file HeliconShah to folder HeliconLabeler with replacing
      duplicate file PS6SaveAsShah to folder CS6Applications with replacing
      duplicate file PS6SaveOnlyShah to folder CS6Applications with replacing
                                  end tell
                                  display alert "Turn Camera on"
                                  delay 1
                                  tell application id "breezesys.com.dslrremotepro" to activate
                                  menu_click({"DSLRRemotePro", "Camera", "Set date/time and owner string..."})
                                  delay 1
                                  tell application "System Events"
      keystroke "a" using command down
                                            delay 1.5
                                            keystroke "Shot_By_Shah"
                                            delay 1.5
      keystroke return
                                  end tell
                        end if
              end if
    end timeout
    --handlers
    on menu_click(mList)
              local appName, topMenu, r
      -- Validate our input
              if mList's length < 3 then error "Menu list is not long enough"
      -- Set these variables for clarity and brevity later on
              set {appName, topMenu} to (items 1 through 2 of mList)
              set r to (items 3 through (mList's length) of mList)
      -- This overly-long line calls the menu_recurse function with
      -- two arguments: r, and a reference to the top-level menu
              tell application "System Events" to my menu_click_recurse(r, ((process appName)'s ¬
                        (menu bar 1)'s (menu bar item topMenu)'s (menu topMenu)))
    end menu_click
    on menu_click_recurse(mList, parentObject)
              local f, r
      -- `f` = first item, `r` = rest of items
              set f to item 1 of mList
              if mList's length > 1 then set r to (items 2 through (mList's length) of mList)
      -- either actually click the menu item, or recurse again
              tell application "System Events"
                        if mList's length is 1 then
      click parentObject's menu item f
                        else
                                  my menu_click_recurse(r, (parentObject's (menu item f)'s (menu f)))
                        end if
              end tell
    end menu_click_recurse

  • Derive values based upon user input

    Hello,
    I recieved a request for a report.
    When a user runs the report they are to be prompted for a fiscal year/period.
    Based on the fiscal year/period that the user provides I have the following columns  (in bold below are 2 examples that may make the description more clear).
    1. Revenue for the Fiscal year Prior to the fiscal year of the user input value
    2. Revenue for the Fiscal year/Period prior to the input Fiscal year/period
    3. Revenue for the Year to date accumulation up to the prior fiscal year/period that the user input
    4. Revenue for the Year to date accumulation up to the prior fiscal year (fiscal year rolls back first) and prior period (for period 01, it then rolls back the fiscal year 1 more year) that the user input
    Example 1: If the user ran the query and they provided the value 05/2007, then the values that need to be obtained would be:
    1. Revenue for 2006
    2. Revenue for 04/2007
    3. Revenue for 01/2007 to 04/2007
    4. Revenue for 01/2006 to 04/2006
    Example 2: If the user ran the query and they provided the value 01/2008, then the values that need to be obtained would be:
    1. Revenue for 2007
    2. Revenue for 12/2007
    3. Revenue for 01/2007 to 12/2007
    4. Revenue for 01/2006 to 12/2006
    Please help me with determining how to obtain the user input value, and then how to derive the time periods for the columns based upon that value.
    Thanks,
    Nick
    (points available)
    Edited by: Nick Bertz on Mar 13, 2008 9:43 AM

    Hello,
    See my example.. I am reading the value from Keydate Variable
    WHEN ZVND01
            READ TABLE i_t_var_range INTO w_var_range WITH KEY vnam = 'Keydate'.
             IF SY-SUBRC = 0.
              CLEAR l_s_range.
              l_date = w_var_range-low.
              concatenate l_date(6) '01' into l_first_date.
              CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
              EXPORTING
                        day_in = l_date
              IMPORTING
                         last_day_of_month = l_last_date
              EXCEPTIONS
                        day_in_not_valid = 1
                        OTHERS = 2.
              IF sy-subrc EQ 0.
                l_s_range-low  = l_first_date.
                l_s_range-high = l_last_date.
                l_s_range-sign = k_sign_inclusive.
                l_s_range-opt  = k_option_between.
                APPEND l_s_range TO e_t_range.
              ENDIF.
    Hope this example helps..

  • Some offerings are missing user input, some are not mapping to activites

    Seemingly out of the blue my system has stopped mapping request offering answers to (manual) activities (mapping to the SR itself works), neither OotB properties or custom properties. This only happens when submitting them from the portal (ALL
    offerings)
    Also, some requests are even missing user input (and obviously no mapping is possible).
    This issue seem to affect all users. Even admins
    I have tried restarting the web content server and also the website on the sharepoint server. I have also tried creating a brand new template and offering in a brand new MP.
    I have been able to track down a ca. point in time this issue arose, but not found anything in logs anywhere (except SMPortalTrace). Checked web content server event log and website log, SQL log, event log on both management servers.
    I have checked the SMPortalTrace.log and for every request submitted I get an error (not visible in the portal) - some is in danish, so I have translated at the best of my ability:
    Failed to parse the description with links., System.ArgumentNullException: [ArgumentNull_Generic]
    Ressourcestrings for troubleshooting is not available. Keys and arguments often contains enough information to start the troubleshooting a problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.00&File=mscorlib.dll&Key=ArgumentNull_Generic
    ParameterName: input
    At System.Text.RegularExpressions.Regex.Matches (String input)
    At Microsoft.Enterprisemanagement.ServiceManager.Portal.RequestOfferingSilverlightModule.UriParser.ParseDescription(string description)
    The system is SCSM 2012 R2 UR2 (except the SP part of the portal)
    Update:
    I found that if the user input is missing even from the SR then the error does not present itself in the SMPortalTrace.log, only if the user input goes through (but is not mapped to activities).
    http://codebeaver.blogspot.dk/

    The issue seems to be related to a syntactically valid type projection in the Service Request form (customized) - I added a component to the existing projection. As the template that a request offering is based on has a reference to this projection I guess
    the code that creates the Service Request submitted from the portal somehow ignores the "unwanted" type projection component, and instead of not submitting the request it continues but is unable to map into child activities. I will try and reproduce
    this in more detail.
    Solution: Revert to original type projection in the SR form and everything went back to normal.
    http://codebeaver.blogspot.dk/

  • Email notification User Input property

      I have query results from service request as part of user input into Service Request and processing them in Orchestrator.
      As a part of email notification, I would like to display the same query results as part of body of email notification.
      Query results are displayed as part of User Input in Service Request
      In email notification I am able to display all fields of service requests except User Input maybe because its inturn a XML value.
      Any suggestion to come across this ?
    Shahid Roofi

    I am assuming that you are sending the email notification as HTML, in that case the "User Input" will be filtered as it starts with < and ends with > (HTML notification will filter the context between <...>)
    You have to use a PS script in Orchestrator to get the query results only from the "User Input" without all the junk info between <...> then return that using Published Data tab so you will be able to use it in the runbook activities such
    as the email activity.
    Do you have a working example of how to do what you describe?  I am trying to accomplish the same thing and having alot of difficulty coming up with a proper solution.  Any help is appreciated!

  • Add User Input in Email Notification Template

    Hi all, I'm new to SM and in need of anyone's assistance. I've created a service request and in the template under User Input, I have it requesting the "New Users Name" and the "Start or Termination Date". I'd like to add these 2
    inputs into my Email Notification Template. How can this be done? I've been able to insert the Title, Requestor, Alternative Number, and Description in the Template Design but can't seem to find where I can add these Inputs. Any help would be
    appreciated. Thanks in advance.

    Hi,
    Please refer to the link below:
    E-mail user from Service Manager Console
    http://blogs.technet.com/b/servicemanager/archive/2010/02/02/e-mail-user-from-service-manager-console.aspx
    Moreover, the video  [09:00-11:00 min] might be help you:
    Demo: Automating Service Request Fulfillment from the SCSM Service Catalog with Orchestrator
    http://blogs.technet.com/b/servicemanager/archive/2011/11/09/demo-automating-service-request-fulfillment-from-the-scsm-service-catalog-with-orchestrator.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Selecting user input from Select option into smart form

    Hi,
    when i use parameter then i wil show company code in smart-form output
    but when i use  select option then its throwing error parameter specified here is different
    what should i do in this case i want to design a big select option screen for taking user input
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS.
    pls help me in this regards.
    ketan..

    hi
    thnx for your reply
    can u pls elaborate in my code
    now i changed code   BUKRS    = SO_BUKRS-low.
    either i can give low or high but how to select from range
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS-low.
    ketan..

  • Selection Screen - User input to select option only through f4 help,

    Hi..
    In case of selection screen,  I need selection screen such a that user input must be through search help not manual entry is allowed/ possible

    TYPES:BEGIN OF ty,
          field1 TYPE char01,
          END OF ty.
    DATA:it TYPE TABLE OF ty,
         wa TYPE ty.
    data:v_var type c.
    select-options:so for v_var.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'SO-LOW'  .
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
        IF screen-name = 'SO-HIGH'  .
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so-low.
      CLEAR it[].
      wa-field1 = 'A'.
      APPEND wa TO it.
      wa-field1 = 'B'.
      APPEND wa TO it.
      CLEAR wa.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'FIELD1'
          dynpprog    = sy-cprog
          dynpnr      = sy-dynnr
          dynprofield = 'SO-LOW'
          value_org   = 'S'
          display     = 'F' "F = Force
        TABLES
          value_tab   = it[].
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so-high.
      CLEAR it[].
      wa-field1 = 'A'.
      APPEND wa TO it.
      wa-field1 = 'B'.
      APPEND wa TO it.
      CLEAR wa.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'FIELD1'
          dynpprog    = sy-cprog
          dynpnr      = sy-dynnr
          dynprofield = 'SO-HIGH'
          value_org   = 'S'
          display     = 'F' "F = Force
        TABLES
          value_tab   = it[].

  • How to call URL to collect user input ?

    Hi all,
    I am writing a Swing applications and at some points, I need to call a URL (external web page) to collect user input. It invokes passing certain parameters to web page so that the web page can be displayed in some certain form. After the user input all data in web page, press "submit", my Swing application needs to get the input back. I suppose that calling URL is trivial but how can I get the input back ? Any input will be greatly appreicated.
    Note: the web page will be displayed in one JFrame but it may not related to this problem.
    C.K.

    response.sendRediresc("http://.......);
    public void sendRedirect(java.lang.String location)
                      throws java.io.IOException
        Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container must convert the relative URL to an absolute URL before sending the response to the client. If the location is relative without a leading '/' the container interprets it as relative to the current request URI. If the location is relative with a leading '/' the container interprets it as relative to the servlet container root.
        If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to.
        Parameters:
            location - the redirect location URL
        Throws:
            java.io.IOException - If an input or output exception occurs
            java.lang.IllegalStateException - If the response was committed or if a partial URL is given and cannot be converted into a valid URL

  • WDA + AIF : Get modified PDF source (XSTRING) after user input

    Hi guys,
    I have this problem.
    I have an online adobe interactive form (ZCI layout) with fillable and dynamic attributes sets to 'X'.
    The interface is type "Dictionary Based" (not XML).
    I've created a wda that calls standard ADS function modules (FP_JOB_OPEN, generated function modules, FB_JOB_CLOSE) to get the xtring of this Form. Then i bind the xstring returned by generated function module in order to show it in a view (that contains an AIF element). Now the user can insert values in input-ready fields.
    When the user close the window, i'd like to read the whole (result) xstring of the pdf, filled with the user input.
    But when i read the context attached of the pdf (called pdfsource) after user input, it contains only the pdf source, but not the user's input also. The result should be a merge of pdfsource and userdata, in order to save the xstring in a specific path (after conversion).
    Is there a way to solve this problem ??
    Thank a lot for your help and hints
    Andrea

    Please,
    no one may help me with this task?
    Just know if it is possible do something like my request, or not.
    I've alredy search in old posts also, but nothig was found.
    Thanks a lot
    Andrea

  • Accept user input

    Dear All,
    How do we accept user input in isql*plus in 9i? I am writing pl/sql code that requires user input but i get the message:
    SP2-0850: Command "accept" is not available in iSQL*Plus
    the figure you requested is:
    PL/SQL procedure successfully completed.

    Also you can use some commands at sqlplus to add/delete/append lines of sql buffer.
    append (a)
    insert (i)
    del (d)
    run (r)iline (l) nth line (1l or 2l ...)
    change c/<old value>/<new value>
    etc.,
    << Sample >>
    SRI>select * from bonus;
    ENAME JOB SAL COMM
    Sri DBA 1000 123
    Sam Sales 1022 10
    Elapsed: 00:00:00.00
    SRI>c/*/ename,job
    1* select ename,job from bonus
    SRI>r
    1* select ename,job from bonus
    ENAME JOB
    Sri DBA
    Sam Sales
    Elapsed: 00:00:00.01
    SRI>i
    2 where ename = 'Sri';
    ENAME JOB
    Sri DBA
    Elapsed: 00:00:00.01
    SRI>;
    1 select ename,job from bonus
    2* where ename = 'Sri'
    SRI>2
    2* where ename = 'Sri'
    SRI>DEL
    SRI>;
    1* select ename,job from bonus
    -Sri

  • Displaying columns based on User Input

    Hi,
    I have a following requirement :
    I have four columns in a report : Performance Indicator ,Target (XTD) , Actual (XTD),Indicator(Traffic Lights)
    Based on the prompt, which contains column named as "Review Frequency" having values as 1. Monthly 2. Quaterly 3. Yearly.
    When User select "Monthly" in pormpt I want to see MTD in Actual and Target column and Indicator depending on these columns.
    When User select "Quaterly" in pormpt I want to see QTD in Actual and Target column and Indicator depending on these columns.
    Can anybody tell me how can we achieve this?
    I think I can achieve this with guided navigation but for that I have to create 3 reports.
    Can anybody have any better idea to create just one report and based on user input I can show/hide columns in a single report?
    This is mainly related to Balanced ScoreCard.
    Thanks in advance
    Regards,
    Vikas

    you have seperate columns for monthly, quarterly, and yearly, right?
    In the prompt, save the "Review Frequency" as a Presentation Variable "abc";
    In the request, you add actual (MTD) column, edit the formula, use something like:
    CASE
    WHEN @{abc}='Monthly' THEN "- SalesFacts"."actual (MTD)"
    WHEN @{abc}='Quarterly' THEN "- SalesFacts"."actual (QTD)"
    ELSE "- SalesFacts"."actual (YTD)"
    END
    then do the same thing for target column.

Maybe you are looking for