Hiding Poplist Values at Runtime

Hi All,
I have a Poplist Variable Type with values 'A','B','C','D' and 'E'.
I want hide the values 'A' and 'B' at runtime.
I have two pages Search and Create. On Search page all values should be visible.
And on create page only 3 values ('C','D','E') must be visible in Poplist.
How to achieve this?
Thanks,
SK

Here is the code snippet requested by you
         OAApplicationModule am = pageCotext.getApplicationModule(webBean);
         ItemSummaryVOImpl vo = (ItemSummaryVOImpl)am.findViewObject("ItemSummaryVO1");
         vo.setWhereClause(null);
         vo.setWhereClause("Item_id <>:1");
         vo.setWhereClauseParam(0,3);Above i am setting item_id not equal to 3 same way you can bound your VO query such that and vo does not contain particular values.
Thanks
{color:green}AJ{color}

Similar Messages

  • Dynamic URL value at runtime

    Hi,
    We have created an iView of type "com.sap.portal.appintegrator.sap".
    In URL template property we have set the following value:
    <System.protocol>://<System.server>:<System.port><System.uri>?parameter=value&parameter=value&...
    That's to say, it is a dynamic URL that is built at runtime.
    My question is: How can we find out the value of URL when we preview the iView, that is, the URL value at runtime?
    Helpful answers will be rewarded!!
    Thanks in advance,
    Samantha.

    Hi Samantha,
    If I am understanding the issue properly.
    the solution is:
    there is no way you can get the url for iView.
    You need to assign the iView to Role. and assign it to a user.
    When you open the iView then from title bar select Add to Favorites, this will save it in the Browser favorites and when you go to the link and see the properties you get the Short URL.
    In Portal terminology the Dynamic URL is called Short URL.
    And to find the short url navigate to
    System Administration->Navigation-> Short URLs
    Hope this helps you.
    Pramod
    -award points if helpful

  • How to generate a PDF 417 Barcode by assigning a dynamic value at runtime?

    PDF 417 Barcode Description given in the Livecycle Designer 8.2
    : PDF 417 Non-Scriptable Barcode. Value must be assigned to this barcode at design time, and this barcode will not update after form object value changes.
    And my question is how to generate a PDF 417 Barcode by assigning a dynamic value at runtime?

    All the information you described points to the problem that reports seems can't generate to a file which already exist. You can verify that by simply doing
    r30run32 C:\AC_REPORT.REP DESTYPE = FILE DESFORMAT = PDF BATCH = YES' desname=c:\temp\ac_report.pdf
    several times. If first time the report is successfully generated in c:\temp\ac_report.pdf, but not the second, third time, then it looks like there is a bug on reports r30run32 executable.
    You may try to find any latest patch for Reports 3.0 to see if patch can solve you problem. But keep in mind Reports 3.0 is de-supported, you are better to move to 6i or 9i reports.
    Thanks,
    -Shaun

  • Setting the selectOneChoice value at runtime

    Hi,
    I need to set the selectOneChoice value at runtime. On Page Load I am creating object of RichSelectOneChoice and currencyCode.setValue("USD");
    When I check on runtime it is not showing "USD" as selected item in dropdown where as in background it is sending USD to downstream application.
    How to get the show the value in SelectOneChoice which is selected at runtime in code?
    Thanks in advance.

    Hi,
    Selected value will be taken from the value property of selectOneChoice component, I guess you don't have specified value property. Create a String instance variable in bean and then set the value 'USD' to this variable and then bind it to value property of selectOneChoice component.
    Sample:
    //inside bean
    private String selectedValue;
    //Getter and Setter methods
    //Replace the currencyCode.setValue("USD"); line with the below code
    this.selectedValue = "USD"
    //Finally in jspx page bind this selectedValue to value property of bean
    <af:selectOneChoice value="#{bean.selectedValue}" ... />Sireesha

  • Business Graphics: Speedometer chart: Change Maximum value on runtime

    Hi Skilled,
    We faced a little problem in our project. We use Business Graphics component and Speedometer chart on the View and we should change maximum value of the graphics on runtime.
    I could easily change the maximum on design time in Chart Designer -> Axis -> Maximum Value, but I haven't found a way to change it on runtime.
    Are there any known ways to change the value on runtime?
    Best Regards, Dmitry

    Hi,
    by calling setDirectCustomizing you can provide customizing XML at runtime.
    Create your own customizing XML where you define the maximum value and call this method.
    You can also use the SAP Chart Designer from SDNs download area for creating the XML (just to get an idea how the XML has look like in your application).
    Regards, Kai

  • Free Form Template and Combining Chart Values during Runtim

    Hi Guys,
    Need your expertise on this.  We received some unreasonable request for the following:
    1. Free Form Template DURING Runtime
    - moving charts from one place to another by dragging them from one place to another during runtime
    2. Combining of Chart values during Runtime
    -to be able to mash-up 2 different charts during runtime.  For example, dragging a chart to another chart
    would result to a combined-value of chart.  For instance, you have a Sales Chart and a Production Chart,
    if and when Sales Chart is dragged and placed on top of Production Chart then it would mash-up the values
    and will produce only one chart.
    Is this even possible?
    Hope you guys can help.
    Kind Regards and Many Thanks,
    Mark

    Hi Mark
    1. Free form template is not possible with current version of Dashboard Designer.  You may use the option of Dynamic Visibility to simulate this.  But this might not serve your requirement 100 %.
    2. Your requirement of mixing up chart just by dragging and droping on another is coming under Designing part.  For designing we need software, in my point of view.  Xcelsius is a Tool to generate required output in various formats.  Here we need to finalise the output such as chart type/ data to be displayed/ format to be displayed, etc and while viewing we may play with data but not with objects other than dynamic visibility.
    Hope this clarifies.
    With best wishes
    BaaRaa.

  • Modifying the Data Binding value at runtime

    Hi
    just wondering if there is a programmatic way of adding or removing the Default Binding value at runtime? This is the value that is showing up on the Binding Tab of the Object Tab.
    thanks,
    John

    Have you added teh Label as a text field?
    If you have done that, try replacing the label with a Input/Output type field in the display mode by selecting 'Output Only' in the attributes->Program Tab of Screen Painter.
    Now from the program , when the user presses F7, you can code to change the value of the Label (Input / Output field).
    This will work out. Please let me know if you have any issues.
    Regards,
    Anish Thomas

  • Row handling Poplist values

    Hi All,
    I am using switcher to show Text/Poplist for each row depending upon the Type.
    Now for Each row there are different related Poplist values.
    But while displaying in the page for each n every row I am getting the same poplist values for all rows.
    How to get the related Poplist value for each row?
    Here is my code
    CO
               OAViewObject vo = (OAViewObject)am.findViewObject("XXLCAssignmentsVO1");
               vo.first();
               int count = vo.getRowCount();
               System.out.println("List Count :"+count);
               for (int i=1;i<=count;i++)
               OARow varRow = (OARow)vo.getCurrentRow();
               if(varRow!=null)
               oracle.jbo.domain.Number list_id = (oracle.jbo.domain.Number)varRow.getAttribute("ListId");
               String slist = list_id.toString();
               System.out.println("List_id :"+list_id);
               if(list_id!= null)
               //String listid = pageContext.getParameter("ListId");
               System.out.println("List Id = "+list_id);
               Serializable[] params = {slist};
               System.out.println("Invoke InitListValue = "+list_id);
               am.invokeMethod("initListValue",params); 
               if(i<count)
                   System.out.println("List Next Row ");
                   varRow = (OARow)vo.next();
               }AM
      public void initListValue(String listId)
        System.out.println("init ListValue in AM= " + listId);
        XXLCValueListVOImpl vo = getXXLCValueListVO1();
        vo.initListValue(listId);
      }Thanks,
    SK

    Try this:
    If no column is not present which has "ListId" as its view attribute then Create column in the table and use "ListId" as its view attribute.
    Use the below code in processRequest:
    OATableBean XXX = (OATableBean)webBean.findChildRecursive("XXX");
    OAMessageChoiceBean LinePoplistItem = (OAMessageChoiceBean)XXX.findChildRecursive("LinePoplistItem");
    // LinePoplistItem is your poplist item bean ID
    LinePoplistItem.setListVOBoundContainerColumn(0, XXX,"ListIdBean");
    // here "ListIdBean" is ID of the item which has "ListId" as its view attribute Refer http://mukx.blogspot.com/2007/09/dependent-dynamic-message-choicelists.html
    -Anand
    Edited by: T.A.Anand on 13 Dec, 2010 5:12 PM

  • Modify poplist values in iProcurement (11.5.9)

    Hi, we have a requirement to remove a value from the poplist in iProcurement, Billing Information page for Taxable Status ( Yes, No ,Don't know ).
    Following is the xml code which display the poplist
    <POR_TAXABLE_STATUS ifFlag="true" functionName = "taxableStatus2">
    <if field="POR_ALLOW_OVERRIDE_TAX_CODE" value="false" itemStyle="text" updateFlag="false" >
    <fieldCellAttributes> class=fielddatabold </fieldCellAttributes>
    </if>
    </POR_TAXABLE_STATUS>
    I am not able to find where is the function taxableStatus2 is defined which retrieve the poplist values.
    Also, based on the taxable status value ( if it is Yes ) then we want to make Taxable Code ( LOV ) as read only. Is it possible to do this. If so, please guide me how to proceed further.
    Thanks for help.

    I checked with the procurements folks and looks like these values are hard coded in DataStore.getData and they fetch the values from the message dictinary ICX_POR_PRMPT_DONT_KNOW, ICX_POR_PRMPT_YES and ICX_POR_PRMPT_NO. So you cannot remove any of these values.

  • URGENT:Making a poplist value freezed based on another poplist value

    Hi,
    I have a requirement to make a poplist value freezed(should get disabled so that no further change can be done) based on another poplist value.
    for ex : poplist 1 : A,B.
    poplist2: yes,no
    if A is selected, yes,no should appear in the poplist2.
    if B is selected, only YEs should appear in the poplist2 and it should get greyed out(disabled for further changing).
    Please help.
    Thanks,
    Veena.
    Edited by: Veena. on Dec 31, 2012 4:00 AM

    Veena,
    there is nothing urgent on this forum!
    You know that you should provide your jdev version so that we can help you solve your problem.
    Next it would help if you provide the code (of the page) so that we see how you setup the 'poplist' (whatever that exactly is).
    If you mean a selectOnceChioce you can implement a valuechangeListener on poplist A and depending on the new value set the value of poplist B to yes and disable it.
    Timo

  • Getting the value at runtime in tableview

    Hi friends,
      I have created a BSP application which is page with flow logic.The purpose of this application is to provide inputhelp for a particular column in tableview.
      For this i created two pages i.e., parent and child window.i used javascript to pass the selected value in the child window to parent window ie., which will be displayed in the tableview of inputhelp.
    <b>  javascript in child window page :</b>
    <script language="JavaScript" type="text/javascript"> function pass_data()
    if (top.window.dialogArguments)
    if
    ( document.form1.row_sel.value )
    { top.dialogArguments.document.form1.<b>tv1_10_6</b>.value=document.form1.row_sel.value; top.close(); } } } </script>
    <b>LAYOUT OF PARENT WINDOW PAGE</b>
    <htmlb:tableView id = "tv1" visibleRowCount = "10" selectionMode = "lineEdit" table = "<%=flights%>" iterator = "<%=iterator%>" />
    if am hardcoding the value like tv1_10_6 here am getting the desired result. But my doubt is i dont want to pass this value.I need to pass the index value.How should i pass the value at runtime here?What should be the correct syntax?Please help me out.
      top.dialogArguments.document.form1.<b>tv1_10_6</b>.value=document.form1.row_sel.value
       here how should i use the varible instead of hardcoding the value?
    Please help me out.
    Thanks in advance.
    Thanks & Regards
    sireesha.

    hi,
    As Raja, has rightly pointed out, here is the sample code that can help you...
    In the Iterator class, RENDER_CELL_START method, pass the cell Id to the JS method as shown below:
    concatenate  `ShowDialog("`
                        p_cell_id `")`  into onhelp_js.
          p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY(
                                       id        = p_cell_id
                                       type      = 'STRING'
                                       showhelp  = 'TRUE'
                                       onValueHelp = onhelp_js
                                       alignment = 'RIGHT'
    Now, in the parent.htm page, change the Script to below:
    <script language="javascript">
    var txt;
    function ShowDialog(cellid)
    txt = document.getElementById(cellid);
    window.showModalDialog('wrapper.htm',window,'dialogHeight=420px,dialogWidth=600px');
    </script>
    And in the child.htm page have this code:
    <script language="JavaScript" type="text/javascript">
              function pass_data()
                   if (top.window.dialogArguments) {
                   if ( document.form1.row_sel.value )
                    top.dialogArguments.txt.value=document.form1.row_sel.value;
                    top.close();
              </script>
    this is working example that I have just created. If you have any problem, feel free to mail me to my email id in my BC. I will send you the total sample code.
    Hope this helps,
    Regards,
    Ravikiran.

  • How to select values frm table giving the condition value at runtime in SQL

    Hi All,
    How to select values from a table by giving the condition value at runtime in SQL
    My SQL statement is select * from employee where empno=<empno>, this empno I want to provide at run time. Also I don't have any bind variables defined. Can anyone please tell how can I achieve this. Also do I have to write a SQL or pl/sql statement.

    Hi Roshni Shankar,
    You can use substitution variable in case of SQL.
    SQL> select * from employees where emplployee_id = &emp_id;
    Enter value for emp_id: 100
    old   1: select * from employees where emplployee_id = &emp_id
    new   1: select * from employees where emplployee_id = 100If you want to put condition on varchar values then eighter provide values in single quotes or use single quote for substitution variable.
    SQL> select * from employees where last_name = &emp_name;
    Enter value for emp_name: 'King'
    old   1: select * from employees where last_name = &emp_name
    new   1: select * from employees where last_name = 'King'
    no rows selected
    SQL> select * from employees where last_name = '&e_name';
    Enter value for e_name: King
    old   1: select * from employees where last_name = '&e_name'
    new   1: select * from employees where last_name = 'King'In case of pl/sql you can pass values to procedure and you can use those values at run time.
    create or replace procedure test (p_emp_id number)
    as
       v_last_name      varchar2(100);
    begin
       select last_name
       into    v_last_name
       from  employees
       where employee_id = p_emp_id;
       dbms_output.put_line(p_emp_id ||'    ->    '||v_last_name);
    end;
    show errors
    SQL>exec test(100);
    SQL>exec test(101);Edited by: Gaurav Bhide on Oct 29, 2012 4:07 AM

  • Using :$FLEX$ to create a mutually exclusive parameter condition without poplist values

    Gurus,
    I've been unsuccessfully searching for an example of utilizing the $FLEX$ to mutually exclude one of two parameters.  Most of the examples I've seen are based on poplist value presented in parameter B for a value provided in parameter A.
    Here's what I need:
    Parameter A is initially editable
    Parameter B is initially editable
    If a value is entered for either B or A, then the other parameter will become greyed out.
    Pretty simple.   I need a straight forward answer.  I would prefer not having to create a custom value and use the "sql statement" option, but if there is no other way then that will be fine.
    Thanks in advance!

    Anyone got anything on this?

  • Report Parameter Default Value at runtime

    Post Author: DMiller
    CA Forum: .NET
    Hi,
    I need to be able to create new parameters at runtime and have been somewhat successful in this endeavor. I have one remaining issue that I am hoping that somebody can help me with. Let me explain.
    When you create a parameter from within the Crystal XI designer, you are able to specify a number of default values that will display as a list box at runtime. Eg. ParameterName is MaritalStatus and default values are ("Married", "Single", "Divorced" etc). There is also the ability to specify the Default Value in the Value Options area of the screen. This value could be set to any one of the default values above - let's say that I set it to "Single". By setting the Default Value, this causes the Parameter Fields screen, at runtime, to "Select" the specific default value set above - in this case "Single", instead of showing "..." as the parameter value.
    The default value setting in the Value Options is beneficial when you have reports that are usually run with certain parameter values and only occasionally these need to change. Instead of having to specify every parameter value, the user only has to set the ones that have not been defaulted or they want to change.
    So, I have been successful in creating the parameters at runtime and successfully running the report. I have been unsuccessful in setting the "Default Value" as seen in the Value Options area. I have tried a number of properties on the report parameter object and have not found anything to set this.
    Does anybody know how to set the "Default Value" as seen in the Value Options area in the designer at runtime?
    Thanks for any help.

    Post Author: JerryB
    CA Forum: .NET
    You have described my scnario to a tee.  Did you ever figure out how to get the single default value that is available in the "value options" area when working within the Crystal Reports development environment.  I am using VB.Net and have a nice report menu form and viewer but recently a user ask me to set the default value in one of my combo boxes and I have been unsuccessful in finding the correct property to use.

  • ALV Grid - Hiding the values of a feild and disabling checkboxs

    Hello,
    I have a report that requires the need to hide certain fields in an ALV report as well as checkbox in certain rows.
    So example I want to turn the ALV's output from ....
    PO Number
    PO Item
    450000001
    001
    450000001
    002
    450000001
    003
    450000002
    001
    450000002
    002
    [   ] = checkbox
    to the desired output below ...
    PO Number
    PO Item
    450000001
    001
    002
    003
    450000002
    001
    002
    so baically I want to do 2 things
    1. Hide the values of certain fields if the value from the previous row is identital and ...
    2. .... only include checkboxes for each new value of that column by either hiding (preferable) or disabling them.
    Hope to hear from all of you soon.
    Thank you all and good day.

    Hi Chad Cheng,
    U have a variable IT_SORT in the FM REUSE_ALV_GRID_DISPLAY.
    IT_SORT -fieldname = ur fieldname 1.
    IT_SORT-up = 'X' or IT_SORT-Down = 'X'.
    Append it_sort.
    IT_SORT -fieldname = ur fieldname 2.
    IT_SORT-up = 'X' or IT_SORT-Down = 'X'.
    Append it_sort.
    awrd points if helpful
    Bhupal

Maybe you are looking for