SelectOneChoice Static List

I want to bind the f:selectItems component to a list binding for static values since these bindings that can be stored in a PageDef file like any other binding. But issue I'm facing is I cannot add the Label for List static list.
<af:selectOneChoice label="Static List">
<af:selectItem label="Yes" value="Y"/>
<af:selectItem label="No" value="N"/>
<af:selectItem label="Not Avialable" value="NA"/>
</af:selectOneChoice>
How to convert the above into list binding in the PageDef with Labels? I can add only the Value if use "List binding dialog for a static list". Can anyone point me the how to add Labels as well?
<list IterBinding=...
DTSupportsMRU="true" StaticList="true">
<AttrNames>
<Item Value="StaticList"/>
</AttrNames>
<ValueList>
<Item Value="Y"/>
<Item Value="N"/>
<Item Value="NA"/>
</ValueList>
</list>

Hi,
Storing the labels in pagedf / hardcoding is not a good practice. Instead, you can add them in a resource bundle (would be useful during translation) and use it in your app. If you still like to store them in a pagedef, create a variable under the variableIterator, set a default value for it and use that in your page.
-Arun

Similar Messages

  • How can we bind Two Static Lists to a single Column.

    Hi All,
    My requirement is
    1) I have two different Static List's.
    2) These two static list's are saved to the same column in the database table.
    3) In the UI, I will be having different dropdown's. And each dropdown is bound to this column. Say if I have two dropdowns, in the first dropdown it has to show first static list values and in the second dropdown it hase to show second static list values.
    4) I can change the dropdowns and save(to the same column).
    I am totally stuck here. How can we implement this????

    Hi,
    Thank you very much for your response. The link was not useful for me.
    The actual scenario here is,
    I have a table with columns say (Id, detailId,Type, Unit, Value). here id & detailId acts as composite primary key and it looks similar to this.
    Id     DetailId     Type     Unit     Value
    111     1111     A     Min     12
    111     1112     B     KBytes     13
    111     1113     C     MBytes     14
    So for this I had created two static list View objects (Say ST1 & ST2). The possible values for ST1 are {'sec','min','hours','days'} and the possible values for ST2 are {'Bytes','KBytes','MBytes','GBytes'}.
    And from above table you can observe that these two view objects are mapped to same attribute(Unit) of the table.
    So what I am trying here is, as my UI page contains, 3 different dropdowns(say af:SelectOneChoice) along with 3 textboxes. one textbox and one dropdown in the same line.
    These 3 are related to above 3 types, dropdowns should contain the Units and textboxes should contain the values, i.e based on the type we have to display that.
    I tried so many combinations, but I am not able to succeed in getting this. So your help is highly needed here.
    Please let me know if you are not understood any of the above conditions.
    Thanks & Regards,
    Ravi.

  • NULL value in static list of values???

    I'm creating a static list of values and I want to check against these values in a table with a sql query. My question is, can I have the value for one of the items be NULL? Like, is the following static list of values ok:
    STATIC2:No Status;,Hire;HIRE,Reject;REJECT,Maybe Later;LATER
    I want it so that if someone selects "No Status" in my select list, that I check my column in the table for all records that have NULL for this value. Is that possible? Or will I have to create 2 separate queries (1 for NULL, and 1 for all the other values)?

    Actually, I had tried it, but wasn't getting an expected result. I couldn't figure out if this issue was causing my error, or something else, so I posted the question asking if it was possible to do so to try and track down where my error was coming from.

  • Bug in rendering static list with Hierarchical Expanding template?

    Hi,
    on http://apex.oracle.com/pls/apex/f?p=23910 I prepared test case for my problem. It is static list with template Hierarchical Expanding and following structure:
    1
      1.1
        1.1.1
      1.2
        1.2.1
    2
    Entry 1.2 has condition set to never. And the problem is, as you can see, that entry 2 seems to be under entry 1.1. But really it isn't. Reason of this strange look is that in some cases, when condition for last entry in sublist is evaluted as false, there isn't generated tag </ul> closing that sublist, in this case are not closed even two sublists - under entries 1 and 1.1.
    In my real application it is more complicated, I have static list with about 80 entries (report menu) and every user sees some reports based on his position in organization structure and other conditions. And as you can imagine, this bug produces really confusing results, almost unique for every user.
    Did anybody meet this problem too? We are on ApEx 4.1.0, it is present in 4.1.1 too (as seen on apex.oracle.com)... And I think it wasn't problem in 4.0 (at least nobody noticed for few months and I believe somebody would notice that reports for one department are under reports for another one). Used theme is standard theme 2 - Builder Blue.
    Jirka

    update:
    I tried deriving the full path for the image file by viewing the source when I embedded it in an HTML region on the same page and it gives me something similar to the following URL:
    wwv_flow_file_mgr.get_file?p_security_group_id=502133210878128108&p_fname=myImage.gif
    (p.s. it is a .gif file - not sure if this should make any material difference)
    As a result, I tried embedding this into the code:
    <fo:block>
    <fo:external-graphic src="wwv_flow_file_mgr.get_file?p_security_group_id=502133210878128108&p_fname=myImage.gif)"/>
    </fo:block>
    but this time, instead of merely not rendering, when Acrobat opens, an error message appeared reported that the file was corrupted or invalid. When trying different formats, I seem to get a generic: "500 Internal Server Error".
    I'm going to try putting the image file in the server directory tree to see if that will work. I'll post later either way.

  • How to control rendering logic of static list element defintion?

    We are using 10gR4 version of site studio and are working with region templates and element definitions. We created a reporters static lits element definition which contains 3 columns (Name, About, Details) and added that to Reporters region template. Next defined a place holder defintion and associated region defintion and the region template fo reporters. Finally I added that place holder onto a article template. In the contribution mode for article we were able to add reporters rows (static list). BUt in the presentation of article I don't to see any listing of reporters. How could I control the display of static list element defintions from the region template forreporters? I don't see a way I could retrieve the individual rows and columns of static list and display the the results. The detail column of static lits just contatin a link to toher content item which is contributed through other region template. I would like to display the contents of that content items in line in the reporters template by making a wcm-place_holder service call for the embedded content items. How to achieve this?
    Regards,
    Pratap

    You are not making a remote call. Take a look at java RMI for more  info:
    http://docs.oracle.com/javase/6/docs/api/java/rmi/package-summary.html
    You can do it using a change listener.
    Take a look at this thread: https://forums.oracle.com/thread/2554119
    Change your class name (Menu ).  There is already  a menu control:
    http://docs.oracle.com/javafx/2/api/javafx/scene/control/Menu.html  

  • Static list default value.

    I need to retrieve the default value of a static list Crystal report parameter. InfoView honors this setting but I haven't found the field exposed in the Java SDK.  I'm using com.crystaldecisions.sdk.occa.report.data.IParameterField to access the parameter properties. 
    Any pointers would be most welcome.
    Thanks

    Hi,
    In your model project, create a view criteria (on the VO which you would be using for displaying values in the LOV). In your view criteria add the attributes and set default value (say add Empno and set its value to literal 1111). Now, when creating LOV for the next view object, select the view criteria you've created in previous step (instead of using all queryable attributes).
    Refer : http://docs.oracle.com/cd/E23943_01/web.1111/b31974/lists.htm#BEIBAFDD
    -Arun

  • Static list from table depending on user type

    All i have a table where i define users and their roles, and i want to setup a static list that would display something like the following, but i want to filter depending on the users role
    so if the user is lets say part of dev then i want them to see
    So my table contains
    pending,completed,work, accepeted, approved
    pending,completed,work
    And if they are part of business then to see
    accepeted, approved, pending.
    And in my select list i am doing the following select * from mytable.

    Hi Ben,
    to my knowledge it's not possible to change or restrict a static list on the fly.
    Why don't you create a table for your static values? Than you are able to restrict the select list. And you even get a useful description when you use your table somewhere else and want to know in which status it is.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • Crystal reports with static list parameter : blank dropdown menu

    Hi,
    I've created a very simple report displaying customer order (ordr and rdr1)
    it has :
    parameter DocKey@  used in the selection formula    DocKey@=DocEntry
    It also has another parameter : static list with 2 entries
          - 1 : normal presentation
          -  2 : proforma presentation
    The user has to choose between option 1 or 2 before displaying the report
    Using the report in the Crystal application is OK : i can choose between option 1 and 2 in a dropdown list
    If i use the Addin Menu // preview in SAP : i can choose in the dropdown menu
    If i import my report in SAP and i try to preview it : the dropdown menu is empty and i cannot select anything
    Anyone has the same problem ?
    I use SAp SBO 8.8 pl 00 hotfix 14
    I 've the same report worrking on a sap sbo 8.8 sp 00 pl 11
    thanks for your help

    Hi and thanks for your help
    I've tried with and without default values : no changes
    I've tested with the last pl (18) and it works fine : no blank dropdown menu , i can select a value for my static parameter !
    Edited by: Antoine TESSIER on Jan 6, 2011 11:47 AM

  • Static list inserts p tag

    team,
    I have modified out of the box static list fragment to have only one wysiwyg element, when i add multiple rows of with content in the fragment, I get an unwanted <p> tag, because of this text appears in multiple rows instead of single row.
    My question, Is the extra <p> tag coming form wysiwyg by default? Am I missing some thing? I do not have any tag in my fragment code.
    regards,
    deepak

    Deepak,
    The way I solved this annoying issue is to use the strReplace function within the loop.
    <!--$tmpTitle = ssIncludeXml(SS_DATAFILE, root & "/" & "pubTitle" & "[" & nPos & "]/node()") -->
    <!--$tmpTitleA = strReplace(tmpTitle,"<p>","") -->
    <!--$tmpTitleB = strReplace(tmpTitleA,"</p>","<br />") -->
    <!--$myNewTitle = tmpTitleB -->
    <!--$myNewTitle-->

  • How to create static list type view state?

    Hi!
    i want to create a static List type view state in asp.net c# for below type of list?
    static List<KeyValuePair<string, int>> istrStartDate = new List<KeyValuePair<string, int>>();

    Please  post it in the dedicated ASP.Net Forum
    http://forums.asp.net  for more efficient responses.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Reference static List

    Hi,
    I've 2 subclasses LotLevelKeywords and WaferLevelKeywords. The according interface is called Keywords.
    public final class WaferLevelKeywords implements Keywords {
         /** def. constr. */
         private WaferLevelKeywords() {
         /** WAFERID. */
         public static final String WAFERID = "WAFERID";
         /** FABID. */
         public static final String FABID = "FABID";
         /** NUM_BINS. */
         public static final String NUM_BINS = "NUM_BINS";
         /** BIN_COUNT. */
         public static final String BIN_COUNT = "BIN_COUNT";
         /** MAP_XY. */
         public static final String MAP_XY = "MAP_XY";
         static {
              REQUIRED_KEYWORDS.add(WAFERID);
              REQUIRED_KEYWORDS.add(NUM_BINS);
              REQUIRED_KEYWORDS.add(BIN_COUNT);
              REQUIRED_KEYWORDS.add(MAP_XY);
    public final class LotLevelKeywords implements Keywords {
         /** def. constr. */
         private LotLevelKeywords() {
         /** FACILITY. */
         public static final String FACILITY = "FACILITY";
         /** PROBE_FACILITY. */
         public static final String PROBE_FACILITY = "PROBE_FACILITY";
         /** WAFER_SIZE. */
         public static final String WAFER_SIZE = "WAFER_SIZE";
         static {
              REQUIRED_KEYWORDS.add(FACILITY);
              REQUIRED_KEYWORDS.add(WAFER_SIZE);
    public interface Keywords {
         /** Static <code>java.util.List</code> with required <tt>keywords</tt>. */
         static List<String> REQUIRED_KEYWORDS = new ArrayList<String>();
    }When referencing REQUIRED_KEYWORDS the list is empty. I would like to add the required keywords in the appropriate classes (LotLevelKeywords and WaferLevelKeywords) and have the list outside in a separate class/interface.
    Can anyone give me a hint on how to solve this?
    Thanks a lot and best regards,
    - Stephan

    Jackler wrote:
    When referencing REQUIRED_KEYWORDS the list is empty. Thats because you haven't added anything to it.
    I would like to add the required keywords in the appropriate classes (LotLevelKeywords and WaferLevelKeywords) Then do so? But do note that any variable in an interface is declared as a public static final variable, e.g. a constant.
    and have the list outside in a separate class/interface.Why?
    Thanks a lot and best regards,Np
    Mel

  • SiteStudio: Categories with FAQ - static list in static list

    Hi,
    i have to build a FAQ system in SiteStudio where the questions can be categorized.
    First I thought I can do this with a static list in a static list. But this seems to be impossible because a list in a list is not supported.
    So my questions:
    Is there any workaround to use a static list in a static list?
    Is this the right approach for my problem or is their any other solution I did not found?
    Thanks for your help.

    Excuse my late reply, I was out of office, yet .
    I will realise the Categories and FAQ with one Region Definition. I will use a Plain Text Element for the Categorie title and a static list for the questions and answers.
    Next step is to show this as a list on one Webpage.
    Here is an example: http://www.paket.de/pkp/appmanager/pkp/desktop?_nfpb=true&_nfxr=false&_pageLabel=pkp_portal_page_footer_cah_faqs
    You can see the Categories: "Fragen zur Registrierung auf Paket.de", "Fragen zur Nutzung von Paket.de" aso.
    When you unfold the categorie, you can see the questions and open each answer.
    My new Question is:
    How can I realise this list of categories?
    The easiest way is to include each categorie as Contributor Data File seperately, but this way is bad to maintain.
    Is it possible to use a dynamic list for this? If it is, how can I show the content which is inside the Contributor Data File?
    Thanks for your help.

  • How can I use comma in the return values of a static list of values

    Hi all,
    I want to create a select list (static LOV) like the following:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN','NY'
    I write the List of values definition is like this:
    STATIC:both are "Y"; 'YY',one is "Y";'YN', 'NY'
    However, it is explain by htmldb like this:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN'
    / 'NY'
    I tried using "\" before the ",", or using single or double quote, but all these do not work:(
    How can I use a comma in the return values?
    Thanks very much!

    "Better still, why not process the code of both Y with 2Y and one is Y with 1Y? "
    Could you please explain in detail? thanks! I am quite new to htmldb
    In fact I have a table which has too columns "a1" and "a2", both the values of these two columns are "Y" or "N". AndI want to choose the records that both a1 and a2 are "Y", or just one of a1, a2 is "Y".
    So I write the report sql like this:
    "select * from t1 where a1 || a2 in(:MYSELECTLIST) "
    Thus, I need to use "," in the LOV, since expression list in IN(,,,) using ",".
    Any other way to implement this?

  • Can we use mgrpAllowedBroadcaster in a static list?

    Hi Jay,
    I have a list that was dynamic in the old setup and want to make it static in the new setup.
    the dynamic list had some users as mgrpAllowedBroadcaster. Can we still use this attribute in a static group?
    thx!

    Yes, there's no difference in mgrpAllowedBroadcaster. The list may be static, dynamic, or even a combination.

  • ADF: Issue in selectOneChoice - dynamic list

    Hi,
    On my ADF page i have two selectOneChoice drop downs, one for CompanyName and other for DepartmentId. CompanyName drop down will get populated once the user logs in based on his credentials so, this is based on a query(having a where condition: where user='aaa'). CompanyName is fetched from the COMPANY table where CompanyId is the primary key. I wish to use Dynamic list for the selectOneChoice where base data source is the view based on 'select * from COMPANY' and the list data source is the view on 'select * from COMPANY where user='aaa''.
    DepartmentName is fetched from DEPARTMENT table(CompanyId is the foreign key here).
    I am using Dynamic list because i need to display CompanyName on the page whereas the backing bean needs to refer to the corresponding CompanyId as the DepartmentId drop down is based on 'select * from DEPARTMENT where CompanyId=<selected CompanyId>'.
    When i trying to run the ADF page, i am getting the following error:
    *<Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Too many objects match the primary key oracle.jbo.Key[149 ].*
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[149 ].
    *     at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:598)*
    Here oracle.jbo.Key[149 ] : 149 is the CompanyId of the selected CompanyName.
    Kindly help me resolve this issue.
    Thanks in advance.

    Hi,
    Thanks for reply!
    Can you please tell me what is base data source and list data source. I mean in my example of code which query points to base data source and which one points to list data source?
    Among the below options which one should be base data source and which one is list data source?
    1. 'select * from COMPANY'
    2. 'select * from COMPANY where user='aaa''
    Thanks.

Maybe you are looking for

  • Blackberry Curve 8320 Smartphone - Recording Videos

    HELP!  I can't for the life of me figure out how to record a video with my Blackberry Curve 8320 Smartphone.  Thanks!

  • Speed within Cash and Bank Statement

    One of our customers criticizes the speed at the booking of Cash and Bank Statements in SBO 2005A. The more rows are added all the more slower becomes the processing of the current row. This behavior appears extremely if the customer finalizes or sav

  • File is not picking in delete mode.

    Hi All, I have created a file to BAPI scenario using content conversion parameters . my file is getting picked and successfull when i give processing mode to test and archive. It is failing if i give the processing mode to delete. Can you please sugg

  • BIG Font Problem in XP, sorry for offtopic thread

    I appologize again for being off topic, but i do not know where else to look. Everything was working fine yesterday. I have Suitcase to manage fonts and I had a lot of fonts activated and they were working fine. I restarted my computer and then the f

  • Is posible execute script PLSQL in Visual Basic 2008?

    Hi, i'm a beginner in PL/SQL. And i have a question: How is the procedure for execute script PL/SQL on clic a button in a visual basic 2008 form. Coud you help me please. I'm sorry for my english but i only speak spanish. Thanks Edited by: Edgar Moli