GP - How to display a long string value

I'm trying to display a really long string value and then allow the user a couple of result state choices (to either go back and do another search or finish).
None of the forms (WD, display, etc.) will display a really long string.
I tried using a loop type decision dialog, but there doesn't appear to be a way of having it pick up a parameter value as the message (or part of the message) to display.
I can get it to display in the complex type decision dialog, but I don't need the group/options and I can't seem to get rid of the second set of buttons that show up (the long string parameter value was put into the 'Info Texts' area and does display ok).
Is there any easy way of displaying the complete contents of a long string value and have buttons for results states?  I'd even be happy if I could just display the whole string and use a separate callable object for the choices.
Thanks,
Cindy

I think you should try calling a JAVA or ABAP Webdynpro as the callable object. As you know, we can display long texts in the webdynpro fields. Other alternative is an Adobe form as well.
Cheers,
Mandrake

Similar Messages

  • How to display my input history values on Filename filed (selection screen)

    Hi All,
    Please let me know how to display my input history values under the field of selection screen.
    I created Zprogram as below.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
      PARAMETERS: P_FILE  TYPE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    I displayed a selection screen of my Zprogram, my cursor put on P_FILE field, and enter BACKSPACE key,
    so it doesn't display my input history values.
    Of course I've selected Local Data History 'ON' of my GUI option,
    so it's displayed my input history values on any other fields.
    If you know why, please let me know.
    Regards,
    Rie.

    In the GUI options, there is also a setting for the maximum length of fields for storing the history, maybe it is set to small, as your selection field is length 128.
    Alternatively you can switch to a STRING, I have observed that the history is displayed after the first letter is being entered (maybe dependent on GUI version, who knows...)
    Thomas

  • How to display struts form list values?

    HI,
    How to display struts form list values?
    I am having master and child data.
    I can set list values master and child in action class.
    How to display the master and child data in struts jsp form.
    <logic:iterate id="result" name="listofEmployees" >
    <td ><bean:write name="result" property="id"/></td>
    <td ><bean:write name="result" property="name"/></td>
    <td > <bean:write name="result" property="list"/>  </td>
    </tr>
    </logic:iterate>Here I am displaying master data succesfully.
    How to iterate values of <td ><bean:write name="result" property="list"/></td>in action class i added bean class to this list.
    how to iterate this list with java bean and display my child data
    Thanks
    sai

    Struts 1 or 2?
    I guess 2 'cause you're just talking about Action, without mentioning the Form.
    In STRUTS 1 it goes like this: forward to the page and use logic:iterate tag. Don't know about STRUTS 2, but It shouldn't be too different.
    bye.

  • Help:How to get a java String value from a C char array?

    Hi,everyone,could you help me?
    the following is a C struct that i want to recieve a short message:
    struct MO_msg{
    unsigned long long msgID;          //Message ID
    char      dest_id[21]; //Destination Mobile Phone Number
    char      service_id[10];     //
    Now I want to put the "dest_id " value of this struct into a Java String variable.But I dont know how to implement it!
    The following is a block of source code that i implement this functions.But it cant get a String value ,and throw out a Exception:
    java.lang.NullPointerException
    at java.lang.StringBuffer.append(StringBuffer.java:389)
    JNIEXPORT jint JNICALL Java_md_EMAP_thread_RubeMOTSSX_getMO
    (JNIEnv * env, jobject obj, jint connId, jobject mo){
         struct MO_msg MO;
         tssx_cmpp_api_debug_flag = 1;
         int result = CMPP_Get_MO((int)connId,&MO);
         if (result == 0){
              jclass cls = (*env)->GetObjectClass(env,mo);
              jfieldID msgId = (*env)->GetFieldID(env,cls,"msgId","J");
              jfieldID dest_Id = (*env)->GetFieldID(env,cls,"dest_Id","Ljava/lang/String;");
              jfieldID serviceId = (*env)->GetFieldID(env,cls,"serviceId","Ljava/lang/String;");          
              (*env)->SetLongField(env,mo,msgId,MO.msgID);               
              (*env)->SetCharField(env,mo,dest_Id,*destId);
              (*env)->SetCharField(env,mo,serviceId,MO.service_id);
         return result;
    Please help me!Thanks!

    bschauwe:Thank you for your help!
    Yes,just as you say,using NewString Or NewStringUTF can import a C char array into a Java String variable! But now I have another question,when i use these two functions ,i found that it cant deal with Chinese character!
    do you have such experiences to deal with another language charset?if you have ,can you tell me how to deal with it.

  • How to pass dynamically generated string value as array name in TestStand?

    Hi All,
              I have a string variable which holds an array name as its value. The string value is a dynamically generated one. Now my problem is how to retrieve the values within the array where as the array name is stored in a string variable.
    for eg:
    fileglobals.InfoName = "Array_Name" --> fileglobals.InfoName is a string variable, Array_Name is the array name generated dynamically and it is known only at run-time.
    Array_Name[0] = "a";
    Array_Name[1] = "b";
    Array_Name[2] = "c";
    In the above case, I have to retrieve the values of a, b and c
    Any help is greatly appreciated
    Thanks
    Arun Prasath E G

    Hi,
    Looking at your sequencefile.
    You seem to be trying to save into FlieGlobals.InfoName a string with the values of "FileGlobals.Info_0".."FileGlobals.Info_n" where n is the value of Parameter.TestSocket.Index.
    Then you are setting the value into FileGlobals.TempName from "StationGlobals.FileGlobals.Info_0" assuming Parameter.TestSocket.Index is 0.
    Is this correct?
    I realise this is a cutdown sequence file but you must make sure These variable actually exist in either FileGlobals or StationGlobals. Also with FileGlobals each SequenceFile has its own FileGlobals unless you have set the properties of the SequencFile to use a common FileGlobals.
    What was the precise error you was seeing as it will properly telling you what variable of property it can't find.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to display a HTML String in a ActiveX WebBrowser ?

    How to direct display a HTML String in a ActiveX WebBrowser without use a URL ?

    I am sure that it would depend on the browser, but with Internet Explorer from Microsoft, I don't think you can. (I may be wrong on this.) What you could do would be to save your string to file and read the file as a url in the browser. I know that this is a step you are trying to avoid, but it will work.
    Hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How to display Description for Selected Value instead of ID

    Hi i have a problem i want to display a description on a combo box list of values instead of the ID when i want to use ir for a formlayout or af:query for estethic
    because i have found this links:
    http://vikasadflovdevelop-adf-lov.blogspot.com/2012/06/v-behaviorurldefaultvmlo.html?showComment=1389196282800
    https://blogs.oracle.com/adf/entry/combo_lov_how_to_display
    The Incident Archive: ADF: LOV Description instead of code
    but none of them really works or i dont how to do it anyone can helpme please
    i'm new on ADF and jdeveloper

    Hey user,
    If i'm understanding it right, you want to show the values instead of the id, which is very usefull. If that is the case, try this website:
    ADF Tutorial: How to implement dependent list of values | Oralublog - Oralution&amp;#039;s Blog
    That looks like yours but it explains a little better. Probably you forgot to go to the UIhints part...
    Hope that helps,
    Frederico.

  • How to define the boolean - String value mapping for SelectBooleanCheckBox?

    I have a SelectBooleanCheckBox component whose value is bind to a bean property of type String.
    <af:selectBooleanCheckbox text="State" label="State" id="sbc1"
    value="#{viewScope.myBean.stateText}" autoSubmit="true"/>
    The expected value for the Bean property is "Accepted" (for true) and "Rejected" (for false).
    Currently, the component return String value "true" for checked and "false" for unchecked.
    How do I set up the component so the boolean value can map to my expected String value?

    Sumit,
    Thanks for the response.
    I read that post too. However, I don't have any binding in my case because the component is bind to a bean property instead of an attribute of a view object.
    Without the binding in the page definition, I can't find a place to define the mapping between the Boolean value and the expected String value.
    Pricilla

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • ALV grid - how to break a long string into several lines?

    I have a ALV grid, where one of the fields contains a textstring that is typically 100 characters long.
    Is it possible to break this long string into shorter strings on multiple rows?
    Kind of like in Excel, when using row break...

    Thats not possible in ALV

  • How to display current session parameter value

    Hi,
    How can a db user know value of a session parameter, if he doen't have privilege to access v$parameter?
    SQL> conn hr/hr
    Connected.
    SQL> show parameter QUERY_REWRITE_ENABLED
    ORA-00942: table or view does not exist
    SQL> alter session set QUERY_REWRITE_ENABLED=true ;
    Session altered.
    -- how can the user HR know the value of QUERY_REWRITE_ENABLED

    You can code a PL/SQL function and grant only execute privilege to the user:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> drop user admin cascade;
    User dropped.
    SQL> create user admin identified by admin;
    User created.
    SQL> grant create session, create procedure to admin;
    Grant succeeded.
    SQL> grant select on sys.v_$parameter to admin;
    Grant succeeded.
    SQL> connect admin/admin
    Connected.
    SQL> show user;
    USER is "ADMIN"
    SQL> create or replace function get_parm (p_pn in varchar2) return varchar2
      2  as
      3  l_val v$parameter.value%type;
      4  begin
      5   if ( UPPER(p_pn) = 'QUERY_REWRITE_ENABLED' )
      6   then
      7        execute immediate 'select value from v$parameter where name = :1 '
      8        into l_val using p_pn;
      9        return l_val;
    10   else
    11      raise_application_error(-20000,'Invalid parameter');
    12      return null;
    13   end if;
    14  end;
    15  /
    Function created.
    SQL> grant execute on get_parm to test;
    Grant succeeded.
    SQL> connect test/test
    Connected.
    SQL> show parameter query
    ORA-00942: table or view does not exist
    SQL> select admin.get_parm('query_rewrite_enabled') from dual;
    ADMIN.GET_PARM('QUERY_REWRITE_ENABLED')
    TRUE
    SQL> select admin.get_parm('compatible') from dual;
    select admin.get_parm('compatible') from dual
    ERROR at line 1:
    ORA-20000: Invalid parameter
    ORA-06512: at "ADMIN.GET_PARM", line 11

  • How to find the last string value in dynamic object?

    Hi All,
    I am trying to find the last string value in dyanamic objects,Any one have solution for this.
    Ex:
    my data :12347-ebjdone-525-ecgfjf-25236-defdafgdeg
    And i want to show the output is :defdafgdeg
    Any ideas:
    Thanks
    Srini

    For oracle try using oracle function.
    e.g.
    SELECT  reverse(substr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),1,instr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),'-','1'))) from dual
    Object definition might look like:
    reverse(substr(reverse({ObjectName}),1,instr(reverse({ObjectsName}),'-','1')))
    Regards,
    Kuldeep
    Edited by: Kuldeep Chitrakar on Feb 12, 2010 8:12 AM

  • How to display result set boolean value as a check box

    Hi guys,
    I am getting the data which include boolean from the database, i need to display the boolean values as check box, see my code, its displaying the data into the table with the boolean values as true and false, how to make it in check boxes
    package swing2.org;
    import java.awt.GridBagLayout;
    import javax.swing.JPanel;
    import java.awt.Color;
    import javax.swing.BorderFactory;
    import javax.swing.border.BevelBorder;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.Container;
    import java.awt.GridBagConstraints;
    import java.awt.ComponentOrientation;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    public class Panel2 extends JPanel {
         private static final long serialVersionUID = 1L;
         private JScrollPane jScrollPane = null;
         private JTable jTable = null;
          * This is the default constructor
         public Panel2() {
              super();
              initialize();
          * This method initializes this
          * @return void
         private void initialize() {
         //     Panel2.ResultSetFrame();
              GridBagConstraints gridBagConstraints = new GridBagConstraints();
              gridBagConstraints.fill = GridBagConstraints.BOTH;
              gridBagConstraints.gridy = 0;
              gridBagConstraints.weightx = 1.0;
              gridBagConstraints.weighty = 1.0;
              gridBagConstraints.gridx = 0;
              this.setSize(340, 200);
              this.setLayout(new GridBagLayout());
              this.setBackground(new Color(171, 211, 224));
              this.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED), null));
              this.add(getJScrollPane(), gridBagConstraints);
          * This method initializes jScrollPane     
          * @return javax.swing.JScrollPane     
         private JScrollPane getJScrollPane() {
              if (jScrollPane == null) {
                   jScrollPane = new JScrollPane();
                   jScrollPane.setViewportView(getJTable());
              return jScrollPane;
          String[] columnNames = {"Task Description",
                 "Time ",
                 "Pop-up",
                 "Sound",
                 "Delete"};
          * This method initializes jTable     
          * @return javax.swing.JTable     
         private JTable getJTable() {
                      ResultSetFrame oo = new ResultSetFrame();
                      JTable table = new JTable(oo.model);
                      table.setBackground(new Color(195, 217, 230));
                      table.setComponentOrientation(ComponentOrientation.UNKNOWN);
                      table.setShowGrid(true);
                      table.setShowVerticalLines(true);
                      table.setRowHeight(17);
                      table.setShowHorizontalLines(true);
                      return table;
    abstract class ResultSetTableModel extends AbstractTableModel
         public ResultSetTableModel(ResultSet aResultSet)
              rs = aResultSet;
          try
               rsmd = rs.getMetaData();     
          catch(SQLException e)
               System.out.println("Error " + e);
       public String getColumnName(int c)
       {  try
          {  return rsmd.getColumnName(c + 1);
          catch(SQLException e)
          {  System.out.println("Error " + e);
             return "";
       public int getColumnCount()
       {  try
          {  return rsmd.getColumnCount();
          catch(SQLException e)
          {  System.out.println("Error " + e);
             return 0;
       protected ResultSet getResultSet()
       {  return rs;
       private ResultSet rs;
       private ResultSetMetaData rsmd;
    class CachingResultSetTableModel extends ResultSetTableModel
    {  public CachingResultSetTableModel(ResultSet aResultSet)
       {  super(aResultSet);
          try
          {  cache = new ArrayList();
             int cols = getColumnCount();
             ResultSet rs = getResultSet();
             /* place all data in an array list of Object[] arrays
                We don't use an Object[][] because we don't know
                how many rows are in the result set
             while (rs.next())
             {  Object[] row = new Object[cols];
                for (int j = 0; j < row.length; j++)
                   row[j] = rs.getObject(j + 1);
                cache.add(row);
          catch(SQLException e)
          {  System.out.println("Error " + e);
       public Object getValueAt(int r, int c)
       {  if (r < cache.size())
             return ((Object[])cache.get(r))[c];
          else
             return null;
       public int getRowCount()
       {  return cache.size();
       private ArrayList cache;
    class ResultSetFrame 
    {  public ResultSetFrame()
          /* find all tables in the database and add them to
             a combo box
          try
          {  Class.forName("com.mysql.jdbc.Driver");
             con = DriverManager.getConnection("jdbc:mysql://localhost:3306/task","root","nbuser");
                stmt = con.prepareStatement("SELECT * FROM tasky");
                   try
                    String query = "SELECT * FROM tasky";
                    rs = stmt.executeQuery(query);
                    model = new CachingResultSetTableModel(rs);
                    JTable table = new JTable(model);
                    scrollPane = new JScrollPane(table);
                catch(SQLException e)
                     System.out.println("Error " + e);
          catch(ClassNotFoundException e)
          {  System.out.println("Error " + e);
          catch(SQLException e)
          {  System.out.println("Error " + e);
       private JScrollPane scrollPane;
       public ResultSetTableModel model;
       private ResultSet rs;
       private Connection con;
       private Statement stmt;
    }

    add a
    public Class getColumnClass(int col) {
         return getValueAt(0, col).getClass();
    }in your ResultSetTableModel which extends AbstractTableModel.
    A simple example
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.SwingUtilities;
    import javax.swing.table.AbstractTableModel;
    public class SimpleDemo extends JFrame {
        public SimpleDemo() {
            createAndShowUI();
        private void createAndShowUI(){
            String[] columnName = {"CheckBox Column", "Data Column"};
            Object[][] data = {{new Boolean(true), "Data 1"},
            {new Boolean(false), "Data 2"}, {new Boolean(true), "Data 3"}};
            MyModel model = new MyModel();
            model.setData(columnName, data);
            JTable myTable = new JTable(model);
            JScrollPane scrollPane = new JScrollPane(myTable);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            getContentPane().add(scrollPane);
            pack();
            setLocationRelativeTo(null);
        class MyModel extends AbstractTableModel {
            String[] columnName;
            Object[][] data;
            public void setData(String[] colName, Object[][] theData) {
                this.columnName = colName;
                this.data = theData;
                fireTableStructureChanged();
            public String getColumnName(int column) {
                return columnName[column];
            public Object getValueAt(int rowIndex, int columnIndex) {
                return data[rowIndex][columnIndex];
            public int getRowCount() {
                return data.length;
            public int getColumnCount() {
                return columnName.length;
            public Class getColumnClass(int c) {
                return getValueAt(0, c).getClass();
        public static void main(String[] args){
            Runnable run = new Runnable(){
                public void run(){
                    new SimpleDemo().setVisible(true);
            SwingUtilities.invokeLater(run);
    }

  • How to pass a Dynamic String value into a Form..???

    Hi all...,
    I'm trying to use a JSP to search "audios" stored in a "Audios" table & display the result list in another JSP. (This task was successful).
    Now I want to "Rate" these by taking the "Audio Name" as the key. My coding looks as follows...
    List myList = (List)request.getAttribute("SongList");
    Iterator itr = myList.iterator();
    while(itr.hasNext())
    String mySongName = (String)itr.next();
    out.println("<form name="SongRatingForm" action="ControllerServlet.java" method="post" >");
    out.println("<input type="What is the type here? (is there something like a LABEL)" name="MySongList" value="How can I insert 'mySongName' here">");
    out.println("</form>");
    Thanks in advance..,
    - Asela -

    Hi, please use the 'code' tags; select the text and click the code button when you're posting, it makes things easier to read.
    > out.println("<input type="What is the type here? (is
    there something like a LABEL)" name="MySongList"
    value="How can I insert 'mySongName' here">");
    Where do you want to print this? If it is to appear in a text-box, then the input type should be "text". If it is a button ( really?? ) it should be "button" or "submit" or "reset".
    If you just want the text to print, then you don't need to create and <input/> tag. Just print it out like
    <%=mySongName%>It could be the contents of a <td> of a <table>
    Or you could use a <label> tag:
    <label> <%=mySongName%></label>

  • How to display two-lines strings item

    Hi,
    How can I display list of two-line string items? Each Item in the list should have a phone number and a time. It should look similar to the "dialled numbers" display where each item has an image, and two-line string.
    Is it possible doing it with the high-level API or should I go low-level?
    Thanks in advance
    Imzadi

    use: list.setFitPolicy(Choice.TEXT_WRAP_ON)

Maybe you are looking for

  • How do I create a new photo album on iPad2 with o.s. 6.1?

    I have an iPad 2 with software version 6.1.  When I try to create a new photo album, no keyboard appears when the "Enter a name for this album" box comes up.  What am I doing wrong? How do I enter the name of the new album? 

  • Windows 8.1 resets startup disk to itself after every update

    Hello, I'm on a late 2014 Macbook Pro 15" retina, running bootcamp with Yosemite on one partition and Windows 8.1 on the other. I prefer OSX as my default startup disk, but every time Windows updates it resets the default startup disk to Windows. Of

  • Import/Export statement  not working..

    Hi all,    I want to export some data from BADI & Import it back in user exit. I wrote following line of code in BADI        export P1 FROM xstr to memory id 'ZABHI'. & following line of code in User Exit       import P1 to xstr FROM memory id 'ZABHI

  • How to determine weblogic health status column when it is in NOT OK via wlst?

    Dear Legends, Is there a command to determine weblogic managed or admin servers HEALTH COLUMN Status? Because some times in STATE Column it would be RUNNING and in HEALTH Column it would be in "NOT OK" or the OK will not be visible. Thanks, Karthik

  • Settings and arrangement changed without user input

    I woke up the other morning to find that my iphone's apps had been rearranged overnight. The ringtone was also changed, and there may be other settings that are different which I've not discovered yet. The phone was turned on and in its charger overn