Picklist on Column & DataSetView

I put a Column's picklist property on a DataSetView but, when i
switch the DataSetView's storageDataSet property, JDev 1.1 say
me that i had to close the DataSet before. Ok, i done it, but
there, the picklist didn't work. The field control come to Blank.
(when i don't close the querydataset with close(), it work once,
and i have blank again the next times i click the fieldControl)
Have any idea?
null

don't duplicate your posts.

Similar Messages

  • Dynamic picklist in a table in oaf

    Hi,
    In my custom page, i need to populate columns based on picklist selected column.
    How to achive this. Picklist contains 2 values. 1.yes 2.no
    if (yes)
    populate the next 2 columns with default values. else it should be blank. Every row should be populated dynamically with picklist selected value.
    Help regard this,
    Thank you

    Hi,
    Please use the following code as mentioned in the DEV guide to enable the poplist column in the table to have different values for each row.
    For example, the first column shows department number and the second column shows a poplist of employees belonging to that department, in this case ,
    for the poplist I will have to pass a bind variable (:deptNo),
    so in the controller ,
    OATableBean table = ...
    OAMessageChoiceBean empPoplist =
    (OAMessageChoiceBean)table.findChildRecursive("EmpName");empPoplist.setListVOBoundContainerColumn(0, /* bind index */
    table,"Deptno");
    '0' indicates that the first index of the poplist query , Deptno indicates the column ID of the Department column.
    Regards,
    Guru Krishnan V.

  • Filter on Mutli-Select Picklist based on another column

    Hi,
    I have 2 columns in a report, the first one is Account Post Code (OOTB) and other is the custom multi-select picklist Service Area which contains multiple post codes.
    The report looks like.
    Post Code Service Area
    1 - 1,2,3,4
    1 - 2,3,4
    So ideally I want to show only the first row, since Service Area contains value 1 which is the value of the Post Code. I don't want the 2nd row since we don't have the value 1 on the Service Area.
    Can we do this in Answers on Demand? Any Case statement or any other approach. Kindly advice.
    Thanks
    Roshan
    Edited by: 965307 on Nov 29, 2012 1:13 AM
    Edited by: 965307 on Nov 29, 2012 1:14 AM

    Post defaults will not work based on Multi-Select Picklist field.

  • Need to add default columns to a CrossTab

    Post Author: ViBaldi
    CA Forum: Crystal Reports
    Just wondering if anyone has any ideas, as I have run out...
    I have a summary report that queries an SQL view and contains a CrossTab. The selection criteria is filtered by 4 selectable parameter fields:
    1) Region    2) Type of Job     3) Start Date    4) End Date
    With the exception of the dates, the user can select u2018one or manyu2019 from the dynamic parameter fields. The dates are selectable with Calendar controls. The Report is Grouped initially by Region. In my CrossTabs in each selected Region, the rows are the selected Job Type and the columns are grouped by the Month of the Job. The summarized field in the CrossTab is a Distinct Count of the JobID's. So basically, I want a monthly summary of Job Types, where the user can select the Job Types and date range for any particular Region.
    My dilemma is that my Cross Tab will not include Months, if there was no activity in those months. I want it to still print the Months, regardless of whether there were no jobs, but show a count of zero. Note that if there were different Job Types during the Month, it will appear with a zero in the column for the correct Job Type, but if that month had none of the selected Job Types, the Month is skipped altogether. Somehow, I would like to have the CrossTab leave all selected Months within the Start and End Dates in the columns, but with zero's as the Distinct Count, instead of skipping those Months.
    Here is a typical example:
    User selects 4 regions from the Regions PickList (say..Vancouver, Victoria, Nanaimo, Sooke).
    User selects 3 Job Types from the Job Type pick list (sayu2026Install, Removal, Service Call).
    User selects Jan. 1/07 as Start Date and Jun. 31/07 as End Date
    All of these picklists populate on first pass of the query, I believe.
    My Report Groups into Regions first, and then includes a CrossTab for each Region. I had hoped that the CrossTab would list all 3 Job Types in the left hand Rows, and all six Months in the Columns. Not so! If there was no u2018Installu2019 activity in Vancouver for all six Months, then that Job Type is omitted. Similarly, if there were no Job Type activities (of the 3 selected) at all for the whole month of March in Victoria, then the column for March is omitted. But, if March had 2 u2018Removalu2019 Job Type, and no other activity, and all other Months had at least one Job Type activity, then all Months would appear, and zerou2019s would be present where appropriate.
    So, it seems obvious that the query doesnu2019t have data for the Months with no activity, and you cannot do a Distinct Count of no data. I cannot insert fake records into the database, nor would I want to, because the JobID is a Unique Identifier. I have viewed a similar post that suggests linking to a .txt file, but I think that this may not work for me. I suspect that the ability for the user to select a date range would be a problem here, because the user could select only 3 consecutive months, or 18 consecutive months.
    Any ideas will be greatly appreciated. Please note that I am fairly proficient with Crystal Reports XI, and have tried everything I know, but I am relatively inexperienced with CrossTabs.
    Thanks!

    Post Author: Doug Johnson
    CA Forum: Crystal Reports
    This may not be the best solution but I believe it will solve your problem.  Try adding dummy records to your SQL view query.  I've done this with crosstabs in the past.  Use a UNION to your original select statement to do this.  So if your original query looks like:SELECT job_type, month, cross_value FROM tableA {where...blah blah}then add some UNIONs to it and return the whole thing as one view.SELECT job_type, month, cross_value FROM tableA {where...blah blah}UNIONSELECT DISTINCT job_type, 'January' AS month, 0 AS cross_value FROM tableA {where...blah blah}UNIONSELECT DISTINCT job_type, 'Feburary' AS month, 0 AS cross_value FROM tableA {where...blah blah}ect....If you are doing a sum at the crosstab value, the extra 0's won't harm anything.  If you're doing a count you will have to compensate by subtracting the extra 0 job_types/months.  You could also create a dummy table that contains the distinct job_types, 0 values and months, then just add one UNION selecting from that table.  OR you could just add an extra record to your existing table(s) that contains 0's for all months/job types.   

  • Picklist duplicate

    hello
    i just saw an instance where there is a duplicate picklist created. ie, the same sales order has two picklists for the same item with the same quantity. they have two picklists with two different numbers. do you know when and how this can happen? any ideas?
    thanks
    prem

    Hi,
    Creating two different picklists that have different picklist numbers are possible to do in B1. Although the picklists are from one sales order, have different or same quantity and have same warehouses, they will not be available in the same delivery order if you release the picklists.
    To know how it could be happened, just open the pick and pack manager --> select one sales order (open status) --> check the check box column after you fill "to release" column for example half of the open quantity column.
    After that, click release to picklist button.
    Then you go back to the to release column and fill the remain quantity. it should be as same as open quantity. After that, click release to picklist button again.
    Then open pick list form, you will find out there are 2 picklists created using one sales order.
    Rgds,

  • 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

  • Picklist in a Pick Applet

    Hello Everyone !!
    I would like to know whether we can use a pick list in a pick applet? If anyone has come across it and know the solution, please let me know.
    Requirement: Need to have a pick Applet on a list Column. And the pick Applet has three columns in it. On one of the column, i need to have a pick list.
    Regards
    Maiden.

    Can be done, no problem. It depends on what version of Siebel you are on. In some cases you need to put the
    picklist entry not only on the field of the pickapplet, but also on the field of the BC where you have your primary field
    (call the pickapplet from). I assume the picklist field from the pickapplet is the field you have exposed on the
    applet you call the pickapplet from.
    Axel

  • [SBO2007] Filling a matrix's column

    Hello all,
    I need to programmatically update the "To Release" column on the "Pick and Pack Manager" form. My problem is that however I do it, this operation is very slow. It takes minutes if the form has about a hundred rows. Here's a minimal working example:
    Matrix mx = (Matrix)frm.Items.Item("10").Specific;
    Cells qtyCells = mx.Columns.Item("3").Cells;  //The "Release To" column
    for(int row = 1; row <= mx.RowCount; row++)
      //This assignment below takes about a second of time:
      ((EditText)(qtyCells.Item(row).Specific)).String = "0";//qtyStr;
    Is there a way to accomplish this quicker? I just don't see a reason this assignment executes that long...
    Thanks in advance,
    Anton

    Try to modify the pick list from DI API, use PickLists object before the pick list is opened on the form.
    Unfortunately, this creates a PickList object which is impossible to modify, while our users need the possibility to make manual chagnes before the PickList is created, so I need fill it via UIApi.
    Anton

  • Help with setting up User Table/Picklist

    Hello:
    I am creating an application where I am using a custom authentication scheme and capturing all user information in a separate table. When the user logs in it will refer to the table to identify a user name and password stored in the table.
    I am allowing users to create their own user accounts which will default to basic access levels. Further along in the process users will be required to select an individual to approve something. I want to use a pick list so that the approver name is entered consistently every time. The user table has the following format:
    Column Name Data Type Nullable Default Primary Key
    USERNAME VARCHAR2(8) No - 1
    PASSWORD VARCHAR2(8) No - -
    FNAME VARCHAR2(30) No - -
    LNAME VARCHAR2(30) No - -
    EMAIL VARCHAR2(50) No - -
    ADMIN VARCHAR2(1) Yes - -
    APPROVER VARCHAR2(1) Yes - -
    I'd like the users to be able to select from a pick list that displays LNAME, FNAME. I don't know how to have both fields show up in a pick list.
    Alternatively I'd like (if possible) to keep the two seperate fields for the creation of the user accounts so that I can get a consistent LNAME, FNAME format and people aren't entering it backwards (i.e. Smith, Joe v. Joe Smith).
    If I cannot show the two fields in the picklist, is there a way where I could add a self calculating filed to the table that will concatenate LNAME", "FNAME?
    Thanks for any help you can provide.

    RKD,
    Create a dynamic list of values.
    select lname||', '||fname displayed, username returned
    from user
    order by 1You can display anything you want, independent of the returned value. And that includes concatenating items together (or doing other calculations/manipulations).
    -David

  • Records with a picklist field with empty values can't be seen from a report

    Records with a picklist field with empty values can't be seen from a report. I've created a report that have a picklist as a column. When there is no values the record(s) associated to this picklist don't appear. Do you know what are the common causes for this event?
    Regards
    Arturo

    Hi samrat chakraborty ,
    go to SUIM > roles > roles by complexselection criteria>
    under the selection according to authorization values give the object's  form SU53 screen and press enter it will asks the values for given object pass the values as per the SU53 and execute it will give the list of roles.... capture the roles. The user gets access if you give the any one of the listed roles is assigned, assign the role as per your approval process.
    Check with the below link for more assistence:
    http://help.sap.com/saphelp_erp2004/helpdata/EN/71/8fba30840c6e4d90da3526971cc684/frameset.htm
    Regards,
    S.Manu.

  • Print Item Sales Weight on Picklist (via Inventory module)

    Hi All,
    In the Inventory's Pick and Pack (Picklist), I need to have the Item Sales Weight to be printed.
    After I created a Database Field in PLD at the row level, and link it to OITM Sales Weight (SWeight1), the wrong weight is being picked up.
    Then I created another database field to print the Item Code from OITM. I found that the Item picked is not the same as the item displayed from the picklist.
    So i concluded that there is no mutual link between the PKL1 and OITM by item code.
    Can anyone advise how i can get the item weight to be displayed.
    Regards
    Jessie

    Hi Jessie,
    I think it is not possible on Pick List PLD.
    Just try this,
    ->> Open the Pick List(System) PLD and Save as the New PLD.
    ->> Create Database Fields in Repetetive Area and Select that fields then Clsik Alt+Select the Table(OITM).
    Table -> RDR1 - Sales - Rows.
    Column - Weight1.
    OR
    Table Name -> OITM - Items.
    Column -> ItemCode - Item No.
    AND
    Table Name -> OITM - Items.
    Column -> SWeight 1 - Sales Weight -
    ->> Assign the RELEATE TO Item Code Field_ID in Content Tab on Properties Window.
    Save it and run the print preview.
    Regards,
    Madhan.

  • Picklist rows UoM and Customer as header

    Hi Experts,
    In my Picklist PLD, I want to show the customer as a header and not in Rows, any idea?
    Also, I created a UDF in Picklist rows as Invty UoM, can we use FMS to get the Inventory UoM in OITM since the picklist rows do not provide such data?
    Thanks.
    Don

    Hi Don
    The problem with the PLD is that certain fields are only evaluated when that section is reached. For example, row details cannot be added on the header as SAP evaluates the data for headers first, and only for rows when the repetative area is reached. In order to get a list by customer, you can try using the grouping function for the repetative area by selecting the sort option and setting a new page for each customer.
    WIth regards to the UOM in the picklist, I tried this extensively for a customer some time back and the problem was that the value in this column was based on the first stock item and then just repeated on each row. Unfortunately some of the PLD layouts in SAP are "hardcoded" and do not allow for much manipulation such as is the case with debtors ageing and statements for example. With other words, the fields on the PLD are not looking to the "table" for its values such as the sales invoice for example does, but rather are passed programmatically to the PLD. I have not found a solution to this one yet, so if you do, kindly share it with us.
    Kind regards
    Peter Juby

  • Calculate age & auto select result from picklist

    Hi all,
    I understand that you can calculate a person's age using Timestamp but how would I then auto-select the age bracket of the person from a picklist (19-25, 26-40, 41-55, 56+) once the DoB has been selected?
    Thanks in advance,
    T

    create a Repository variable called Current_date and in the init sql
    write
    select trunc(sysdate) from dual
    After this create a logical column Age in BMM and in the column mappings tab of the Logical table source.. in the expression give
    timestampdiff(SQL_TSI_Year,birthdate,VALUEOF('Current_date'))
    Hope it helps..
    Thanks
    Ashish

  • Picklist Query for Child Object

    Hello every one
    for querying the picklist values from ondemand by "picklist" we need to pass the Object name, Picklist Integration Tag and Language code.
    for standard object like Account , Contact, Service Request i have no problem. but I don't know what to pass as object name for child objects like Preduct Revenue, Contact Role etc
    I have tried all possible combination but it is coming with exception. There is no documentation also.
    Any one have any idea about this? or any document?
    Thanks in advance
    Dinesh

    Hi,
    The problem I mentioned with Method #1 included the VO reverting back to the old SQL if you do stuff like sorting a column, etc. I don't know of a way to force it not to revert back except to re-setQuery on each action. I try not to use this approach (Method #1) if possible. I don't know how "dynamic" your SQLs are but if possible, you should comes up with an SQL general enough to cover them and then filter them with ViewCriterias (Method #2).
    As for executing your custom query on page load, you can try extending your backing bean with PagePhaseListener, and place your codes in the onPageLoad() method. You can check if it is the first page load by executing the command *!AdfFacesContext.getCurrentInstance().isPostback()*. You will also need to "register" your backing bean to the PageDefinition file as the ControllerClass such as below:
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.51.88" ...
                    ControllerClass="#{backingBean}">
    Run executeQuery on onPageLoad(), but screen don't get refreshed, pls help
    Regards,
    Chan Kelwin

  • Help with using selectonelistbox to refresh picklist data

    Hi. I would like to be able to refresh the data in a richfaces picklist (both the left and right sides) when I click on an item in a selectonelistbox. I have tried a number of things to accomplish this, but I have not been able to get it to work. If I hard code data into the picklist for the first display of the page, the picklist displays the data. But when the valuechangelistener event fires and the method loads both sides of the picklist with new data from the DB, only the left side of the picklist gets displayed on the UI. The right side never gets displayed with the currently assigned roles.
    Here are my tags and relevant code sections.
    Thanks for your time.
    Tags:
    <div id="ApplicationRolePickListSection" class="ApplicationRolePickListSection">
    <p>Please choose an application for this user and assign user roles</p>
    <h:panelGrid styleClass="ApplicationRolePickListGrid" columns="2"
                     xmlns="http://www.w3.org/1999/xhtml"
                         xmlns:ui="http://java.sun.com/jsf/facelets"
                         xmlns:h="http://java.sun.com/jsf/html"
                         xmlns:f="http://java.sun.com/jsf/core"
                         xmlns:s="http://jboss.com/products/seam/taglib"
                         xmlns:a4j="http://richfaces.org/a4j"
                         xmlns:rich="http://richfaces.ajax4jsf.org/rich">
    <h:outputText styleClass="ApplicationRolePickListHeadings" value="Choose Application"/>
    <h:outputText styleClass="ApplicationRolePickListHeadings" value="Assign Roles"/>
    <h:selectOneListbox id="applicationSelectionList" styleClass="ApplicationSelectionList" value="#{applicationRoleManager.selectedApplication}" size="8"
                            onchange="submit()"
                              valueChangeListener="#{applicationRoleManager.loadRoleComponentsForApplicationSelection}"
                                    xmlns="http://www.w3.org/1999/xhtml"
                                      xmlns:ui="http://java.sun.com/jsf/facelets"
                                      xmlns:h="http://java.sun.com/jsf/html"
                                      xmlns:f="http://java.sun.com/jsf/core"
                                      xmlns:s="http://jboss.com/products/seam/taglib"
                                      xmlns:a4j="http://richfaces.org/a4j"
                                      xmlns:rich="http://richfaces.ajax4jsf.org/rich">
                   <a4j:support event="onchange" reRender="rolePicklist" />
                   <f:selectItems id="applicationList" value="#{applicationRoleManager.applications}"/>
            </h:selectOneListbox>
              <rich:pickList id="rolePicklist" styleClass="RolePicklist" value="#{applicationRoleManager.assignedRoles}"
                                  xmlns="http://www.w3.org/1999/xhtml"
                                      xmlns:ui="http://java.sun.com/jsf/facelets"
                                      xmlns:h="http://java.sun.com/jsf/html"
                                      xmlns:f="http://java.sun.com/jsf/core"
                                      xmlns:s="http://jboss.com/products/seam/taglib"
                                      xmlns:a4j="http://richfaces.org/a4j"
                                      xmlns:rich="http://richfaces.ajax4jsf.org/rich">
                <f:selectItems id="assignedRoles" value="#{applicationRoleManager.availableRoles}"/>
            </rich:pickList>
    </h:panelGrid>
    </div>Code:
    @Out(required=false)
    private List<SelectItem> availableRoles;
    @Out(required=false)
    private List<String> assignedRoles;
    for(SsoRole ssoRole:applicationRoleList)
    availableRoles.add(new SelectItem(ssoRole.getRoleId().toString(), ssoRole.getName()));     
    for(SsoRole ssoRole:userRoleList)
    logger.debug("*** LOADING ASSIGNED ROLE ID " + ssoRole.getRoleId().toString());
    assignedRoles.add(new String(ssoRole.getRoleId().toString()));     
    ...

    Who says you can't dynamically build a file name each loop iteration?  I like to use the Format String to add the loop counter to a string that then is turned into a file path.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • CTD bug in simple video streaming applet.

    I'm trying to write a simple applet to use JMF to allow an end-user to view a video stream that's being served up by VLC. It doesn't have to look immensely pretty (in fact, streamlined is what I want most). I swiped some code from the jicyshout proje

  • XQuery equivalent of SQL "Group by"

    Hi, If I want to return a set of documents from a collection, grouped by a certain criteria, is it better to use 1. fn:distinct-values() and then use an inner for loop that returns the documents matching the current distinct value, or for $dv in fn:d

  • Color matching setup?

    Hello, I'm an editor new to SG CS6 and am looking how to reveal the Color tab to expose the 2up/3up buttons. I saw a few tutorials regarding the color-matching workflow and went through seemingly everything to find these buttons to no avail. Thanks i

  • Importing .mov "Unsupported File Type : Unknown format" error

    I have a .avi video from a camera and wanted to burn to a dvd to watch on dvd player. I converted the video to .mov but when I dragged into iDVD I received an error stating "Unsupported File Type : Unknown format". I converted to a .mp4 hoping that m

  • Photoshop Elements 2.0 kann unter Windows 7 nicht geöffnet werden

    Hallo zusammen Photoshop Elements 2.0 war bei mir bisher auf einem PC mit  Windows XP installiert. Ich habe nun einen neuen PC gekauft mit Windos 7 und das Programm installiert. Beim Öffnen kommt mir aber nun immer die Fehlermeldung: Photoshop kann n