Put a modified user parameter in the margin

Hello!
My report has an user parameter called ON_DATE. It is a date, passed in the format YYYYMMDD. I would like this date to be placed in the report margin in a different format, DD-MM-YYYY.
What I tried to do is make a second query:
select to_char(to_date (&ON_DATE, 'YYYYMMDD'), 'DD-MM-YYYY') as the_date from dual;
I then make a new field in the margin and select 'the_date' as its source. This results in a REP-1213 error which I have been unable to resolve.
Does anyone know of a way to do what I want to do?
I am using Reports Builder 10.1.2
Thanks in advance,
Frans

Hi Frans,
I don't think you need a second query to change the date format. The new field you created in the margin make the source = 'ON_DATE', and if you go the the new field's property palette, there you find a format attribute wherein you can put DD-MM-YYYY.
-Marilyn

Similar Messages

  • Is it possible to hide a forms user parameter in the wrapper HTML page?

    Is it possible to hide a forms user parameter in the wrapper HTML page? I.E I want to start my form with MODULE=myForm userid=scott/tiger@db myParameter=SECRET.
    The http://myserver/servlet/f60servlet?config=myconfig successfully starts the application (after update of the basejini.htm and adding this section to the formsweb.cfg
    [myconfig]
    userid=scot/tiger@db
    myParameter=SECRET)
    However, when looking at the source of the wrapper html page one can see MODULE=myForm userid= myParameter=SECRET.
    As you can see the userid is nicely hidden by my secret parameter is not.
    Thanks in advance for ideas for solving this…

    We logged a similar issue through Oracle support recently (hiding the password) and we did get a very unsatisfactory response :
    ====
    View source is the functionality for browser . So that can't be done.
    You have two possible workaround for your problem.
    1.
    Invoke Registry & move to HKEY_LOCAL_MACHINES >> SOFTWARE >> ORACLE. Here create a new string value with the name LOCAL & value as the connect string you want. Now when you run the form on web, just give user name & password, the form picks the connect string from Registry.
    Note : You need to make registry entry in a machine where Forms Server is running.
    2.
    You can hardcode the username, password & connect string in the form's ON-LOGON trigger. To do this use LOGON built-in.
    ====
    Should you receive a better response : we are also interested.

  • Writing order by clause with user parameter

    I have a user parameter where the user is supposed to choose what column they want to sort by.
    And they can choose between k.personnr and k.personnavn. I am trying to do this with a decode function.
    Now this would work fine if there was no union between these select statements.
    But with the union I get a ORA-01785, where they tell me to put in a number.
    Here is the sql:
    SELECT
    k.personnr as PERSON ,
    k.personnavn as NAVN,
    r.belop as SUM,
    concat(to_char(r.bilagdato,'MM'), to_char(r.bilagdato,'YYYY')) AS MND,
    PERIODE(concat(to_char(r.bilagdato,'MM'), to_char(r.bilagdato,'YYYY'))) AS PERIODE
    FROM
    reskontro r,
    klient k,
    kontoplan p,
    konto c
    WHERE
    r.distriktnr='21'
    and r.distriktnr=c.kontoid
    and r.distriktnr=k.distriktnr
    and r.personnr=k.personnr
    and r.kontonr=p.kontonr
    and (((r.bilagdato between :p_fra_dato and :p_til_dato) and (:p_fra_dato <= c.overfort) and (:p_til_dato <= c.overfort))
    or ((r.bilagdato between :p_fra_dato and c.overfort) and (:p_fra_dato <= c.overfort) and (:p_til_dato >= c.overfort)))
    UNION ALL
    SELECT
    k.personnr as PERSON ,
    k.personnavn as NAVN,
    (t.belop/100) as SUM,
    concat(to_char(t.bilagdato,'MM'), to_char(t.bilagdato,'YYYY')) AS MND,
    PERIODE(concat(to_char(t.bilagdato,'MM'), to_char(t.bilagdato,'YYYY')),:P_HORISONTAL) AS PERIODE
    FROM
    transaksjon t,
    klient k,
    kontoplan p
    WHERE
    t.distriktnr='21'
    and t.distriktnr=k.distriktnr
    and t.personnr=k.personnr
    and t.kontonr=p.kontonr
    and t.bilagdato between :p_fra_dato and :p_til_dato
    This is the order by clause I would like to use:
    order by decode(:p_order_by,'Personnavn',k.personnavn,k.personnr)
    I also get an error when I use:
    order by decode(:p_order_by,'Personnavn',2,1)
    Can anybody tell me how to work around this problem?

    Hi,
    One way you can do to get around this problem could be :
    select * from (
    SELECT
    k.personnr as PERSON ,
    k.personnavn as NAVN,
    r.belop as SUM,
    concat(to_char(r.bilagdato,'MM'), to_char(r.bilagdato,'YYYY')) AS MND,
    PERIODE(concat(to_char(r.bilagdato,'MM'), to_char(r.bilagdato,'YYYY'))) AS PERIODE
    FROM
    reskontro r,
    klient k,
    kontoplan p,
    konto c
    WHERE
    r.distriktnr='21'
    and r.distriktnr=c.kontoid
    and r.distriktnr=k.distriktnr
    and r.personnr=k.personnr
    and r.kontonr=p.kontonr
    and (((r.bilagdato between :p_fra_dato and :p_til_dato) and (:p_fra_dato <= c.overfort) and (:p_til_dato <= c.overfort))
    or ((r.bilagdato between :p_fra_dato and c.overfort) and (:p_fra_dato <= c.overfort) and (:p_til_dato >= c.overfort)))
    UNION ALL
    SELECT
    k.personnr as PERSON ,
    k.personnavn as NAVN,
    (t.belop/100) as SUM,
    concat(to_char(t.bilagdato,'MM'), to_char(t.bilagdato,'YYYY')) AS MND,
    PERIODE(concat(to_char(t.bilagdato,'MM'), to_char(t.bilagdato,'YYYY')),:P_HORISONTAL) AS PERIODE
    FROM
    transaksjon t,
    klient k,
    kontoplan p
    WHERE
    t.distriktnr='21'
    and t.distriktnr=k.distriktnr
    and t.personnr=k.personnr
    and t.kontonr=p.kontonr
    and t.bilagdato between :p_fra_dato and :p_til_dato)
    order by decode(:p_order_by,'Personnavn', NAVN, PERSON)
    /Uffe

  • Using user parameter for

    Hello,
    I have created a report using an xml pds. I am using a servlet for the xml data stream source. Everything works great with the url to the servlet hard-coded between the <xml></xml> tags (ex. <xml>http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet</xml>) but when I try using a user parameter between the tags (so I will be able to dynamically change the url to this servlet) it bombs. Please see my source code and error message below. Any help would be greatly appreciated, I've been stuck on this for days! Thanks!
    <rw:report id="recoveryCenterScheduleReport" parameters="server=myreportserver&userid=ssstage/ssstage@DEVL&p_xmlDataURL=http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet">
    <rw:objects id="objects">
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <report name="XMLscheduleReport" DTDVersion="9.0.2.0.0">
    <xmlSettings xmlTag="XMLSCHEDULEREPORT" xmlPrologType="text">
    <![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
    </xmlSettings>
    <data>
    <userParameter name="XML_HTTPS" datatype="character"
    pluginClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    width="255" defaultWidth="0" defaultHeight="0" display="no"/>
    <userParameter name="p_xmlDataURL" datatype="character" width="100"
    precision="10" defaultWidth="0" defaultHeight="0"/>
    <dataSource name="QP_1">
    <plugin
    factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    majorVersionNumber="1" minorVersionNumber="2"
    signOnParameter="XML_HTTPS">
    <![CDATA[<xmlpds DTDVersion=" 1.0">
    <dtd>null</dtd>
    <schema>file:///C:/Practic Workspace/Practice/WEB-INF/xsd/scheduleReport.xsd</schema>
    <XSQLschema>null</XSQLschema>
    <XSQLWithDTD>false</XSQLWithDTD>
    <type>false</type>
    <xmlWritten>true</xmlWritten>
    <validate>true</validate>
    <xml>&<[b]p_xmlDataURL></xml>
    <xsl>null</xsl>
    javax.servlet.jsp.JspException: rwlib-1: REP-0002: Unable to retrieve a string from the report builder message file.
    REP-0069: Internal error
    XMLPDS-63004:Generic error while parsing the URL stream name instead of <.
    REP-4111: Fail to create pluggable data source 'QP_1'
         at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
         at jsp.reports._schedule._XMLscheduleReport._jspService(_XMLscheduleReport.java:87)
    ....

    Never mind, I discovered the problem. I wasn't using the necessary xml escape characters for the user parameter embedded in the xml.

  • Authorization Policy for Modify user in OIM 11gR2

    Hi Experts,
    Requirement: I want the users in particular org not to modify certain user attributes and users from other org should be allowed to modify user.
    I have created user1 whose organization is org1 and role is role1. I have also created user user2 under same org and same role. I assigned the Admin Role "User Administrator" role to user2.
    So If user2 from same org1 tries to modify certain attributes then OIM should throw error message. I have completed till this.
    But when the user from diff org say org2 with Admin Role "User Administrator" tries to modify user, OIM is not allowing to modify user which should not be the case.
    I want the Auth Policy to trigger only for Org1. I have specified the below condition for my custom policy in OES admin console but it is not triggering.
    The condition is
    IF ( OrclOIMTargetEntity = 'true' AND OrclOIMUserOrganizations = 'true' AND STRING_AT_LEAST_ONE_MEMBER_OF(OrclOIMUserOrganizations,['25','1000000']) = true )
    What am I missing?
    Any help is much appreciated.

    Hi
    Can anyone let me know the steps to restrict modify user operation for the users belonging to specific organization in OIM 11gR2. The condition which I specified under Authorization Policy in APM console is not triggering at all.
    Thanks!

  • Usr_key: Modifying user in OIM 11gr2

    Hi Experts,
    My requirement: while modifying the user i need to get the "usr_key" or "User Login" of that user for further use.
    I am new to OIM, so can anyone of you help me in resolving my isseu.
    Thanks in advane.

    Hi
    Can anyone let me know the steps to restrict modify user operation for the users belonging to specific organization in OIM 11gR2. The condition which I specified under Authorization Policy in APM console is not triggering at all.
    Thanks!

  • Limit user fields seen  in Modify User Approval Request task - 11g R2

    Hi,
    I want to do the following;
    I fire a 'Modify User Profile' request, the request is being assigned to the right person. When the approver opens the task assigned to him in the Request Details tab he sees all the data about the user he will approve. I want to limit the user fields seen on this page, I just want to show few fields to the approver, is that possible? If yes how I can achieve that? Any help is strongly appreciated..
    BR ,
    Aliye

    Thank you Nayan for your fast response...
    If I do it in the way you suggested, the user will not see the attributes also when he try to modify user by clicking 'Modify' link from the oim user page. I want to do this only for the page accessed described below:
    Approver user has logged in to oim
    click Pending Approval from left pane-> Select the task from the list ->Task Page oppened-> Click Request Details tab->User attributes are seen ... I want to limit the attributes on that page.. Customize link is not accessable from here...
    Do you know any other way to achieve my requirement? Maybe there is something like approval template I dont know...
    Thank you so much for your guide..
    BR,
    Aliye

  • Specifying Non-String User Parameters in The Block Comment Dialog Tag

    I am trying to add user parameters for a block. I followed the instruction provided in section 4.3.7 (comments) of sysytembuild user's guide.
    The steps were as follows:
    1- I added a new parameter named (a_r) to a gain block (from the User Parameters section of Comment tag dialog field).
    2- I selected this parameter and assigned a value of 5
    Now, using the SBA command I retrieve this parameter:
    ------------------------------- Xmath outputs
    [n=UserParameterName, p=UserParameterContent] = queryblock(1)
    n
    n (a string) = a_r
    p
    p (a list with 1 elements) =
    1:
    5
    p(1)
    ans (a string) = 5
    ---------------------------- end of Xmath outputs
    Accordin
    g to the documentation, using suffix (_r) will specify a real parameter (_i for integer and _s for string). However, the list object
    obtained from "UserParameterContent" includes a string element and not a number. This can be verified by:
    --------------------------------------- Xmath outputs
    p(1) *2
    Cannot evaluate * of a string.
    modifyblock 1 ,{UserParameterContent = list(5)}
    Expecting a list of strings
    --------------------------------- end of Xmath outputs
    It looks like that independent of the naming convention, the user parameters are stored in a list with string elements in contrast to what
    mentioned in "Editing User Parameters Dialog" of the Help topics:
    "To create a new userparameter, enter a name in the User Defined field, and then click the Add button. Note that the name must have
    one of the following suffixes: _s (string), _b (boolean), _r (real), or _i (integer). "
    The questions are as follows:
    1- Is there a way to store n
    on-string type user parameters?
    2- If there is a way for that, then, is it only for scalar numeric values or vectors and matrices can also be stored in user parameters?
    Thanks,

    The Comments Tab is generally used to define User Parameters that will be used with DocumentIt. The suffix (_s, _b,_r, etc) is to designate the datatype for DocumentIt.
    All user parameters will be passed as string data to Xmath. As you noted the value 5 is passed as a string. To convert this to a scalar use the makematrix command. After you assign a value of 5 to the a_r user parameter use the SBA command queryblock as follows:
    n=UserParameterName, p=UserParameterContent] = queryblock(1)
    then enter
    m=makematrix(p(1))
    this will return a scalar.
    To get a vector in Xmath from the User Parameters you must assign the values differently on the Comment tab. Define a user parameter and assign its values by entering a carriage return after each element.
    For example assign the following value to user paramter a_r:
    5
    6
    7
    8
    Using the queryblock command you should now get:
    p(1) is a column vector of strings
    again use the makematrix command to convert this to a vector of scalars.
    m1=makematrix(p(1))
    Matrices will require a different user parameter for each column of the matrix. For example to add a column to the previous vector, you will need to go to the user parameters and add a new parameter (call it b_r) assign its values with the carriage return after each element for example:
    0
    1
    2
    3
    Again use the queryblock command. Now p will have 2 elements (one for each parameter). To create a matrix enter:
    m2=makematrix([p(1),p(2)])
    NOTE: The order the user parameters were entered in the Comment Tab will not necessarily correspond to the element they return as when using the queryblock. For example from the previous procedure, do not assume the second user parameter entered (b_r) is going to be returne
    d as p(2).

  • This pops up when exporting in iMovie "Unable to prepare project for publishing: The project could not be prepared for publishing because an error occurred. (ParamErr: error in user parameter list)" I have turned off my Time Machine in terminal.

    This pops up when exporting in iMovie "Unable to prepare project for publishing: The project could not be prepared for publishing because an error occurred. (ParamErr: error in user parameter list)" I have turned off my Time Machine in terminal yet it remains. What do I do, I need your help PLEASE.

    Hi
    Error -50 paramErr  Error in user parameter list
    Can there be any external hard disks - if so How is/are it/they formatted ? Must be Mac OS Extended (hfs) if used for Video.
    UNIX/DOS/FAT32/Mac OS Exchange - works for most but not for VIDEO.
    What this means in Your situation is above me.
    • free space on internal boot hard disk? How much ?
    Video codec
    • streamingDV, AIC etc. (not .avi, .mp4, .m4v, .wmv etc as they are containers not codecs)
    Pictures
    • in what format ? .jpg, .bmp, .tif, else ?
    Audio
    • from where/what format ? iTunes, .avi, .mp3, .aiff, else ?
    The "com.apple.iMovie.plist" file
    Many users has not observed that there are TWO libraries.
    • Library - at root level
    • Library - in user/account folder - THIS IS THE ONE to look into
    from Luke Burns
    I fixed the problem.. but it was very, very strange. I had a very long section for credits and set the line spacing to 1.0.. for some reason this caused it. I removed it, and it worked fine. I put it back, and I couldn't preview or play the video.
    I don't know why that could cause that big of a problem, but it did..
    Klaus1
    You need more free space on your hard drive.
    jonorparkerjon
    After phone support from apple I ended up creating a new project and adding all 117 clips back in individually till I found out what clips flagged and would not allow me to export. I had 3 I deleted and replaced and everything works now 1hr after tedious work....
    Where do Your material come from
    • Camera
    • External hard disk
    • USB-memory
    And all are connected so that iMovie can find it ?
    Yours Bengt W

  • I made an IMovie project and I can't now make a DVD of it.  A window says there are problems and that they are shown in the User Parameter List.  I am at a loss.  Don't know what to do.  HELP

    I have made an IMovie consisting of slides and some video.  I cannot create a DVD with it.  A window tells me there is a problem and that the problem is listed in the User parameters.....I am at a loss.  There are hours of work in the Movie.  Anyone have a thought?  HELP

    problem and that the problem is listed in the User parameters
    Can it be
    Error -50 paramErr  Error in user parameter list
    Can there be any external hard disks - if so How is/are it/they formatted ? Must be Mac OS Extended (hfs) if used for Video.
    UNIX/DOS/FAT32/Mac OS Exchange - works for most but not for VIDEO.
    What this means in Your situation is above me.
    • free space on internal boot hard disk? How much ?
    Video codec
    • streamingDV, AIC etc. (not .avi, .mp4, .m4v, .wmv etc as they are containers not codecs)
    Pictures
    • in what format ? .jpg, .bmp, .tif, else ?
    Audio
    • from where/what format ? iTunes, .avi, .mp3, .aiff, else ?
    The "com.apple.iMovie.plist" file
    Many users has not observed that there are TWO libraries.
    • Library - at root level
    • Library - in user/account folder - THIS IS THE ONE to look into
    from Luke Burns
    I fixed the problem.. but it was very, very strange. I had a very long section for credits and set the line spacing to 1.0.. for some reason this caused it. I removed it, and it worked fine. I put it back, and I couldn't preview or play the video.
    I don't know why that could cause that big of a problem, but it did..
    Klaus1
    You need more free space on your hard drive.
    jonorparkerjon
    After phone support from apple I ended up creating a new project and adding all 117 clips back in individually till I found out what clips flagged and would not allow me to export. I had 3 I deleted and replaced and everything works now 1hr after tedious work....
    Where do Your material come from
    • Camera
    • External hard disk
    • USB-memory
    And all are connected so that iMovie can find it ?
    Yours Bengt W

  • How to autofill the Modified Date And Modified User?

    hi All,
    Below is the screenshot of my form , if we look at the last 4 columns we have Created Date,Created User Id which is popped up automatically if a new entry is being created. Now if we look at the last 2 ModifiedDate and ModifiedUserId those fileds will be
    empty wile creating a new entry which is good for me. But lets say if i go back to any existing record and want to modify it then the modified date and modified userid must be popped up with that persons name and current date. I think i can use the logic i
    have to get date and userid but i want some help with code to how to make the modified fields fill up.
    Can someone please help me with this?
    Thanks a lot for all your time and support.

    well I use it all the time, and have no problem in that initially both the 'started' and the 'modified' date fields have the same value..... because when one is editing a record whether initially putting in data or adding/changing later - they are both considered
    to put the form in a dirty state.
    then in future edits only the modified date field changes.  the code in the OnDirty event is:
    me.ModifiedDateFieldName=Now()
    any other approach will be more difficult to achieve as essentially one must trigger it not universally at the OnDirty event but something more specific such as at every control

  • When sharing iMovie11 project  with iDVD inmediately message 'the project could not be prepared for publishing because an error occurred (Error in user parameter list).  Finalize issue?

    When sharing my 60 minutes iMovie project with iDVD inmediately message 'The project could not be prepared for publishing because an error  occurred (Error in user parameter list)' appears. Could not find the user parameter list, so I've no more info about this error.
    Option File - Finalize Project gives inmediately the same errormessage.
    Also option Share - Media Browser - Large/Medium/Mobile give the same errormessage.
    Please advise, thank you!

    Additional info: trying to write to internal disk (268 GB Free out of 499 GB)
    Please advise, alko80

  • Need to display a value before the header based on a user parameter.

    I have a select on the user parameter list of values.
    SELECT DISTINCT GROUP_ROWID, STR_GROUP_NAME
    FROM TBL_COMPANY_GROUP;
    I select the option hide the first column in order to show only a list of values and not the row_ids.
    I need to display the str_group_name within the header as a title. I insert a field in the header and in source select the name of the parameter p_groupid but the only thing that I get is the row_id value not the name. I use the row_id to pass it on my queries but I need the name value in the header. Any ideas? Please help.
    Thanks.

    create a parameter called p_header.
    in the after parameter form trigger
    select str_group_name into :p_header
    from tbl_company_group
    where group_id = :p_groupid;Have the header field source be p_header.

  • I keep getting this message from Imovie: Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (Error in user parameter list)

    I keep getting this message from Imovie:
    Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (Error in user parameter list)

    Bartirn,
    I called Apple under my Mac support contract.  They were completely unfamiliar with the error you and I were encountering.   Updating to 10.8.5 didn't help.
    I'm stopping my TimeCapsule while I perform these tasks, but I don't know yet if I have a consistent work-around.
    B

  • Whenever i try sharing my imovie trailer with idvd it says "The project could not be prepared for publishing because an error occurred. (Error in user parameter list)". How am i supposed to burn it to a dvd then?

    Whenever i try sharing my imovie trailer with idvd it says "The project could not be prepared for publishing because an error occurred. (Error in user parameter list)". How am i supposed to burn it to a dvd then?

    Additional info: trying to write to internal disk (268 GB Free out of 499 GB)
    Please advise, alko80

Maybe you are looking for