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

Similar Messages

  • 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.

  • 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?

  • How-To populate SELECT LIST default value from SQL Query

    OK, I've done my homework, and did not find my answer in the Forum, so here it is.
    I have a Page that displays fields from a SQL Query. The Page also has below that radiogroups, checkboxes, and Select Lists to allow the user to change values in the fields that are displayed at the top of the Region. I am able to pre-populate the radiogroups and checkboxes by performing a SELECT in the 'Source value or expression' of the Source area of the Page Item.
    However, I am unable to do the same for the Select List fields. Their default value ends up being the first value in the LOV ('-- None --' for NULL values). Source Used: Only when current value in session state is null. Source Type: SQL Query. Also, when I first go into the Page when running it, and check the Session State values, they are all null, so I don't understand why the field is not populated by the SQL Query statement as the radiogroups and checkboxes are.
    Any suggestions??? I've tried all sorts of combinations.

    Thank you for the suggestion.
    I had considered that, but cannot do so, because we are using Oracle Application Express more for development than for data containment.
    We have all our data in an Oracle 10.g DB which is separate from the OAEX server, and the OAEX app will reference that data via VIEWs and DB LINKs. We are doing so primarily as an added data security layer, where the data is housed separate from the app, in case the Web site is ever compromised. The data that can be viewed is restricted to a subset of the actual data that is available.
    Since the data is on a separate server, (I assume) we will not be able to set the source type to Database column, because (I asume) that is dependent upon the data being housed by the OAEX server.
    That still leaves me with having to populate the field with a SELECT statement from the Oracle DB. This unfortuneately is almost a show-stopper for me because of down-stream processing data requirements. Have not been able to come up with contingencies yet.

  • Dropdown list default value  in Visual Composer

    Hi all  ,
    i have dropdown list in my Visual composer layout  i have values coming like 2001 to 2014 ,everything is fine . i need to display default value in the dropdown list should be curent year like 2009when i deploy the application by default the current year should be displayed in input field.

    Hi Venkatp,   
    To Assign the function into the dropdown inputfield DSTR(NOW(),'YYYY') and you can to display the current year
    Followings links are available to display the dateformat,
    http://www.sdn.sap.com.ngrs.net/irj/scn/index?rid=/library/uuid/60535002-571c-2c10-58b6-cc27faa7be4d&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/7556c6b7-0e01-0010-878b-cbf4dbe859eb&overridelayout=true
    Regards,
    Prabha

  • Numbered bullet list-default values

    I have been using Text Expander to insert templates into Pages documents. One of these templates creates a simple numbered bullet list, with only the number one, followed by a period.
    When I add text to this bullet list and press enter or return, I get each new number in sequence. However, there is a preset “Text Indent” under the “List” tab, and a preset “Left Tab” under the “Tabs” tab.
    The Text Expander macro is saving the text in rich text format.
    Is there a way to set default values for the “Number” bullet list in the tab value, such that I do not have these indents and tabs whenever I start a new bullet list?
    Thanks

    @Jerry-
    Thanks much. I've been reading on styles, and it does exactly what I need.
    Mucho gracias!

  • Static Parameters - Default Values Not Showing On Crystal Server

    First, I create a basic report with static parameters.  Then I assign default values to the parameters.  When I run the report in the Crystal Developer, a window pops up and I see my parameters with the default values assigned.  At this point, if I run the report, it runs as expected and uses the default parameter values.
    However... if I install this same report on the Crystal Server, select 'Properties' > 'Default Settings' > 'Parameters', I see my parameters but I don't see their default values, yet if I select 'View', then a window pops up and I see my parameters and their default values.
    I guess I have the following questions:
    1. What's the difference between 'Viewing' and 'Running' a report on the Crystal Server?
    2. Why don't I see the parameter default values when I select 'Properties' > 'Default Settings' > 'Parameters' in the Crystal Server?
    I see the same behavior whether I use CR Developer XI or 2008.  The reports are being run on Crystal Server 2008.

    Hi,
    There are two modes of saving a report. 1 save your report with data (to do this go in File-- Save Report with Data check this option) 2. Save your report without data (uncheck the above said option)
    I think you are saving your report without saving the data with your report.  Try to save the report with saved data this will keep your parameter default values.
    Viewing is just looking at your report data which was saved along with your report.  'Running' is nothing but you are refreshing your report which will give you current data.
    Thanks,
    Sastry

  • Select List Default Value

    I have wondered about this for a while but haven't found an answer, maybe because I haven't searched for the right thing.
    With a select list, is there a straightforward way to specify the first item on the list for the default value?
    What is the best way to handle a case where the query providing the list of values may take a while to complete? I don't want to double the setup time by repeating the query just for the sake of finding the first item.

    Yes, it is. I am never using default values but computations. Default value will be set only after page submittion and not on load. A computation will set the item session state on load. Usually, you use some kind of condition for the computations to set the value of the item to something only if the item value is NULL. One of the reasons is also that the computations are visible in the page property and default values are hidden within the item properties.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • LOV/Choice List - Default Value in Update OAF page

    Hi Guru's,
    Need help please, I am looking at personalization but its not working for me to default a value in Group by LOV/Choice List.
    Please provide some pointers so that I can achieve this.
    I have Requisition page from Buyer Work Center in Oracle US Purchasing Super user. when I pick requisition to update it. It goes to update page, in here I have a header "request".
    In this request have a Group By LOV/Choice list it has initial value set to "Default", I wanted to set to "Requisition".
    Is it possible by Personlization?.
    OR
    Is it possible by OAF page modification.
    if OAF page update, can I get some information to get Page info and update value.
    Thanks in Advance to all.

    Hi,
    You need not do this via personalization... Set the profile po%def%group%. This should take care of that.
    Regards,
    Praveen

  • Possible bug ? - Default value for select list

    4.2.1
    Hi, I have one page with a couple of reports. I have a time period filter on top. Its a select list with values 7 days, 3 months and 12 months. Default value is set to 3 (where return values of select list is 1,2,3 resp).
    Now in page 1 which has this select list, :P1_SELECT it has a report which shows counts of number of items purchased. When the user clicks on the count(hyperlinked column), it takes the user to another page which runs the details of the items and also uses the Page 1 select. It works fine when I change the time period. However, if I dont change the time period in the select list when I first login, althought I have set the default value to 3, the interactive report on page shows no data found, because the select list default value I guess it does not recognize.
    Is this a bug?
    Thanks,
    Sunil

    ryansun wrote:
    4.2.1
    Hi, I have one page with a couple of reports. I have a time period filter on top. Its a select list with values 7 days, 3 months and 12 months. Default value is set to 3 (where return values of select list is 1,2,3 resp).
    Now in page 1 which has this select list, :P1_SELECT it has a report which shows counts of number of items purchased. When the user clicks on the count(hyperlinked column), it takes the user to another page which runs the details of the items and also uses the Page 1 select. It works fine when I change the time period. However, if I dont change the time period in the select list when I first login, althought I have set the default value to 3, the interactive report on page shows no data found, because the select list default value I guess it does not recognize.
    Is this a bug?NO.
    Default values is only populated on the clien side and NOT in the session.
    This has been discussed thousands of times in the forum..found this with a simple search {message:id=4440597}

  • How to remove % sign from List of Values

    Hi ,
    I have shared list of values thats is based on SQL query. At runtime the select list default value is showing as "%". Can someone suggest how to remove % and replace with null (blank)
    Thanks
    Aali

    In ist of Values region, if you select display null as 'Yes', in 'null display value' area use space tab or type something like ' - Select-' to replace %. Or, choose Display null as 'No.

  • How to create a list of value using date?

    We need to create a list on a report. The list consists of date. I have tried several times, but no luck.

    Hi Charles,
    I guess you have a user-parameter in your report and you need to define the LoV for the user parameter, so that the user can select from the LoV. In such a case you get REP-0782 if the datatype of column does not match the LoV of the parameter. Eg, if you have a query like
    select * from employees where hire_date < :p_hire_date
    And you want to build an LoV for hire_date, do the following:
    1. Go to your user parameter > Property Inspector > Datatype > select "Date". If you select Character or Number, you will get REP-0782.
    2. Now double click List of Values, choose "Select Statement" and type something like
    select distinct hire_date from employees order by hire_date asc
    If you don't want to use a Select Statement to build the LoV, you can write a static list of values, and even in this case Step 2 above should avoid the error REP-0782.
    Navneet.

  • List of values

    How to create a List of values in swings?
    A List of values is a one which on entering into
    a Field(Say TextField) popsup a new small window
    which contains some values from database/static values
    on selecting those values ,It should be fetched to that
    field
    Thanks

    Thanks in advance.
    Is there anyway to have a static list of values for parameters? I don't understand what you mean for static. But if What you want is to have a LOV that's not base in the values of an item based on a column of a table or view in the database, you can do a LOV based in a custom folder wich it's based in a select statement.
    Also is it possible to have a LOV from a select and not item class? No, LOV as far as I know can only be created using an item class, but what you can do is a custom folder. In the select clause of the custom folder, put the statements you want(like in the example), Then create an item class LOV type , base in the item that you want, then assign that item class to the items you want.
    Example.
    Select 'M' Gender From dual union all
    Select 'F' Gender From Dual
    Hope this helps

  • "Show List of values"  showing different values than "Preview List of values for the same dimension Object

    Hi All, 
    I have a dimension object in Business Layer which is showing a different values than the original database values. When I right click on the object and select "Show List of Values its showing values which are not related to the original values in the database but if I right click on the same object and select "Preview List of Values" it shows the right values present in the database. Any suggestions on how to rectify. It was working good and many reports have been built using that particular dimension.
    Is there any way to fix the problem without the deleting the object or recreating another similar object as the object has been used in several reports, so by deleting or recreating the object may break the reports.
    Please help!

    Hi
    A  list of values is a list that contains the data values associated with an object, Lists of values inserted in the data foundation are inherited by any business layer based on the data foundation.
    Right click on the object and select  “Show Values”… Display all the DB values including null
    Preview List of Values – also display same values...getting differnece meens...Check weather using any Static List of Values.
    If you uncheck the Associated list of values check box "Preview List of Values" options is disabled.
    For best practice …LOV is disabled for un-necessary dimension objects
    Also If you have Db access check the correct data by
    SELECT
    Distinct Schema name. Table/View name. Object name
    FROM
    Schema.name. Table/View name

  • Set Default Value of Multi-select list item

    I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
    :P507_ITEM := '%null%'; How do you get the default value set and selected?

    Hi
    Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
    Company A returns 1
    Company B return 2
    % returns 0
    Then your query would be...
    SELECT ...
    FROM ...
    WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
    Hope this makes sense.
    Cheers
    Ben

Maybe you are looking for

  • Ipad and iphone not syncing with icloud

    My ipad AND iphone 4S have stopped syncing with icloud - for calendar and reminders at least - suspect for all apps - any suggestions anyone? Have tried ensuring default calender is the same across all, but thus is also impacting other apps.. Help ap

  • Ipod nano 7th recongised, but can't sync music onto it

    my ipod 7th generation does get recongised by my computer, but it won't allow me to upload new things, nor delete old things on it.  It's not the same computer i first synced it to, because that computer crashed. But i would like to keep the music th

  • Keys on wireless keyboard not functioning

    I've just returned from a one-week trip to discover that a few of the keys on my Apple Wireless Keyboard are no longer functioning. These include the all-important DELETE key and also the double apostrophe key, though the comma key still works (comma

  • Signing a PDF/A with a JPG image, invalidates the compliance

    I am trying to sign a PDF/A document. I can't do it with Adobe Acrobat without invalidating the PDF/A compliance. So I am using our tool to sign the file. When I use a BMP as the graphical represenation of the signature, the file remains compliant, i

  • Error signature ModName: jvm.dll

    Hello, I have a Java application that ran fine on my desktop PC (Windows), where I coded and compiled my program. But when I copied my program to another PC and ran it, I got this error message : "MyApp.exe has encountered a problem and needs to clos