How to display a JClient LOV with a empty textfield at startup?

Hi,
we develop an application using JClient to connect a swing client to a bc4j middletier. In one special form consisting of three LOVs (3x label,textfield,button ->LovBinding) we want two of the LOVs to display a empty textfield when the form is opened the first time. The standard LovBinding shows the first row of the corresponding viewobject initially, pretending that the user already has chosen a value. Is there an (easy) way to override this behaviour?
And what to do in the following scenario:
The user chooses a value from a LOV, that value is displayed in the textfield. Now the user changes his mind and wants to be the LOV-textfield empty again. Currently there's no solution for this.
We can think of several workarounds, but none of them seems to be a good solution...
Any ideas for that?
Thanks,
Torsten

Sorry, I try to be a bit more precise:
It's not clear whether you want the "Lov dialog" to show no selection on startup or the form that uses the LOV to display nothing in the "textField" on >startup?
Could you elaborate on this? A simple scenario may help. It's NOT the Lov dialog that should show no selection on startup. I wanted the textfield to display nothing, until I press the button which invokes the Lov dialog. The lov dialog allows me to select something and after pressing ok in the lov dialog I see me selection in the textfield.
The scenario is the following:
Imagine a form showing a combobox which allows the select a special type of value, does not matter. Additionally you have a lov combination consisting of a textfield and a button. The textfield should display a lookup value which can be selected via a lov dialog, which is invoked by the button.
And you have a "calculate" button, which has no binding. This "calculate" button runs some kind of code that takes the value of the combobox and the value of the lov's textfield (if a value was chosen) and does something.
The problem is the "if a value was chosen". I like to see an empty lov's textfield to indicate that nothing has been chosen solong. If I press the "calculate" button after choosing a value in the combobox and having nothing in the lov's textfield, the lov's textfield should be ignored by the following method.
Again, if you are using JComboBox/JListBox for Lov, then the default windows key to clean selection is Ctrl+(Mouseclick on the selected row)
If you want to display/allow no selection in the JULovButtonBinding's LovDialog, you pretty much have to do this by providing a custom LovPanel instead of >using the default one and implement the "no-selection" logic there.
And in case of no-selection, set the currency on the LovRSI to no row (call reset()). Are there more shortcuts like Ctrl+MouseClick in JClient?
Ok, what I intended was the following:
We have the scenario described above. The user selects a combobox value, then opens the lov dialog by pressing the button, chooses some value and presses ok in the lov dialog. Now he sees his selection in the lov's textfield. But: he changes his mind and thinks it would be better to reset the lov's textfield to the empty state, before pressing the "calculate" button. Because there is no kind of reset for the lov's textfield, the user has no chance to do what he wants.
Question is, can you think of an elegant way to solve this problem?

Similar Messages

  • How to display the message along with a value using BBP_CHECK_BADI

    Hi Gurus,
    I need to display a message dynamically when the user create's a shopping cart. I am using Check_badi for this. i.e., I need to display the buyer number and amount left for him dynamically. I am storing both of them in variables and don't know how to display the messages laong with some message " the amount left for <XXXXXX> is <$$$$$$$$>". Can you help me out.
    Thanks,
    Neelima

    Hi,
    you can use the function module 'BBP_PD_MSG_ADD'. This is the function module normally used for the displaying the error messages in SRM.
    See wether you can use already available error messages , use the transaction SE91 , and the message class being BBP_PD

  • How to display the selection screen with icons as well as with text element

    How to display the selection screen with icons as well as with texts (written in text elements) for PlantDate, OrderType,WareHouse..

    Report zex33.
    type-pools: icon.
    selection-screen begin of line.
    selection-screen comment 1(20) text_001.
    parameters: p_werks type marc-werks.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_002.
    parameters: p_whouse(10).
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_003.
    parameters: p_auart like vbak-auart.
    selection-screen end of line.
    initialization.
      write ICON_PLANT  as icon to text_001.
    concatenate text_001 text-001 into text_001 separated by space.
      write ICON_WAREHOUSE  as icon to text_002.
    concatenate text_002 text-002 into text_002 separated by space.
      write ICON_ORDER  as icon to text_003.
    concatenate text_003 text-003 into text_003 separated by space.

  • How to display a Math symbol with Subscript(like  "Xad", make the "ad" be Subscript )

    How to display a Math symbol with Subscript(like  "Xad", make the "ad" be Subscript )
    I need to show "Xad"(ad is Subscript )
    I try to find the letter subscript......but ,Unicode set is not have.....
    I try to use  X<sub>ad</sub>   show it  whit Text.htmlText,   but is not used,   I think Flex's HTML is  not support the <sub> mark.
    can you tell me , how to display a Math symbol with Subscript(like  "Xad", make the "ad" be Subscript )
    thank you very much.....

    http://blog.ggshow.com/index.php/how_to_use_subscript_aamp_superscript_in?blog=11
    http://jasonbejot.com/superscript-and-subscript-in-actionscript
    and thank you very very muck

  • How do I create a JTable with some empty cells in it?

    I have a three column JTable. The first column is a String showing description. The second column contains numbers (double) and the third column also contains numbers. In some cases not all cells in a row should contain data. So for instance, I could have row one showing only description (a String in the first column), and then row two showing description (a String in the first column) and a number (a double in the second column) in columns one and two respectively. My problem is that, the data gets copied from the cells with data to the cells which are supposed to be empty. So, how do I create a JTable with some empty cells in it.

    I have tried empty strings for those values, but it did not work. My table puts objects in an arraylist called reconciliation. The arraylist takes different objects with the same super class. The code below explains. Are you suggesting I pass null to my constructor?
    JTable table = new JTable(new ReconTableModel());The method below is from the table model
    protected  List<Reconciliation> reconciliation = new ArrayList<Reconciliation>();
    protected void fillModel(){
          reconciliation.add(new CashBook("Cash Book Report"," "," "));
          reconciliation.add(new CheckingBankAccount("Checking Bank Account"," "," "));
          reconciliation.add(new BankBalance("Bank Balance As Per Bank Statement",500," "));
          reconciliation.add(new PaymentVouchers("Payment Voucher Receipt",300," "));
          reconciliation.add(new DepositVoucher("Deposit Voucher Receipt",1000," "));
          reconciliation.add(new ReconciledBalance("Reconcilied Bank Balance",1200," "));
          reconciliation.add(new BalanceAt("Bank Balance At",800," "));
          reconciliation.add(new Difference("Difference",400," "));
          Collections.sort( reconciliation, new Comparator<Reconciliation>(){
          public int compare( Reconciliation a, Reconciliation b) {
            return a.getTransactionName().compareTo( b.getTransactionName());
      }

  • How to display double byte characters with system.out.print?

    Hi, I'm a newbie java programmer having trouble to utilize java locale with system io on dos console mode.
    Platform is winxp, jvm1.5,
    File structure is:
    C:\myProg <-root
    C:\myProg\test <-package
    C:\myProg\test\Run.java
    C:\myProg\test\MessageBundle.properties <- default properties
    C:\myProg\test\MessageBundle_zh_HK.properties <- localed properties (written in notepad and save as Unicode, window notepad contains BOM)
    inside MessageBundle.properties:
    test = Hello
    inside Message_zh_HK.properties:
    test = &#21890; //hello in big5 encoding
    run.java:
    package test;
    import java.util.*;
    public class Run{
      public static void main(String[] args){
        Locale locale = new Locale("zh","HK");
        ResourceBundle resource =
            ResourceBundle.getbundle("test.MessageBundle", locale);
        System.out.println(resource.getString("test"));
      }//main
    }//classwhen run this program, it'll kept diplay "hello" instead of the encoded character...
    then when i try run the native2ascii tool against MessageBundle_zh_HK.properties, it starts to display monster characters instead.
    Trying to figure out what I did wrong and how to display double byte characters on console.
    Thank you.
    p.s: while googling, some said dos can only can display ASCII. To demonstrate the dos console is capable of displaying double byte characters, i wrote another helloWorld in chinese using notepad with C# and compile using "csc hello.cs", sure enough, console.write in c# allowed me to display the character I was expecting. Since dos console can print double byte characters, I must be missing something important in this java program.

    after google a brunch, I learned that javac (hence java.exe) does not support BOM (byte order mark).
    I had to use a diff editor to save my text file as unicode without BOM in order for native2ascii to convert into a ascii file.
    Even the property file is in ascii format, I'm still having trouble to display those character in dos console. In fact, I just noticed I can use system.out.println to display double byte character if I embedded the character itself in java source file:
    public class Run {
         public static void main(String[] args) throws UnsupportedEncodingException{
              String msg = "&#20013;&#25991;";    //double byte character
                    try{
                    System.out.println(new String(msg.getBytes("UTF-8")) + " new string");  //this displays fine
                    catch(Exception e){}
                    Locale locale = new Locale("zh", "HK");
              ResourceBundle resource = ResourceBundle.getBundle("test.MessagesBundle", locale);
                    System.out.println(resource.getString("Hey"));      //this will display weird characterso it seems like to me that I must did something wrong in the process of creating properties file from unicode text file...

  • How to display BLOB image column with WEB application, JSF, ADF BC

    I looking for a way to display the content from a blob column on a WEB application, JSF, ADF BC
    The blob column contains a JPEG image.
    About the application
    The model contains a viewobject where the blob column attribute (photoimg) type is of type : BlobDomain
    Now I have to create the view to display the content of photoimg inside a JSF-JSP page.
    Any advice ?

    Search is your friend
    How to display the content of a BLOB column in a ADF/BC pages ?
    John

  • How to display the detailed navigation with the Search Results

    Hello Gurus,
    I was able to display the search results in the same frame rather than opening the new window and getting it displayed. Now when the search results are displayed, my detailed navigation and portal favorites etc.. all the iviews are automatically suppressed.
    Please help me displaying the search results with Navigation Panel.
    Regards
    V.

    Hi Vaibhav,
    What do you mean by suppressed?
    Is it gone, or just closed?
    If it is just closed, you can try 2 things:
    1. Check if the property "Initial State of Navigation Panel" of the page has any influence.
    2. There is a javascript method that opens it.
    You can see it by importing the file '<b>com.sap.portal.layouts.framework.par.bak</b>'.
    Navigate to
    System Administration -> Support -> Support Desk -> Portal Runtime -> Browse deployment
    then the folder
    ROOT/WEB-INF/deployment/pcd
    and press download.
    Import from par to Developer Studio, and check the javascript files under dist/PORTAL-INF for a function called something like 'expandTray'.
    Hope that helps,
    Yoav.

  • How to create a JClient form with one master block & multiple detail block?

    Hello,
    I am using Jdevelopver 10.1.2
    I want to have a JClient Form with one master table A and two detail tables B, C.
    But in the JClient Form wizard, I can only create a one master with one detail relationship. Can I create multiple details in that wizard ?
    Thanks
    Stephen

    Create a JPanel based on the second detail table with the wizard and add manually the JPanel to the Master-detail Form.
    Regards
    Fred

  • In BEx, how to display hierarchy Upper Node with selected Lower Nodes only

    Currently I am displaying the Cost Centre (GFL Responsibility Cost Centre) hierarchy in a workbook. I want to be able to filter on this hierarchy dynamically. E.g. the upper node must be displayed including the rolled up results for this node, together  with a selection of the lower nodes e.g 2 nodes ( not all the lower nodes related to the upper node must be displayed in the query).
    What's possible when filtering :
    To filter on the 2 lower nodes only ( results are displayed as required)
    Not possible:
    When I include the higher node of the 2 lower nodes in the query, All the lower nodes of the higher node are displayed, and the filter selection of the lower nodes are over written.
    This is logically what's expected when the higher node is included in the filter.
    Creating a hierarchy variable gives the same problem, I am not able to filter on the hierarchy nodes as required.
                      <b>Upper Node</b>
              <b>Lower Node1 LowerNode2 LowerNode3</b>
    Filter the report for UpperNode and LowerNode 2 & 3 only
    <b><i>Thanking YOU in advance. Will reward points for the correct help</i></b>

    Hi
    Do you want to show particular node or particular level ?
    If you want particular node , then create hierarchy node variable and restrict to that node ( 3rd node)
    If you want particular level, what does that mean  say i am taking employee hierarchy and the hierarchy is as below.
    Ihe setting that we have is to expand upto n levels but  if yiou say i need level 2 what does that mean and how do you want to show in report ?
           A -
    (level 1)
           B,C,D( --child of A ) --- level 2
              E(Child of B), F(Child of C)   -
    level 3.
    Regards
    vamsi

  • Error Box displays in JClient Form with no text (preview 9.0.3)

    I am using Preview 9.0.3, with a JClient Form, running as an applet. When I execute the applet within JDeveloper, an Error box displays, but has NO text. When I try to close the box, it just keeps redisplaying, with no text. I am using the -Djbo.debugoutput=console, and the last statement to be logged is the SELECT statement from the Entity Object I am working with.
    Is there any other diagnostic logging I can turn on to find out what the error is?
    Any ideas?

    I am using Preview 9.0.3, with a JClient Form, running as an applet. When I execute the applet within JDeveloper, an Error box displays, but has NO text. When I try to close the box, it just keeps redisplaying, with no text. I am using the -Djbo.debugoutput=console, and the last statement to be logged is the SELECT statement from the Entity Object I am working with.
    Is there any other diagnostic logging I can turn on to find out what the error is?
    Any ideas? You may turn on the diagnostic on BC4J to see where things are breaking.
    Open up Project settings. In the Runner panel, provide runtime option : -Djbo.debugoutput=console

  • How to display my alarm summary with using listbox?

    i am using fieldpoint and labview to log and monitor the temperatures of my system.
    and i want to save and display the time, date and value of the alarm signal, can anyone give me advice?
    in fact i don't know how to show more than one data in sting.

    Are you using the Datalogging and Supervsory Control (DSC) module with LabVIEW? This module makes it really trivial to configure and display Alarms.
    For more info' on DSC, please take a look at this:
    http://sine.ni.com/apps/we/nioc.vp?cid=1010〈=US
    Rgds,
    Khalid

  • How to display first 5 rows with a specific filter

    Hi All,
    Please do have a look at the below mentioned query.
    select * from emp where empnm like 'B%';Now suppose it will display 10 rows. But I want to display first 5 rows out of them.
    How can I do that? I tried this with rownum and rowid. It worked because the records are in order,
    but if those records are in arbitrary order, now what? What should be done here?
    Regards,
    BS2012.

    BS2012 wrote:
    Hi All,
    Please do have a look at the below mentioned query.
    select * from emp where empnm like 'B%';Now suppose it will display 10 rows. But I want to display first 5 rows out of them.
    How can I do that? I tried this with rownum and rowid. It worked because the records are in order,
    but if those records are in arbitrary order, now what? What should be done here?
    Regards,
    BS2012.This will display the first 5 records no matter of the order
    select * from emp where empnm like 'B%'
    and rownum <=5;This will display the first 5 records after ordering them
    select * from (select * from emp where empnm like 'B%' order by empnm) where rownum <=5 ;Regards.
    Al
    Edited by: Alberto Faenza on Oct 11, 2012 5:49 PM
    Edited by: Alberto Faenza on Oct 11, 2012 5:50 PM

  • How to display warning message box with yes and no buttons

    Hi,
    I am writing the code to delete emp details from database.
    I want to display warning message with yes and no buttons after clicking the delete button in the same page, if yes is clicked, i want to invoke delete() method in AM.
    Is it possible, if yes pls suggest me how to do it.
    Thanks
    Message was edited by:
    user536125

    This is being discussed in
    warning message(dialog page) to be displayed in the same page
    Thanks
    Tapash

  • How to display the Print Dialog with defined print presets included.

    When I try and display the Print Dialog none of my defined print presets are included in the print preset list box, I only get the [custom] option.
    How can I get the presets included in the list?
    The code I am using is:
    InterfacePtr<IPrintData> docPrintData(document->GetDocWorkSpace(), UseDefaultIID());
    // create a temp non-persistent IPrintData
    IPrintData* tempPrintData(CreateObject2<IPrintData>(kPrintDataBoss));
    // copy data from the document workspace
    tempPrintData->CopyData(docPrintData, kTrue);
    InterfacePtr<ICommand> printDialogCmd(CmdUtils::CreateCommand(kPrintDialogCmdBoss));
    InterfacePtr<IPrintDialogCmdData> printDialogCmdData(printDialogCmd, IID_IPRINTDIALOGCMDDATA);
    // store off the document's UIDRef in the print data boss
    UIDRef docUIDRef = ::GetUIDRef(document);
    printDialogCmdData->SetDocUIDRef(docUIDRef);
    printDialogCmdData->SetPrintData(tempPrintData);
    ErrorCode result = CmdUtils::ProcessCommand(printDialogCmd);
    tempPrintData->Release();
    Thanks

    You can set the presets with Adobe Acrobat.

Maybe you are looking for

  • JDBC Bulk Insert to MS Access

    I am trying to do bulk insert to MS Access database from text file. One of the solutions recommended by bbritta is as follows import java.sql.*; public class Test3 {   public static void main(String[] arghs) {     try {       Class.forName("sun.jdbc.

  • Can't print any pdf files

    Using Windows 7 Home Premium Operating System. I open pdf file and go to File/Print.  Nothing happens for few seconds, then doc closes up.  Not just on a few files, but all. Printing works fine on MS reader and all program files. I uninstalled all Ad

  • Photoshop elements 5

    Hello, I have a copy of Photoshop Elements 5 on CD which I am perfectly happy with and I have no desire to upgrade. However I would like to install it on my notebook which does not possess a CD drive. I have a licence code for the product. Is there a

  • OHow to install Adobe Photoshop when creative cload gives error

    Hello, I'm having problems with installing Creative Cloud. I haven't got it installed so far, but I would like to buy adobe photoshop cc but I would like to  try adobe photoshop cc out first. I'm having the following error: "De volgende problemen zij

  • Firewire Drive Recognized, but not Mounting

    Hi all - I have a peculiar problem with my iMac as it is not mounting anything Firewire.  System Profiler recognizes there is something attached via Firewire, it even displays the information about it, but there is no disk to be accessed. Also, the i