Hide one value coming from DB in LOVs on ADF pages.

Hi,
We need to hide one value from user from List of values.
We are populating the List of values from DB through Web service data control.
We have
L1
L2
L3
L4
L5 in the list of values
But we dont want to see L5 in the list of values on the screen.
Now the drop down should look like below
L1
L2
L3
L4
Thanks in Adv...

is it always the last value that you need to remove ?
once i tried to remove the first empty string value in my selectOneChoice component that bind to an ADF DataControl.
function init(){
     if (document.forms[0].soc11.options[0].value=='') {
       document.forms[0].soc11.options[0] = null;
       document.forms[0].soc11.value = document.forms[0].soc11.options[0].value;                   
//put below code before your form tag
<af:clientListener method="init" type="load"/>or you can remove the data from your VO query by limit it or put it in the WHERE clause

Similar Messages

  • Change an Object property based on a value coming from the Excel sheet

    hi all
    i've been able to bind a value from the excel sheet to my my component
    but i want to change a property of an object in my component based on this value at the run time.
    during the design time, it works fine
    for example, if my value called "_xvisible"
    and i use to it to hide some object.
    if i set _xvisible during the design time in excel, it works fine in the run mode.
    but during the run mode, if the value got changed, there is no affect.
    thank you
    Amr

    Hi
    See the xcelsius samples present inside xcelsius SDK. there are examples describing how to bind data which will work at runtime also.
    Hope this helps
    Rush-me

  • Not all selection screen value coming from selection screen only first val

    hi i am doing
    SELECTION-SCREEN BEGIN OF BLOCK gl_ac3 WITH FRAME TITLE text-019.
    SELECT-OPTIONS: gl_acdp1 FOR gv_gldep1.
    SELECTION-SCREEN END OF BLOCK gl_ac3.
    then i am using seelct as below
    SELECT      robukrs
                    rzzhkont
        FROM  zzamd1t INTO TABLE it_amdt
           WHERE ryear = p_gjahr
           AND   robukrs IN so_bukrs
           AND   rzzhkont IN gl_acdp1.
    but the value selected by select statement from internal table is for only first value of gl_acdp1 ie for first account c1 but user is entereng three acts c1 c2 and c3 so fro all data should be selected but for only one it is being selected
    pls sugest

    Hi,
        Is gv_gldep1 & rzzhkontare of same data type.
    Do as below
    SELECTION-SCREEN BEGIN OF BLOCK gl_ac3 WITH FRAME TITLE text-019.
    SELECT-OPTIONS: gl_acdp1 FOR gv_gldep1.
    SELECTION-SCREEN END OF BLOCK gl_ac3.
    INITILIZATION.
    MOVE 'I'      TO  gl_acdp1-sign,
               'EQ'  TO  gl_acdp1-option,
               'C1'   TO  gl_acdp1-low,
       APPEND gl_acdp1.
    MOVE 'I'      TO  gl_acdp1-sign,
               'EQ'  TO  gl_acdp1-option,
               'C2'   TO  gl_acdp1-low,
       APPEND gl_acdp1.
    MOVE 'I'      TO  gl_acdp1-sign,
               'EQ'  TO  gl_acdp1-option,
               'C3'   TO  gl_acdp1-low,
       APPEND gl_acdp1.
    START-OF-SELECTION.
    SELECT robukrs
                 rzzhkont
                               FROM zzamd1t INTO TABLE it_amdt
                               WHERE ryear = p_gjahr
                               AND robukrs IN so_bukrs
                               AND rzzhkont IN gl_acdp1.
    Make sure that ur table zzamd1t has values for C1, C2 and C3.
    Tell us how is ur output with this code.
    Regards,
    Bala Krishna
    Edited by: Bala Krishna on Aug 11, 2008 9:11 PM

  • How to pass value coming from a program to a transaction

    hi gurus,
    In my requirement i will get a value from a program and i need to send this value to a field present in a transaction.
    can any one help me in this matter.

    First got to the data element of the field to which you want to pass the value to and check the Parameter ID in the Further Characterstics tab
    For Example it is XYZ
    Then
    In BADI
    Set Parameter ID 'XYZ' Field P_FIELD_VALUE.
    Call Transaction 'ABCD'.
    santhosh

  • Null values coming from JSON

    Ok. heres whats going on. I have a bunch of charts all with
    two series , demand and baseline. About half of them have a null
    value for the last value in demand and of the half 2 have null for
    the entire baseline.
    my problem is one of the afore mentioned 2 charts will not
    show up (chart shows but without lines) unless I iterate through
    and set all null values to zero in the baseline series. Then
    baseline will lie on the x axis(BAD) and demand will show
    correctly(missing the last value because it null, GOOD)
    my question is why? why does demand disappear when baseline
    values are null? here is some code to maybe help you out
    quote:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:myComp="*"
    layout="vertical" viewSourceURL="srcview/index.html"
    preinitialize="srv.send();" uid="theApp">
    <mx:Script>
    <![CDATA[
    import mx.charts.series.LineSeries;
    import mx.charts.chartClasses.Series;
    import mx.charts.AxisRenderer;
    import mx.charts.CategoryAxis;
    import mx.controls.HorizontalList;
    import mx.containers.Panel;
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    import com.adobe.serialization.json.JSON;
    import mx.controls.Alert;
    import mx.utils.ObjectUtil;
    [Bindable]private var ercotDem:Array = new Array();
    [Bindable]private var ercotBase:Array = new Array();
    [Bindable]private var times:Array = new Array();
    private function onJSONLoad(event:ResultEvent):void{
    try{
    // ---- i know this json stuff works.
    // ---- i have printed out the data and cheaked
    // ---- to make sure its goign into the array correctly
    // ---- and i use it all over the place in other files
    var rawData:String = String(event.result);
    var jsonOBJ:Object = (JSON.decode(rawData) );
    ercotDem = jsonOBJ.ERCOT.demand as Array;
    ercotBase = jsonOBJ.ERCOT.baseline as Array;
    times = jsonOBJ.times as Array;
    } catch(err:Error){
    Alert.show(err.message);
    private function popup():void{
    Alert.show("Fail!!");
    ]]>
    </mx:Script>
    <!-- other charts here too -->
    <mx:Panel title="Ercot Demand" height="300" width="600"
    layout="horizontal">
    <mx:LineChart id="linechart_ercot" height="100%"
    width="100%"
    showDataTips="true" dataProvider="{times}"
    mouseSensitivity="50">
    <mx:horizontalAxis>
    <mx:CategoryAxis />
    </mx:horizontalAxis>
    <mx:horizontalAxisRenderer>
    <mx:AxisRenderer canDropLabels="true" canStagger="true"
    />
    </mx:horizontalAxisRenderer>
    <mx:series>
    <mx:LineSeries displayName="Ercot Baseline"
    dataProvider="{ercotBase}" />
    <mx:LineSeries displayName=" Ercot"
    dataProvider="{ercotDem}" />
    </mx:series>
    </mx:LineChart>
    </mx:Panel>
    <mx:HTTPService id="srv" resultFormat="text"
    showBusyCursor="true"
    url="--myserver--"
    result="onJSONLoad(event)" fault="popup()" />
    </mx:Application>
    keep in mind this is only one panel theres about 9 and all of
    them work as expected and the code is all the same.
    any ideas?

    no one has any ideas?

  • Value coming from query is chaing in the Table view

    Hi experts,
    I am new to VC and developing a basic model by using a BI query as a data service.
    I have a field "Project Code" which can return value numeric or alpha numeric or Character.
    for example
    Project Code= 14000000000000002782007 or
    ATROVASTATIN
    When i am right clicking the query and doing the test query function its displaying correctly but when i am draging from the output port of this query and using a Table view to display the data the numeric values like in our example "14000000000000002782007" is displaying as 1.4e+23 its displaying the same value where ever i have some numeric value in the field.
    But its displaying the Char value right "ATROVASTATIN" as it is.
    In the table view the field which is getting this value is with Datatype Text.
    How can i solve this problem.
    Thanks and regards
    Neel

    Hi Neel,
    Have a look at this link,
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/sizeof_key+values&

  • Returning more than one value/object from an EJB method

    Hi,
    I have the follong method in the remote interface of my EJB:
    void createSomeObject( MyObject obj1, List returnList1, Map returnMap1);
    Since i want to return a List (returnList1) and a Map(returnMap1) from my EJB method "createSomeObjects", i am passing these as parameters thinking they will be passed by reference and the client(servlet) gets the changes the EJB made to these objects.
    But it doesn't seem to be working, the EJB is filling the List and Map objects and the servlet doesn't get it (pass by value problem).
    My understading is that, all parameters to an EJBs are passed by value(because they are remote calls, the RMI thing), let me know if this right.
    Is there any workaround apart from the following alternative?
    Alternatives:
    1. Wrap "List list1" and "Map map1" in another model and return this instead of passing them as parameters.
    Thanks
    Vasu

    My understading is that, all parameters to an EJBs
    are passed by value(because they are remote calls,
    the RMI thing), let me know if this right.Yes, that is correct - which you should know from your introduction to J2EE reading.
    Is there any workaround apart from the following
    alternative?
    Alternatives:
    1. Wrap "List list1" and "Map map1" in another model
    and return this instead of passing them as
    parameters.No.

  • GR unit value coming from the Invoice

    I have the following situation:
    PO 100 units price 3,14 u20AC/unit
    IR: 1 unit at a price of 314 u20AC/unit
    GR: Post GR for 100 units and the system is generating the accounting doc. for a value of 624,86 u20AC, that comes from
    - 1 unit at the price of the Invoice 314 = 314 u20AC
    - 99 units at the price of the PO 3,14 u20AC/unit = 310,86 u20AC
    The total GR amount is bigger that the PO amount.
    Is this the standard SAP behavior?
    Is there a way to get only the price from the PO, not from the Invoice
    Best regards

    Yes this is standard SAP design. This situation will raise if you post Invoice before doing GR. also depends on price control in material master.
    To fetch the price from PO u must follow GR followed by posting an Invoice.
    Edited by: Sachin D C on Nov 10, 2010 3:47 PM
    Edited by: Sachin D C on Nov 10, 2010 3:48 PM

  • How to handle more than one message coming from an async BPEL in a sync BPEL process?

    Here is the scenario,
    Sync process A is calling an Async process B and Async process B  is developed in such a way that it is returning more than one message to sync process A, how you will handle those messages in sync process A?

    As durga said, its a wrong design, you will have issues in real time. You wont get the response back most of the time. It can be otherway around, async is waiting for sync process.
    Change your design or provide what is your use case below, we can think of which design suits you.
    Thanks,
    Vijay

  • How to capture text input value by user in a LOV search popup page?

    I need to capture the input by the user in LOV search page. I added one controller in the LOV region, and the flow is also working, but what I need to hold the search input in the search popup page. Also do you know what is the id of " Search Term" text input? then I can try to hold the value in PFR of the CO.

    Hi Sandeep,
    Yes, as of now I need to populate blank, so I need to modify the SQL, therefore I need to capture the value which is given by the user. I am trying to capture the value through passive criteria, but not able to get the result. I added below code in PFR of lov region controller,
           Dictionary passiveCriteriaItems = pageContext.getLovCriteriaItems();
           String lov = (String)passiveCriteriaItems.get("SwitchLOV");
          if ((lov != null) && !("".equals(lov)))
               throw new OAException(lov, OAException.INFORMATION); 
    SwitchLOV is a lov map I have added in the LOV, and
    Programmatic Query set to true. and
    LOV Region Item is the id for which user searches.
    I am getting null in the "lov" where i have give some value in the search field.
    Is this would be the way?
    I dont understand where is the issue, Please suggest.

  • SSRS Hide one data value label in chart legend

    Is it possible  to hide one value in the legend? I've got a stacked bar chart, but there's one value that I don't want to display in the Legend. Is it possible to hide this particular color and label in the legend?
    Thanks,
    Chris

    Hi Chris,
    Yes. In Reporting Services 2005, you could add a filter to hide one value label in the chart legend. This can be done with the following instructions:
    In Report Designer, open the chart properties dialog box and go to Data tab.
    Double click the item in the Series groups to open the Grouping and Sorting Properties dialog box.
    Switch to the Filter tab. Add a filter using the following setting:
    Expression: =Fields!<FieldName>.value
    Operaiton: !=
    Value: =”value”
    If you have any further questions, please let me know.
    Thanks.
    ***Xiao Min Tan***Microsoft Online Community***

  • How to set the Default value in the picklist and LOV

    Hi All,
    I have created a table with some of the columns as picklist and some of the columns as Lovs to insert some data into the tables as per the client requirement.
    I want to make one value as default for the picklist and one value as default for the Lov.
    Could you please let me know how can we show one value as default in the pick list or Lov.
    thanks in advance.
    jay

    can u please help how can we set the initial value dynamically with the userid
    For that i was passing the value from process Request of the lovCO by using the get user id to the vo query in the vo
    but its not giving the initial value as default dynamically depending on the user id
    could you please let me know the solution.
    Thanks
    Ajay

  • Result region not displaying values properly from backend table

    HI All,
    We have a search page wherein we have added a new column called grade range in the table as well as in the search region.The new column is mapped to a altogether new column which
    is created in the database table with a default value.The table in the search page has Entity object assosciated with it which is taking care of all the DML operations.
    The name of the newly created item in the serach region is grade range which has three value coming from lookup like 12 ,13 and all,and also the new column
    created in the database table has default value of all.
    When we are trying to query the results in the search page with the filter criteria of any value for grade range, then we are able to see the records in the result table but with the column grade range being null. But When we update any record in the result table , then we are able to see the value for grade range column for updated records after submit.
    And this behaviour of the search page is after the data base refresh. Before that, it was working fine.

    Hi,
    I hope, these two characterstics are from different base cubes. SO you are getting two rows. I hope, it is not possible to display those two rows(what you explained in the example) in a single row. This is very common property of Multi provider. To solve this problem you have to enhance one of DS to include both characterstics and it should feed the data to one cube only. Then you have to built the query directly on that cube.
    With rgds,
    Anil Kumar Sharma .P

  • How to change the Text of Dropdown by Key Dynamically thats coming from RFC

    HI All,
    I need an urgent help . I have a parameter coming from RFC -> YYTEXT with a value Range and I am binding this parameter in my DROPDOWN BY KEY .Now I have a requirement that two values coming from this parameter i need to change it
    .Can you please tell me how to get the values from this YYTEXT attribute which is in NODE1 and then set the two new texts to this attribute so that it shows different text in the droodown .
    Thank you in Advance .
    Naaz

    Will appreciate any comments on the question ?

  • Events or attributes triggered by data coming from a data file

    Without using scripts, is there any way to have rectangles or textboxes act on values coming from a data file? If not, does anyone know or have some scripting suggestions to do that. For examplle if the value in a textbox was greater than 10 coming from a data record, could the textbox change color, or any other attribute to make it change from record to recortd as it is being viewed or printed?
    Thanks

    That is how I solve your question.
    I use a formula in Excel:
    I import the result in ID, not Column A, but B (result of the calculation):
    And I modify the paragraph style like this:
    It is easy and fast to do. 

Maybe you are looking for

  • AS2 receiver error

    Hi Experts, Im getting this error in the AS2 receiver channel: Message could not be forwarded to the JCA adapter. Reason: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Failed to

  • Few 5DmkII RAW files do not open with Aperture, but OK with other software

    Hi, I have two RAW files which I cannot import with Apple Aperture. The files open fine with Canon Digital Photo Professional, Raw Photo Processor and dcraw (and with various programs on my Windows 7 laptop) and I'm able to create TIFF files from the

  • Cannot install Exchange Server 2013 SP1 on Server 2012

    It was quite a challenge to clear the errors generated by a stock Windows 2012 install (I think that Exchange installer should install prerequisites for me, not provide cryptic error messages). Once they were cleared however the actual install fails

  • Proxy Scenario (abap client)- XI, ICM_CONNECTION_FAILED

    Hi Forum, I have a problem with a Proxy Scenario (ABAP client proxy), My scenario is R/3 (abap client proxy)--->XI   , the client proxy while sending message to XI throws an error, which is seen in SXMB_MONI as: 404 Resource not found Partner not rea

  • Tunneling Problem using HttpsUrlConnection

    Hi, I had gone through forums regarding this topic and still i am facing the same problem using the HttpsUrlConnection. We are working behind a proxy so we have to make a proxy authorization if we want to connect to a server in the internet. But in c