How to display desired label i/o values on JuRadioButtonGroupPanel ?

Hi ,
Appreciate if someone can help !
I have created a Radio Buttons group by using JURadioButtonGroupPanel on the JPanel, then I entered 2 values (Y,N) in the Radio ButtonGroup Binding Editor under set of values field. When running the form, I could see the values. However, What should I do next if I want to show more meaningful wordings ('Yes', 'No') i/o the values (Y,N) on the screen ? Thanks in advance.
Calvin

I try to avoid using JURadioButtonGroupPanel and try to use comboboxes or checkboxes instead. But that's not always feasible. I have just recently noticed the bug about the radio buttons not being enabled/disabled based on the specification and/or an overwritten isAttributeUpdateable in the view object/entity so I have not had the time to figure out a solution or posting a bug report.
But the "rowImpl" text for the radio button labels it seems to me that an extra refreshControl solves it most of the time. I subclassed JURadioButtonGroupPanel, below is my overwritten createButtons method which checks for this "ugly label", refreshes the control and tries again (max 10 times). Maybe not the most elegant solution but sadly ADF Swing does not often give space for the most elegant solutions (unless you study the framework very hard (by reading the source code, documentation is sparse) and rewrite big chunks of it).
public class FSRadioButtonGroupPanel extends JURadioButtonGroupPanel
  public FSRadioButtonGroupPanel(
  public AbstractButton[] createButtons(Object values[])
    AbstractButton[] ret = super.createButtons(values);
    if (ret != null && ret.length > 0)
      int count = 1;   
      while (ret[0] != null && ret[0].getText().contains("RowImpl") && count <= 10)
        System.out.println("Ugly Tab text, recreating: " + count);
        getModel().refreshControl();
        ret = super.createButtons(values);
        count++;     
    return ret;
}

Similar Messages

  • How to display maximum (most recent) date value in a query

    hello,
    I have the following query:
    StudentNumber | ExternalOrganization | Date |         | NumbeOfAdmissions
    0112                  050                            06/27/2007   1
    0234                  060                            07/15/2008   1
    1356                  025                            01/08/2008   1
    My dilemma is how to display only the row that has the most recent Date, e.g. here I want to only see the row with student number 0234 and date 07/15/2008; everything else should be hidden.
    I know it should be very simple....yes/no?
    thanks

    Hi
    even I am facing the same problem..
    Can you please tell me what did you do to get most recent record..
    Even I have made my date field as KF.. n have put condition on it.. but not getting desired result.. may be I am missing something.. somewhere..
    I resolved it.. thanks
    Regards
    Swati
    Edited by: Swati on Feb 17, 2009 7:49 AM

  • How to display texts automatic. besides entered value for a field in Trans.

    How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
    Message was edited by: Sarika Kedia

    Hi sarika,
    Welcome to SDN.
    1. first of all, such display of text,
       is not automatic.
       (it appears to be automatic)
    2. At design time,
       a) take one extra field for text
         and mark it as OUTPUT ONLY
    3. Then in PBO coding,
        call some module, and in that module
        write code
    4. The code should be to
       select from TEXT Table
       into the work area.
    EG. THE SCREEN TEXT FIELD NAME IS
    T510A-FIELDNAME.
    CLEAR t510a.
      SELECT SINGLE * FROM t510a INTO t510a
      WHERE trfar = FIELVALUE.
    5. This will take care of
       displaying the text value of that field.
    regards,
    amit m.

  • How to display data depend upon ListBox value?

    Hi Experts and Particularly Hema,
    As I asked before how to display data in the ListBox, I got an very good response from you all(particularly Hema) .
    Now what my doubt is asked with sample scenario below:
    In Screen Painter -
    Two fields namely : One List Box and other is I/O used only for displaying purpose i.e., only for output, not for input purpose.
    List Box is filled by primary key field(C1) value from one table(T1) when the screen load.(i.e., such code is written in PBO).
    Now what I need is :
    If the user select any one value in the List Box then it automatically display the corresponding C2 value from T1 in the I/O field.
    I think you may all understand what I am trying to ask.Please let me know the solution.
    Thanks in advance,
    Regards,
    Raghu

    Simply attached a function code for the listbox... when the user changes the value, you will be able to pick this up in the PAI and loop back to the PBO and redisplay the corresponding output field.
    Jonathan

  • How to display mapviewer labels in two lines instead of one?

    Hi,
    I have been using the addJDBCTheme to display the map along with the labels as follows:
    mapviewer.addJDBCTheme("aaa","a", "SELECT geom, col1 || ':' || col2 label_value from table_name","GEOM","","styleName","label_value","T.ROAD NAME" ,false);
    So the label is displayed as col1Value:col2Value.
    Now I need to display the label as follows:
    col1Value
    col2Value
    I tried using this
    mapviewer.addJDBCTheme("aaa","a", "SELECT geom, col1 || chr(10) || col2 label_value from table_name","GEOM","","styleName","label_value","T.ROAD NAME" ,false);
    But it doesnt work. This displays col1Valuecol2Value
    So I tried using this:
    mapviewer.addJDBCTheme("aaa","a", "SELECT geom, col1 label_value from table_name UNION ALL SELECT geom, col2 label_value from table_name","GEOM","","styleName","label_value","T.ROAD NAME" ,false);
    This actually works. Meaning it displays the label in two lines. But the two lines are almost attached together, there is no space between them at all. It is sometimes very difficult to read.
    Would really appreciate any suggestions to resolve this issue.
    Is there any other solution to display a label in two lines? I tried changing the label style to set the line-height. But that does'nt work either.
    Lakshmi

    Multiline label aren't supported as yet.
    JayantDoes MapViewer 10.1.3 (the latest version for present) support it?

  • InputComboboxListOfValues : How to display a label instead of the value ?

    Hi,
    I have a page containing a inputComboboxListOfValues component. This works fine but when I select a value, the field then takes the item code (not displayed in the combo bos LOV model) instead of the label.
    How can I do the same as http://myadfnotebook.blogspot.com/2010/09/getting-string-value-or-item-code-of.html but with inputComboboxListOfValues since the list may be very long ?

    Hi,
    Create a view object that is based on two entities (e.g. EmployeeVO based on Employees entity and Departments entity). Then choose the descriptive attribute (e.g. Department name from Departments entity) to be included in the query. Build the table dragging the EmployeeVO and then deselect e.g. departmentId so that department name remains
    Frank

  • How to display axis labels on both x and y-axis of a column chart

    hi,
     i have an urgent requirement of having axis labels on both x and y axis
    In x-axis i got it by sorting order also but in y-axis i'm unable to do
    i need in y-axis ,my column values are L1,L2,L3,----L10these shuold display in y-axis in sorting order and 0 in axis should remain as it is ..........how to take the interval ....? as of now i'm using Auto
    my y-axis values shud look like 0,L1,L2,L3,L4,----L10can anyone get perfect solution
    thanx in advance
    lucky

    Hi Lucky,
    Per my understanding that you want to display the values(Column1) like  "L1,L2,L3....L10" which comes from the "Series group" in the Y-Axis label and keep the row group in "Category group" to
    display in the x-axis and Numric column(1,2,3,4) in the "Value", right?
    Gernerally the lable display in the y-axis is automatically based on the value of the Numric column in the "Value" and it default is numbric labels.
    I have tested on my local environment and in your scenario, i suggest to hide the axis lable of the y-axis and create an tablix to only show the one column contains the values (L1,L2,L3,L3) to display in the place of the hidden y-axis label.
    Detais information about to design an new y-axis label ae below for your reference:
    Create an tablix to display only the row group of the "Column1" ( for the
    Column1 may have duplicate values, you can create parent row group for this column and hide the detail column by setting the "Column Visibility").
    Right click the y-axis to select the "Vertical Axis Properties" and select the "Labels" on the left pane to check the "Hide Axis labels"
    Select the Chart Area and in the properties set value of left=0 under the CustomPosition:
    Set the border style=None for both the Chart and Column1's row group
    Drag the tablix at the position near the hidden y-axis and set the size of both the chart and the tablix to make the value in the tablix row group(Column1) to be align with the y-axis label:
    Right click the "Chart legend" to delete or hide the legend
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to Display WBS's with Zero values in a report created by CJE2

    Hi All,
    I have created a report using CJE1 (Report painter). When I execute the report, it only shows WBS that have values. How do I display WBS elements that do NOT have values? i.e. display items with zero values. I'm certain there is a setting either within report painter or forms...
    Help appreciated.
    Samir

    Menu>Formatting>Report Layout and then tab Rows. Check if setting under 'Treatment of zero rows' helps.
    Regards
    Sreenivas

  • How to display another table's field value with an LOV?

    Hi all!
    On my JSP application I'm using an LOV based on 2 tables (datasources). I take the EMP and DEPT tables as an example:
    The user can click on the LOV button to select a department for a specific employee. I use the following code for the LOV:
    <jbo:DataSource id="dsEmp" appid="am" viewobject="EmpView" />
    <jbo:DataSource id="dsDept" appid="am" viewobject="DeptView" />
    <jbo:InputSelectLOV datasource="dsEmp" dataitem="DeptId" displaydatasource="dsDept" displaydataitem="Id,Dname" displayvaluedataitem="Id" formname="my_form" />
    So, the LOV windows shows the ID and Department Name from the DEPT table and returns Dept.Id into Emp.DeptId. This works fine but in the Edit JSP I want to display the Department Name instead of the Department Number. I don't know how I can pick the Department Name from the DEPT table. I tried to change the displayvaluedataitem="Name" but, as I thought, this didn't work.
    Is there any possibility to handle this problem?!
    PS: I'm using Oracle9i JDeveloper.
    Thanks a lot!

    Tim,
    See may answer to your other thread:
    Re: constant value
    Charles.

  • ALV Report how to display from and to date values in the header.

    I develoeped alv report . i want to display selection screen from and to date values in  top of page...
    any sample code pls guide me..

    You have to do many things...
    first find the selection details using the FM.
    RS_REFRESH_FROM_SELECTOPTIONS
    use the Blog to Align/populate the Header  from the selection table
    /people/community.user/blog/2007/05/07/alignment-of-data-in-top-of-page-in-alv-grid

  • How to display message when no return values in powershell script?

    Hello,
    I have written following command that returns "Failed" timer job titles for previous day :
    $FailedSPTimerJobs = Get-SPTimerJob | % { $_.HistoryEntries } | Where-Object {($_.StartTime -gt $YesterdayStartDateTime) -and ($_.To -lt $YesterdayEndDateTime) -and ($_.Status -eq 'Failed')}| Select JobDefinitionTitle | ConvertTo-Html -Fragment
    ConvertTo-Html -Body "<font color = blue><H4><B>Report </B></H4></font>$FailedSPTimerJobs " -Title "Test Report" -CssUri C:\style.CSS | Out-File "E:\Reports\Test.html"
    However, I need to display Message ( "There are no Failed Jobs recorded") when records are NULL.
    Would you please let me know how can I achieve this ?
    Thanks and Regards,
    Dipti Chhatrapati

    You could just do something like
    if ($FailedSPTimerJobs){ 
    $FailedSPTimerJobs
    = "There are no Failed Jobs recorded"
    should have been 
    if (!$FailedSPTimerJobs){ 
    $FailedSPTimerJobs
    = "There are no Failed Jobs recorded"

  • How to display JHeadstart flex item default values

    Dear All,
    I have defined a number of FlexRegions and FlexItems and I'd like to display the default values (specified by a SQL query in the Flex Item Def Editor) next to the input text field using the JSF EL expression #{row.defaultValue}.
    This works fine as long as the user has not provided a new value for the flex item. Once (s)he has done this, the default value gets cleared. I've been able to programmatically obtain the default value by invoking the method executeDynamicQuery("somename", row.getDefaultValueQuery()) on the FlexItemDefsOuterJoinedWithFlexItemsRowImpl instance, but
    I'd like to be able to always display the original default value in the .jspx page.
    Any suggestions would be greatly appreciated.
    I'm using JDeveloper 10.1.3.3. and JHeadstart 10.1.3.2.52.
    Regards,
    Ibrahim

    Hi Steven,
    Thanks for your reply. You're absolutely right of course. We wanted to provide functionality to submit 'request for change' requests, whereby we would display the current value of a given attribute (e.g. salary) next to the new value provided by the user.
    We wanted to 'misuse' the default value query aspect of flex items for this purpose. The flex item default value query would be used to retrieve the current value each time the request for change record is displayed.
    We managed to achieve this via a trick, so please consider this post as solved.
    Once again many thanks for a marvelous product.
    Regards,
    Ibrahim

  • How to display amount in words for subtotal value?

    Hi All,
    I am diplaying a amount in words for sub-total value after each document number.
    Can any one suggest how to display text for sub-total value not for Grand total?
    I want subtotal at each material for each document number and want to display that subtotal amount in words.
    Thanks and Regards
    Steve

    Thanks Jorge ,
    Is it possible in ALV printing Sut-total text by adding a new line .?
    And where to insert At new or on-chane ?
    Sub-total  calculating automatically not programaticall..
    Regards
    Steve

  • How to display an image and add axis labels

    Hey everyone,
    I just had a really quick question on a program I created. It uses the vision module to open a file in a new display window, and I would like to add axis to the image simlilar to the picture below (With both the x and y axis labels as pixel, and a cursor which displays the pixel value or intensity). I have attached the simple program, as well as an example of the type of image I would like to open. Thank you for the help! =]
    Attachments:
    TEST1.zip ‏2223 KB

    I've updated the open_img.vi file so that it works with the generic sample picture provided, but the program does not work with the image within the ZIP file from the previous post.
    Or if anyone has any other ideas how to add axis labels to an image, I am by all means open to suggestion. Thanks
    Attachments:
    open_img.vi ‏47 KB
    Water lilies.jpg ‏82 KB

  • How to display 7 values of  single field in row wise.

    hi,
    how to display 7 values of  single field in row wise.
    thankx in advance.

    hi ,
    do it like this :
    1 Place ur UI element in tranparent container with Layout as Row Data and Layout Data as Row Head Data
    2 Ur first  UI , which contains the first value as Row Head Data ,
    3 Others as Row Data
    u can do it with Matrix Data as well
    if u want to give space , u can use HORIZONTAL GUTTER and set its width to medium / large / Xlarge
    also there is a UI element "INVISIBLE ELEMENT" ,
    1 u can use this UI element to provide space between ur other UI elements in the view
    2 u can insert a text element as well , and in the Text property of the element press ALT + 0160.
    u can give the space bw UIs as desired.
    regards,
    amit

Maybe you are looking for

  • HT201343 Is there a way to stream video from one iOS device to another?

    My family and I are going on an extended vacation and we want to make sure the kids have enough videos to keep them busy on very long flights. I'm taking my MacBook Pro and was wondering if there's a way to stream video our different iOS devices with

  • Pdf's in preview!

    When I open a PDF in Preview it looks fine, but when I print, the page has a different font and all the symbols and graphics are missing. This is making it very hard for me to print off my lecture notes, any ideas? Thank You

  • If someone plugs in my stolen ipod can I locate it or send a message?

    I lost my 2007 ipod video in town yesterday. I was wondering if I could locate or send a message to the person who picked it up when its plugged into their computer and itunes loads up. I hope that whoever picks it up feels charitable and could retur

  • Solaris 8 x86: How to install on disk connected via IDE controller

    I have a PC with a Pentium 4 processor and the following IDE disks: Disk 1 and 2 at the primary IDE bus. Disk 3 connected via Promise Ultra 133 IDE controller. I want to install Solaris 8 Intel x86 edition on Disk 3, but the installation program only

  • DHCP Server not giving out IP Address to APPLE iPhone

    Hi, First off, I hope this is the correct forum.... A little background, I have a very nice 16GB 3G iPhone (from Apple of course). It has no problem connecting to my wireless access point (cisco 1240). I have an old windows server that I can turn on