Appearance of items in a List Box

I'm working on a document in XI Pro and have a list box with 14 items.  When the user chooses multiple items from that box, I'd like the unchosen items to 'disappear'.  Is this possible?  If so, what would I need to do?  Note:  users would be using Reader (not Pro).
Thank you.

Hi Vijay,
Make ur Parameter as Obligatory.
Ex:
PARAMETERS:  p_matnr TYPE matnr OBLIGATORY AS LISTBOX VISIBLE LENGTH 20 .
Thanks,

Similar Messages

  • Select multiple items from a list box as values for a parameter of crystal report and Oracle procedure

    -  I have a  Product list box (asp.net) used as multiple selected values for  a parameter. 
    - The Product ID is defined in the Oracle procedure as NUMBER data type. 
    -  In my crystal report, I have a parameter field allow multiple values as p_product_id type as Number.  This is the code in my Record Selection Formula for the report:
    ({?p_product_id}[1] = -1 OR {Procedure_name.product_id} in {p_product_id})
    -  In C#, this is my code
    List<decimal?> productUnit = new List<decimal?>();
    int counter = 0;
    decimal prod;
    for (int i = 0; i < lstProducts.Items.Count; i++)
                  if (lstProducts.Items[i].Selected)
                                if (decimal.TryParse(lstProduct.Items[i].Value, out prod))
                                    productUnit.Add((decimal?)prod);                              
                                    counter++;
           if (counter == 0)
                       productUnit.Add(-1);                      
    ReportingDAO rDataFactory = new ReportingDAO();
    retVal = rDataFactory.GetProductReport(productUnit);
    public CrystalDecisions.CrystalReports.Engine.ReportDocument GetProductReport(List<decimal?> productUnit)
              CrystalDecisions.CrystalReports.Engine.ReportDocument retVal = new rptProductDownload();
              ReportLogon rptLog = new ReportLogon();
             rptLog.Logon(retVal, "RPT_PRODUCT_DOWNLOAD");
             retVal.SetParameterValue("p_product_id", productUnit); 
    I keep having the "Value does not fall within the expected range" when I debug.  My question is, is the data type I used for procedure/Crystal report/ and C# correct ?  I always have problem with the data type.  Any help would be
    appreciated
    Thank you

    Hi progGirl,
    Thank you for your post, but Microsoft doesn't provide support for CrystalReport now. Please post your question in SAP official site here:
    http://forums.sdn.sap.com/forum.jspa?forumID=313
    Thank you for your understanding.
    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.

  • Removing Items from Populated List-Box

    I have a drop down box populate a list box. (change: ListBox1.addItem(xfa.event.newText)) But I can add more then one of the same selection so how do I remove them from the ListBox. Upon click? somehow? I don't konw the lingo.

    There is a selectedIndex property that will give you back the index of the 1st item that is selected.
    Paul

  • Item renderes in list Box plz help me out!!!!!

    HI all,
           i have a problem with rendering images with data in list control plese help me.problem in detail....
    1)i have a data externally and i have to call it by using web service example data is in  xml?
    2)after calling the xml i have to bind it to list box control in flex , the data will be images and text in side of xml file?
    3)now i have to use item renderers to disply data in list box control , in 3coloumns
    first coloumn will be image <space>data and second column also image <space>data , third column also image<space> data
    i am showing below
    listBox
                    < image>  name id,city            < image >name,id(any data)      <  image> name,id(any data)
                              (000)-000-0000              < image> name,id(any data)     <  image >name,id(any data)
       the above is just example , in list i mage and data need to be displyed .
    thanks
    balu

    Peter Ent has a nice intro/tutorial on Itemrenderers starting at http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html

  • Display selected items in dynamic list box

    I need to display the selected items in a dynamic list box -
    this worked great - but now client wants multiple selected. I do
    have the items comma delimited in single field (but I can change
    that if I need to) - so how do I make those items display as
    selected in list. I'm using asp and standard dreamweaver list based
    on a recordset.

    There is a better approach. I faced a similar problem and put all the logic in a Javascript function. I modified my code to suit your needs.
    My HTML will have the following.
    <body onLoad="javascript:initLanguages();">
      <form name="languageForm">
        <select size="1" name="languagesList">
        </select>
      </form>
    </body>I created a Javascript function
    <script language="Javascript">
      //-- put all your languages here in a Javascript Array if they are fixed.
      //-- If you get the langauges from a Java object (dynamic or configurable), generate the Javascript in that object and insert a scriptlet in the HTML that plugs in the generated Javascript into this HTML. If so, take care of the quotes and double quotes. They are tricky !!!
      var languageArray = new Array("Fran?ais", "English", "Espanol", "Deutsch", "Italiano");
      function initLanguages ()
        var listCounter = 0;
        for (var ind=0; languageArray != null && ind < languageArray.length; ++ind)
          var obj = eval("new Option" + languageArray[ind]);
          eval("document.languagesForm.languagesList.options[listCounter]=" + "new Option" + languageArray[ind]);
          if(document.languagesForm.languagesList.options[listCounter].value == "<%= selectedLanguage %>")
            document.languagesForm.languagesList.options[listCounter].selected = true;
          listCounter += 1;
    </script>
    selectedLanguage is something you get in the Java code
    <%
      selectedLanguage = myObj.getSelectedLanguage();
    %>

  • Reflecting the items of second list box based on the chosen item of first list box

    Report Builder Version 6
    i would like to have let's say 2 list boxes in parameter form...say P_EMP AND P_DEPT as the sources...the P_DEPT is on top of P_EMP...SO when i choose a DEPT NO FROM P_DEPT ..THEN respective P_EMP will be displayed...how can i do ?
    i was told that so far in Report Builder is not able to achieve that..
    so i think of designing the parameter form by myself using PL/SQL. But now the problem is how to call the report builder procedure and vice versa ? how to pass parameter to and from report builder to my own-built parameter form using PL/SQL ?
    null

    Design a form wich must replace the parameter form of the report.
    The form can contain different fields for filtering data,fields for type of the report,orientation,destination,etc..
    After the user select the desired fields and press the execute report button you can call a report stored procedure and build a parameter list for calling RUN_PRODUCT.
    Hope this helps.
    null

  • How to remove an item from a list box?

    Here's my previous code.
    I hope someone can help me. Thanks.
    public partial class frmJaialai : Form
    List<Jaialai> source;
    public frmJaialai()
    InitializeComponent();
    private void frmJaialai_Load(object sender, EventArgs e)
    source = new List<Jaialai>();
    private void btnAdd_Click(object sender, EventArgs e)
    if (IsValidData())
    int bet;
    if (string.IsNullOrEmpty(txtJaialaiNumber.Text) || !Int32.TryParse(txtBet.Text, out bet))
    MessageBox.Show("Must be a required field.", "Entry Error");
    return;
    var existingProduct = source.Where(x => x.JaialaiNumber == txtJaialaiNumber.Text).SingleOrDefault();
    if (existingProduct != null)
    existingProduct.Bet += bet;
    else
    source.Add(new Jaialai { Bet = bet, JaialaiNumber = txtJaialaiNumber.Text });
    lstJaialaiNumbersList.DataSource = null;
    lstJaialaiNumbersList.DataSource = source;
    txtJaialaiNumber.Text = "";
    // save the jai-alai numbers list on a txt file
    const string sPath = @"C:\Automated Jai-alai Program\Jai-alai Numbers List.txt";
    System.IO.StreamWriter SaveFile = new System.IO.StreamWriter(sPath);
    foreach (var item in lstJaialaiNumbersList.Items)
    SaveFile.WriteLine(item);
    SaveFile.Close();
    public class Jaialai
    public string JaialaiNumber { get; set; }
    public int Bet { get; set; }
    public override string ToString()
    return string.Format("{0} = {1}",
    JaialaiNumber, "₱" + Bet.ToString());
    private bool IsValidData()
    return Validator.IsPresent(txtJaialaiNumber) &&
    Validator.IsPresent(txtBet) &&
    Validator.IsInt32(txtBet);

    Hi ,
    Here is a sample about remove Item from listBox.
    // listBox1.Items.Clear();// remove all
    int SelItemCount = listBox1.SelectedItems.Count;
    for (int i = 0; i < SelItemCount; i++)
    listBox1.Items.Remove(listBox1.SelectedItem);//remove which one you selected
    You also can check in MSDN
    https://msdn.microsoft.com/en-us/library/aa983551(v=vs.71).aspx
    Best regards,
    Kristin
    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.

  • Selecting Items From a List Box No Longer Works in Powershell Version 3.0

    I've noticed that the script in
    this powershell tip of the week no longer seems to fully work in Powershell V3. The selection dialog will pop up as expected, with all of the elments populated, but the selection is not stored in variable '$x'. Any idea what changed and how to get it to
    work?
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    $objForm = New-Object System.Windows.Forms.Form
    $objForm.Text = "Select a Computer"
    $objForm.Size = New-Object System.Drawing.Size(300,200)
    $objForm.StartPosition = "CenterScreen"
    $objForm.KeyPreview = $True
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Enter")
    {$x=$objListBox.SelectedItem;$objForm.Close()}})
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Escape")
    {$objForm.Close()}})
    $OKButton = New-Object System.Windows.Forms.Button
    $OKButton.Location = New-Object System.Drawing.Size(75,120)
    $OKButton.Size = New-Object System.Drawing.Size(75,23)
    $OKButton.Text = "OK"
    $OKButton.Add_Click({$x=$objListBox.SelectedItem;$objForm.Close()})
    $objForm.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text = "Cancel"
    $CancelButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($CancelButton)
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(10,20)
    $objLabel.Size = New-Object System.Drawing.Size(280,20)
    $objLabel.Text = "Please select a computer:"
    $objForm.Controls.Add($objLabel)
    $objListBox = New-Object System.Windows.Forms.ListBox
    $objListBox.Location = New-Object System.Drawing.Size(10,40)
    $objListBox.Size = New-Object System.Drawing.Size(260,20)
    $objListBox.Height = 80
    [void] $objListBox.Items.Add("atl-dc-001")
    [void] $objListBox.Items.Add("atl-dc-002")
    [void] $objListBox.Items.Add("atl-dc-003")
    [void] $objListBox.Items.Add("atl-dc-004")
    [void] $objListBox.Items.Add("atl-dc-005")
    [void] $objListBox.Items.Add("atl-dc-006")
    [void] $objListBox.Items.Add("atl-dc-007")
    $objForm.Controls.Add($objListBox)
    $objForm.Topmost = $True
    $objForm.Add_Shown({$objForm.Activate()})
    [void] $objForm.ShowDialog()
    $x

    Hi,
    What is the value of $x?
    Make sure that you have copied the whole script, and whether it works on Powershell V2?
    Regards,
    Yan Li
    TechNet Subscriber Support
    If you are
    TechNet Subscription
    user and have any feedback on our support quality, please send your feedback
    here.
    Cataleya Li
    TechNet Community Support

  • How to create an alert at the list item of List box in vbs/c sharp

    Dear All,
    I need to know how can we create an alert, or a message on the execution of the last item in the List box.

    What do you mean by "on the execution of the last item in the list box"? Do you mean when that last item of a ListBox is selected? If so, you could use the following code:
    Private Sub ListBox1_SelectedIndexChanged(sender As Object, e As EventArgs) _
    Handles ListBox1.SelectedIndexChanged
    Dim lb As ListBox = CType(sender, ListBox)
    If lb.SelectedIndex = lb.Items.Count - 1 Then
    MessageBox.Show("Last item is selected")
    End If
    End Sub

  • List box is not scrolling to the last item

    Hello all,
    I am developing a Windows Phone 8 application, in that I am using List box to display the data. I have requirement like once the page is launched user should navigate to the last item of the list box. For this requirement used scroolintoview method like LsbSample.ScrollIntoView(LsbSample.LastOrDefault).
    It is moving to the last item but not fully. It is showing last item around 60% but for remaining 40% I need to manually scroll the list box.
    Can any one help me to resolve this issue.
    Thanks in advance.
    Santosh Kumar Kotta

    It's likely a small bug. Can you try scrolling to the bottom of the scrollviewer's height instead?
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Limit of no.  of items shown in ABAP List-box?

    Hi All,
    I am doing a development and I came across this limitations of the no. of items in a list box. Is it limited to a single digit..? Cause when i use call function 'VRM_SET_VALUES', the value returned in the field is the KEY, which is only 1 digit in my case. I have over 100 entries to be displayed in the list box. Can anyone tell me how to increase the no. of digits which get returned by the FM 'VRM_SET_VALUES'?
    Please let me know.
    Awaiting your reply.
    Regards,
    Pankaj.

    Show us the code that you use to build the VRM table please.
    I'm simply not understanding your problem.  VRM table has 2 fields, key and text.  Text is what is displayed and key is what is
    returned from the user selecting one item on the list.  Only one value is returned.  There is not multiple selection options.
    This is code I use to generate a custome dropdown list.
    * this is in my TOP (Global area)
    DATA: ltype_field   TYPE vrm_id,
          ltype_result  TYPE STANDARD TABLE OF vrm_value,
          ltype_val     LIKE LINE OF ltype_result.
    * this is in my PBO routine
      REFRESH ltype_result. CLEAR ltype_result.
    * Drop down values
      SELECT ltype ltypex
        INTO TABLE ltype_result
        FROM zlmltyp
        WHERE auth NE '9'.    "System Only
    * Field name to assign drop down values
      ltype_field = 'WK_LTYPE'.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = ltype_field
                values          = ltype_result
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.
    Edited by: Paul Chapman on May 1, 2008 12:36 PM

  • The method of leaving cursor at selecting item of list box.

    Hello.
    Pleas let me ask about the subject!!!
    Concerning the screen by web-dynpro, I have a problem that when I select one listbox after selecting another listbox, the screen moves up to the top automatically.
    I would like to prevent from above moving.
    Could anyone specialist please tell me how leaving cursor at setelcting item of the list box.
    Thanks!!!

    Hi...
    there are two events which have been used, one is doubleclick event and the other one is on selecting the item from the list and clicking on OK button(this will be the most frequently used function, i cannot use event target event for this OK button... ) . I have attached the screen shot. Please have a look at it and let me know how can i achieve that...
    I can use custom event, but the main problem is that the inline itemeditor's details are not accessible in the code.... I can access some function from within the inline itemeditor combo box using outerDocument.myFunction() (this is something like GET). Is there a similar way, to SET the data into this itemeditor?

  • Checked some items of multiple-selection list box when form loaded in infopath

    Hi
    I customize sharepoint list with infopath. I have multiple-selection list box and want to checked some items of that automatically when form loaded. how can do this?
    Thanks.

    Hi,
    According to your description, my understanding is that you want to pre-select some items in the Multiple-Selection List Box.
    I recommend to follow the steps below to achieve this goal:
    Click Default Values under Data tab in InfoPath, expand the dataFields and navigate to the Multiple-Selection List Box field.
    Set the Default Value of the Multiple-Selection List Box field.
    Right click the field under the Multiple-Selection List Box group, then select Add another Value Below and set the Default Value for this field.
    Repeat step3 based on the number of the items that you want to be pre-selected.
    More information are provided in the link below:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Reordering list box items.

    This question was asked by someone else before but there was no answer so I will ask it again:
    I've implemented a WidgetListBoxWidgetN widget in a dialog and am trying to make it reorderable by the user dragging list items around in the list box. I figured that all I would need to do was set the 'list items can be reordered' flag in the resource definition for the list box and I would be all set. However, when I attempt to drag an item in the list box, the mouse pointer turns into an icon indicating that the item drag is not allowed.
    I've looked through the user interface tutorial, the user interface guide, the html guide and this forum. I haven't been able to find anything that can point me in the right direction. What am I missing here?
    Barry

    Thanks for the answer Dirk,
    No,
    From the comment for the listbox setting "List items can be reordered" I assumed that setting this to kTrue would be all that is required. It is all internal to the widget so I didn't see why I should need to get involved.

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

Maybe you are looking for

  • Is there a way to change the standard email message?

    Hi, I'd rather not have the message "Russ Conte has invited you to ..." as the message that is sent out for each invitation. Is there a way to change that without having to go in and change every single time it is used? Is there a preference for the

  • Assigning a value to a class member

    I need to use reflection, and I cant set the value of an attribute of the class of type string; Class Song{ string Author; Class Test{ Song song = new Song(); String myAuthor= "Kim" song.getClass().getDeclaredField().getName("Author").set?????(song,

  • Copy documents from one repository to another

    Hi all We have a scenario. We need to copy content from one repositoy to another when 1.  a new document is created. 2. the same document is updated. (replication should happen automatically, immediately) Is it possible? If yes, how? Regards Aparnna

  • 2x2 table. 4 empy cells. Can hide rows but not columns. grayed out. argh!

    Only one sheet with a single table with 4 cells. I don't see any merged cells. Is there any other attribute that prevents columns from being hidden? I realize that one cannot hide all the columns or all the rows. I was given a spreadsheet months ago

  • Error during GR

    Dear Experts, While making GR, it throws error message like 'material is blocked for quality reasons'. I have verified for material block in Q'Info record, Consecutive lots acceptance & Material master and found no block exists. Where i do check for