Two fields on the same line in sreen programming

Hi All,
I need to create a selection screen which would have two fields (their texts and their irespective input fields) in the same line, on the screen.
I was able to achieve this by using code--
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(31) text-a04.
PARAMETERS: sch_begd LIKE qppnp-begda.
SELECTION-SCREEN COMMENT 52(22) text-a05.
PARAMETERS: sch_endd LIKE qppnp-endda.
SELECTION-SCREEN END OF LINE.
This could allign the fields - start date (text-a04) and end date (text-a05) in the same line along with their input fields.
But I am facing two issues with this code-
1. I am not able to get the underline same as we get when we create selection screen using 'select-options' and 'parameters'.
2. This is causing accessibility issues, as the field text and the input field are no more linked (since I am using text element to display the field text, like for start date), it cannot find the text to be read for the input field and hence the checkman errors.
Please suggest how to achieve the same.
Thanks and Regards,
Arpita.

Hi Arpita,
Are you trying to have select-option field in your screen in dialog programming?
If yes than you can use the following approach else ignore this.
Create one screen (100) and create subscreen area on this screen and call this subscreen in PAI and PBO of screen
Using call subscreen check F1 help for calling subscreen in PAI and PBO.
Now you should create your selection screen on the subscreen use selection screen begin of screen (100) option of defining
selection screen and then add your selection options here.
Regards,
Pawan

Similar Messages

  • How to place two text fields on the same line in adobe

    I am trying to create a form on adobe and I would like to have two unique text fields on the same line. Is this posible? 

    If you are using FormsCentral it is, the fields can be placed "side by side" in a row.  There is a "+" sign on the right side of the field that brings up a toolbar to add a field adjacent.  You can also right click on a field and select "Insert beside", or you can "drag and drop" fields next to one another or to a new row.
    Thanks,
    Josh
    PS - One note, if you are using the "desktop" application of FormsCentral that comes with Acroat Pro XI make sure the application is up to date by either using the "Help" - "Check for updates" menu item or by signing into the application so that you have the latest features including the side by side layout.

  • How to get two parameters in the same line of selection screen?

    hello
    i need to get my selection csreen like bellow.
    r1 radiobuttion  -some space --p1 parameter
    i should not get the parameter in the next line of  radiobuttion.
    how to get two parameters in the same line of selection screen?

    hi....
    modify the following code
    it will work
    SELECTION-SCREEN BEGIN OF BLOCK SL1 WITH FRAME TITLE TEXT-003.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 10(15) TEXT-001
                     FOR FIELD P1.
    SELECTION-SCREEN POSITION POS_LOW.
    PARAMETERS : P1 TYPE   C USER-COMMAND R2 RADIOBUTTON GROUP R2 DEFAULT 'X',
      P2 TYPE SCARR-CARRNAME,
      P3 TYPE CHAR1 RADIOBUTTON GROUP R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK SL1.

  • How can I have two fields with the same name if it makes sense?

    Hello, folks :)
    I have a pretty hard time figuring out how I can have two text fields with the same binding name.
    The whole problem is that when I need two fields with the same binding name they are still differnent coz they have the same name but differnt indices.
    I should make a form filled at runtime by merging a pdf form file and an fdf file data file. And I have no choice to do it differently. And my form file needs some data like customerName, companyName twice in one form. But there's only one possible buinding name indexed zero.
    How can I create a field with absolutely the same name or is it just impossible due to possible name conflicts? And is there a workaround to this problem? I just need one piece of data repeated in different places.
    Thanks for your replies :)
    P.S. if u think that the problem is not clear enough let me know. I'll supply you with more details. But the general process can not be changed.
    One pdf should be mergred with an fdf with as the result of their merge a new filled and flattened form. I have no control over fdfs their are generated by Oracle and I can not fill the form using XML files coz this process should be integrated in a working application.

    I just thought about a really ugly workaround with a server-side script adding values to fdf files but it's a bit of work and tests and personally i think it's a bad idea :-(

  • How to write two item in the same line?

    In the smartforms,how to write two item in the same line?
    eg
    1   *************                                    2  *****************
    3  **************                                   4  ******************
    5  ***************
    Anyone got any idea to do this.
    Thanks in advance

    Hi,
    In the smartform the main windows is 20cm.I use the table output my data.Because the output is two item in same line,I define two rows in the table line type.
    Question:
    Should I define the table width 20cm?
    In the main area of table , should I define two folders and each of folder include a line? The second item I had already defined as Append Directly,but the item 1 and item 2 don't in the same line.
    Regards

  • How to compare two fields from the same table in the select statement

    Hi, friends
    I try to compare tow fields from the same table, but no result,
    For example, this
    data: cptotchek tyep i.
    select count(*) into cptotchek
    from aufk where erdat = aufk-idat2 .
    The result is  cptotchek = 0, but there are the records in aufk , where,  aufk-erdat = aufk-idat2.
    Please, help me, i don't use the loop statement for optimize my program.
    Regards

    Hi  ,
           it will not return  any value   when you are using   column of same table 
           such as Date Field   , Because  while Using Aggregate Function  it will not check with self column
    .      For that you have to take data in one internal table and then you can work on it  .
         And if you are worried about Performance  it will not affect  , untill you are selecting only required data  .
    you can try this way  .
    data: cptotchek type i.
    types : begin of  w_aufk.
            include structure aufk  .
          types : end of  w_aufk .
    data : it_aufk type standard table of w_aufk with header line  .
    select * into corresponding fields of table it_aufk
    from aufk  .
    loop at it_aufk .
    if it_aufk-erdat  = it_aufk-idat2 .
    write : / it_aufk-erdat , it_aufk-idat2 .
    else .
    delete it_aufk .
    endif  .
    endloop.
    Regards
    Deepak.

  • How to generate a value to field in a row based on another two fields in the same row ???

    I have a quantity and unit price and there is also a field in the same row called total price. I want to get the value automatically of total price from multiplying quantity and unit price.

    Here you go:
    page code
                            <af:panelGroupLayout id="pgl2" layout="horizontal" styleClass="AFStretchWidth">
                                <af:inputText label="Quantity" id="quantity" value="#{bindings.quantity1.inputValue}" autoSubmit="true"
                                              valueChangeListener="#{SetItemBean.valueChangeListenerItem}"/>
                                <af:spacer width="10" height="10" id="s1"/>
                                <af:inputText label="Price" id="price" value="#{bindings.price1.inputValue}" autoSubmit="true"
                                              valueChangeListener="#{SetItemBean.valueChangeListenerItem}"/>
                                <af:spacer width="10" height="10" id="s2"/>
                                <af:inputText label="Sum" id="total" value="#{bindings.total1.inputValue}" partialTriggers="quantity price" readOnly="true"/>
                            </af:panelGroupLayout>
    page bindings
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="12.1.2.66.68" id="SetItemPageDef" Package="de.hahn.blogtest12c.view.pageDefs">
      <parameters/>
      <executables>
        <variableIterator id="variables">
          <variable Name="quantity" Type="java.lang.Number"/>
          <variable Name="price" Type="java.lang.Number"/>
          <variable Name="total" Type="java.lang.Number"/>
        </variableIterator>
      </executables>
      <bindings>
        <attributeValues IterBinding="variables" id="quantity1">
          <AttrNames>
            <Item Value="quantity"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="variables" id="price1">
          <AttrNames>
            <Item Value="price"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="variables" id="total1">
          <AttrNames>
            <Item Value="total"/>
          </AttrNames>
        </attributeValues>
      </bindings>
    </pageDefinition>
    and bean code
        public void valueChangeListenerItem(ValueChangeEvent valueChangeEvent) {
            String comp = valueChangeEvent.getComponent().getId();
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            // get an ADF attributevalue from the ADF page definitions
            AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("quantity1");
            Number q = (Number) attr.getInputValue();
            if (q == null)
                q = 0;
            attr = (AttributeBinding) bindings.getControlBinding("price1");
            Number p = (Number) attr.getInputValue();
            if (p == null)
                p = 0;
            if ("price".equals(comp)) {
                p = (Number) valueChangeEvent.getNewValue();
            } else {
                q = (Number) valueChangeEvent.getNewValue();
            // set new value
            attr = (AttributeBinding) bindings.getControlBinding("total1");
            Number t = q.doubleValue() * p.doubleValue();
            attr.setInputValue(t);
            // update Total
            FacesContext facesCtx = FacesContext.getCurrentInstance();
            UIComponent ui = facesCtx.getViewRoot().findComponent("total");
            if (ui != null) {
                // PPR refresh a jsf component
                AdfFacesContext.getCurrentInstance().addPartialTarget(ui);
    Timo

  • SAPScript: How to combine two text in the same line?

    Dear Gurus,
    I have a case to combine hard code text and long text in the same line.
    For example, i need to display following line:
    'Project name:' <long_text>
    How to do it in SAPScript?
    Can we do it with following code?
    /: 'Project name: ' INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&
    Thanks & Regards,
    Ari

    Hi,
        You can achieve that by this method,
    Goto Tcode SO10
    Give the Object Name 'Z_TEST' & Id
    See the Paragraph format for the Text,  you can do it from Menu
    Format>Line . If it is /: change it to =.  Save
    Now in the SAPScript Text editor in which you want to print
    P1 'Project Name :'
    /: INCLUDE Z_TEST OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&
    the output will be
    Project name : Abc xyz
    Regards
    Bala Krishna.
    Edited by: Bala Krishna on Oct 17, 2008 7:11 PM

  • OVS for two fields in the same selct Option?

    Hi Experts,
    I am using select options in my view. I am using OVS for one field. I would like to use same OVS for another field in the same select option.
    I tried "case ovs_callback_object->context_attribute". Which return the field for which we press F4.
    But IT did not work here probably because this we can use only for context attributes fields.
    but But here I dont get the select option field.
    But in my case I have select options which are not mapped to any context attribute.
    How can I find , for which field in select options F4 help has been requested?
    Regards,
    Vishal.

    Hi,
    You can find which field in select options F4 help has been requested using I_OVS_DATA-M_SELECTION_FIELD_ID.
            CASE I_OVS_DATA-M_SELECTION_FIELD_ID .
                 WHEN 'PERNR'.
                 WHEN 'ENAME'.
                 WHEN OTHERS.
            ENDCASE.
    If you are using one OVS for more than one fileds, please remember that you need to provide different code for each fields at phase 0 (configuration) and phase 3 (apply result).
    Regards,

  • Telnet two devices at the same time 1 C# program

    Hi, currently I have one 100% working program used to telnet my Arduino circuit.
    I use this C# class found somewhere around the web: Anyway, without this forum, I wouldn't be able to finish my program.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Net.Sockets;
    namespace USSR
    enum Verbs
    WILL = 251,
    WONT = 252,
    DO = 253,
    DONT = 254,
    IAC = 255
    enum Options
    SGA = 3
    class TelnetConnection
    TcpClient tcpSocket;
    int TimeOutMs = 100;
    public TelnetConnection(string Hostname, int Port)
    tcpSocket = new TcpClient(Hostname, Port);
    public string Login(string Username, string Password, int LoginTimeOutMs)
    int oldTimeOutMs = TimeOutMs;
    TimeOutMs = LoginTimeOutMs;
    string s = Read();
    if (!s.TrimEnd().EndsWith(":"))
    throw new Exception("Failed to connect : no login prompt");
    WriteLine(Username);
    s += Read();
    if (!s.TrimEnd().EndsWith(":"))
    throw new Exception("Failed to connect : no password prompt");
    WriteLine(Password);
    s += Read();
    TimeOutMs = oldTimeOutMs;
    return s;
    public void WriteLine(string cmd)
    Write(cmd + "\n");
    public void Write(string cmd)
    if (!tcpSocket.Connected) return;
    byte[] buf = System.Text.ASCIIEncoding.ASCII.GetBytes(cmd.Replace("\0xFF", "\0xFF\0xFF"));
    tcpSocket.GetStream().Write(buf, 0, buf.Length);
    public string Read()
    if (!tcpSocket.Connected) return null;
    StringBuilder sb = new StringBuilder();
    do
    ParseTelnet(sb);
    System.Threading.Thread.Sleep(TimeOutMs);
    } while (tcpSocket.Available > 0);
    return sb.ToString();
    public bool IsConnected
    get { return tcpSocket.Connected; }
    void ParseTelnet(StringBuilder sb)
    while (tcpSocket.Available > 0)
    int input = tcpSocket.GetStream().ReadByte();
    switch (input)
    case -1:
    break;
    case (int)Verbs.IAC:
    // interpret as command
    int inputverb = tcpSocket.GetStream().ReadByte();
    if (inputverb == -1) break;
    switch (inputverb)
    case (int)Verbs.IAC:
    //literal IAC = 255 escaped, so append char 255 to string
    sb.Append(inputverb);
    break;
    case (int)Verbs.DO:
    case (int)Verbs.DONT:
    case (int)Verbs.WILL:
    case (int)Verbs.WONT:
    // reply to all commands with "WONT", unless it is SGA (suppres go ahead)
    int inputoption = tcpSocket.GetStream().ReadByte();
    if (inputoption == -1) break;
    tcpSocket.GetStream().WriteByte((byte)Verbs.IAC);
    if (inputoption == (int)Options.SGA)
    tcpSocket.GetStream().WriteByte(inputverb == (int)Verbs.DO ? (byte)Verbs.WILL : (byte)Verbs.DO);
    else
    tcpSocket.GetStream().WriteByte(inputverb == (int)Verbs.DO ? (byte)Verbs.WONT : (byte)Verbs.DONT);
    tcpSocket.GetStream().WriteByte((byte)inputoption);
    break;
    default:
    break;
    break;
    default:
    sb.Append((char)input);
    break;
    My UI Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Net.Sockets;
    namespace USSR
    public partial class mainForm : Form
    TelnetConnection tc;
    public bool keyPressChecker = false;
    public bool connectedChecker = false;
    public mainForm()
    InitializeComponent();
    // webBrowser1.Navigate("http://admin:[email protected]");
    this.tc = null;
    this.connectedChecker = false;
    private void radioButton2_CheckedChanged(object sender, EventArgs e)
    try
    if (submarineRadioBtn.Checked)
    System.Diagnostics.Process.Start("dummySub.exe");
    catch (Exception ex)
    MessageBox.Show(ex.ToString());
    private void centerBtnCamera_Click(object sender, EventArgs e)
    private void forwardBtn_Click(object sender, EventArgs e)
    if (connectedChecker)
    this.tc.WriteLine("W");
    private void connectToolStripMenuItem1_Click(object sender, EventArgs e)
    try
    //create a new telnet connection
    tc = new TelnetConnection("192.168.0.102", 23);
    if (tc.IsConnected)
    connectedChecker = true;
    catch (Exception ex)
    MessageBox.Show(ex.ToString());
    private void controlKeyDownCheckBox_CheckedChanged(object sender, EventArgs e)
    if (controlKeyDownCheckBox.Checked == true)
    keyPressChecker = true;
    else
    keyPressChecker = false;
    private void controlKeyDownCheckBox_KeyDown(object sender, KeyEventArgs e)
    if (keyPressChecker == true)
    if (e.KeyCode == Keys.W)
    if (connectedChecker)
    tc.WriteLine("W");
    if (e.KeyCode == Keys.S)
    if (connectedChecker)
    tc.WriteLine("S");
    private void reverseBtn_Click(object sender, EventArgs e)
    if (connectedChecker)
    tc.WriteLine("S");
    private void disconnectToolStripMenuItem_Click(object sender, EventArgs e)
    try
    tc = null;
    connectedChecker = false;
    catch (Exception ex)
    MessageBox.Show(ex.ToString());
    private void controlKeyDownCheckBox_KeyUp(object sender, KeyEventArgs e)
    if (keyPressChecker == true)
    if (e.KeyCode == Keys.W)
    if (connectedChecker)
    tc.WriteLine("O"); //decrease to MID PT.
    if (e.KeyCode == Keys.S)
    if (connectedChecker)
    tc.WriteLine("P"); //decrease speed to MID PT.
    private void exitToolStripMenuItem_Click(object sender, EventArgs e)
    Application.Exit();
    Now, what I want to know is this: IS IT POSSIBLE FOR MY C# PROGRAM TO TELNET TWO DEVICES AT THE SAME TIME? 
    Thanks
    Glenn

    try this links :
    http://www.codeproject.com/Articles/19071/Quick-tool-A-minimalistic-Telnet-library
    http://stackoverflow.com/questions/25116077/send-and-receive-commands-via-telnet-in-c-sharp
    http://stackoverflow.com/questions/12283241/ssh-to-server-then-telnet-to-device

  • Data Sets - Is there a way to put two fields in the same row?

    I am working on my first Spry Data Set (in Dreamweaver CS4) which, if I can get it figured out, will eventually be used as a calendar on a client's web site. You can see the beginning of the project here:
    http://www.rieradesignco.com/calendarlist_spry.html
    My question is, can I put two or more fields on one row? Specifically, I would like the part that looks like this...
    3
    [WED]
    Fusion
    ... to look like this:
    3   [WED]   Fusion
    I tried simply moving the fields (in Design View) so that they looked like they would be in the same row, but as you can see, that didn't do the trick. (You can see what I did here, in the highlighted part of the screenshot:  http://www.rieradesignco.com/spryquestion.jpg). I also tried nesting a table within the table on my html data document that contained the three fields I needed - it worked okay, but that just makes the table more difficult to work with. I don't want to simply type the three items into one field, because it will be a long list and they all need to line up perfectly.
    Is there another way to do it?

    Change the following line to include the red coloured parts
    <div class="MasterColumn" spry:repeat="ds4" spry:setrow="ds4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
      <span>{Dsp_#}</span><span>{Dsp_WkDay}</span><span>{Dsp_Event}</span>
    </div>
    The add the following style rule to your document:
    .MasterColumn span {
        display: inline-block;
    I hope this helps.
    Ben

  • Multiple text fields on the same line

    Hi
    Is it possible to have multiple text boxes on the same form line?  I'm trying to replicate a form I've created usng Acrobat X Pro but can't seem to figure how to do it with FormsCentral?
    Apologise if I'm missing something obvious!

    We now support multiple fields on one line. This post provides a brief overview.
    Give it a try and send us your feedback.
    Sorry it took so long.
    Randy

  • How to create a field in an OAF page which sums two fields in the same page.

    Hi,
    In the HRMS appraisal page, I have two fields in different regions.
    1. One field shows the total score of the competencies.
    2. Another field shows the total scores of the objectives.
    The problem with the appraisal total score is it returns only the rating level id. (It does not take decimal values)
    Hence I want to add the above two fields which is displayed in the same page and show as a new field in the top of the page as the final appraisal score.
    [Something similar to what is mentioned in the metalink document 1315431.1 ]
    We are in 11.5.10.2.
    I am new to OAF and have no idea as to how to achieve the above step. Can anyone guide me in doing it?
    regards

    Hi,
    Went through the steps to do a VO substitution.
    But normally in all the examples given the page will belong to the application where we are modifying.
    Eg. in this case the "about this page" shows /oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG
    This is coming under fnd top where all the appraisal VOs and other pages comes under PER_TOP.
    Should I bring all the files from FND_TOP of the server to my PC where jdev is installed.
    I have already taken all the files under $PER_TOP to my PC.
    regards

  • Two fields in the same location?

    I have a form that has been upgraded to 10g R2 from 4.5. A key enter query trigger activates a field that is normally not diplayed (display=no) that is in the same position as another field. In Forms 4.5 activating the non-displayed field allowed the user to enter some data in that field however in 10g the other field is taking precedence, what do I need to do to make the normally non-displayed field the active field?

    Actually what's a little strange is the 2 fields are in different blocks. The field that is normally displayed is in the 2nd block while the non-displayed field is in the 1st block. In client server mode everything works fine but on the web the field doesn't work so I'll probably have to turn the normally displayed field off as was previously suggested. Thanks.

  • Checkbox and 2 Textbox in the same line

    Hi,
    I am having a problem trying to show one checkbox and two textboxes at the same line,
    the problem is with the text (comment) I want to display for each item.
    when I try to activate or run  the report , I got this error message :
    Error when generating the selection screen "1000"
    SELECTION-SCREEN BEGIN OF LINE.
      SELECTION-SCREEN POSITION 1.
      parameters:
      ck1 AS CHECKBOX ,
      p_u  like rlgrap-filename  default 'C:\data\',
      p_ux(9) default '500'.
      "SELECTION-SCREEN COMMENT 4(10) text-c01 for FIELD ck1.
      "SELECTION-SCREEN COMMENT 17(10) text-c02 for FIELD p_u.
      "SELECTION-SCREEN COMMENT 30(10) text-c03 for FIELD p_ux.
       SELECTION-SCREEN end OF LINE.
    I think the problem is with the position of the comment ?
    how to fix this?
    Thanks
    Misbah

    Hi  Misbah ,
    i had faced a similar issue some months ago, following is the solution----->>>
    SELECTION-SCREEN BEGIN OF BLOCK F WITH FRAME TITLE TEXT-014.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(18) text-015.
    PARAMETERS : P_DNR(10) TYPE C.
    SELECTION-SCREEN COMMENT 35(14) text-016.
    PARAMETERS : P_ST  AS CHECKBOX.
    SELECTION-SCREEN COMMENT 56(8) text-017.
    PARAMETERS : P_IC  AS CHECKBOX.
    SELECTION-SCREEN COMMENT 72(14) text-018.
    PARAMETERS : P_CA  AS CHECKBOX.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK F.
    OUTPUT LOOK AS BELOW------>>>>>
    Debit Entry Number  ___________   Stock Transfer [ ]      IC Sales [ ]       Credit Allowed [ ].
    HERE,  Debit Entry Number, Stock Transfer, IC Sales, Credit Allowed are the text sysmbols saved at 015, 016,017 and 018.
    see the above code , the logic is the text stored in text 15 is of length 18.
    after which i print a blank input field i.e the parameter p_dnr which is of length 10.
    so now the next text or field has to be printed at 18 + 10 =  28.
    so 28 or any number more than 28 should be the starting position of the next text or parameter or checkbox  , etc.
    similarly u have to calculate the start position and end position  for all the selection screen variables ur printing in a line .
    if the calculation goes wrong and variables in a line get overlapped on each other , then u get an error message as u r getting now.....something like selection screen error.
    Regards,
    Akash Rana

Maybe you are looking for