SRW.Set_Format_Mask not working!!

Hi,
I want the number to be displayed as : 500.00 or 100.00 or 10.00 or 1.00
This format mask works in the DB
SQL> select to_char(100,'99999990.9999') from dual;
TO_CHAR(100,'9
      100.0000I right click on the Graph embedded with the report, and select "PL/SQL Editor" and added the following Format Trigger.
function CT_1FormatTrigger return boolean is
begin
    srw.set_format_mask('99999990.9999');
    return (TRUE);
end;Now when I run the report, I am not seeing the X-axis number format as 1.00, 5.00.
Why is this not working?
Thanks

If you want to display 4 decimal places you need to set decimalDigit="4". Also, make sure nothing is happening to the value before your graph gets it that would cause it not to display correctly.
Here is what the DTD for graphs looks like for the ViewFormat element:
<!-- ViewFormat specifies number formatting-->
   <!ELEMENT ViewFormat EMPTY >
   <!-- ViewFormat attributes
   numberType: format numbers as currency or percent?
   thousandSeparator: character for separating thousands
   decimalSeparator: character for separating whole number from decimal
   currencySymbol: currency symbol; numberType must be NUMTYPE_CURRENCY
   leadingZero: display leading zeros?
   decimalDigit: number of decimal digits to display
   posNumFmt: format for positive numbers
   negNumFmt: format for negative numbers
   posCurFmt: format for positive currency
   negCurFmt: format for negative currency
   scaleFactor: how much to scale (abbreviate) numbers
   scaleDownThousands: character(s) to use when numbers represent thousands
   scaleDownMillions: character(s) to use when numbers represent millions
   scaleDownBillions: character(s) to use when numbers represent billions
   scaleDownTrillions: character(s) to use when numbers represent trillions
   scaleDownQuadrillions: character(s) to use when numbers represent
        quadrillions
   javaDateFormat: Java date format
   oracleDateFormat: Oracle date format
"used" attributes specify whether one of the above properties has
   been explicitly set; used for merging when using rules
   -->You would put this inside your X or Y axis element like:
<Y1Axis lineWidth="1">
<ViewFormat decimalDigit="4" decimalSeparator="." decimalDigitUsed="true" decimalSeparatorUsed="true"/>
</Y1Axis>I don't see your X axis anywhere...maybe it it your "O1Axis" but I don't see that either, I only see "O1Title","O1TickLabel", etc.

Similar Messages

  • SRW package not working in Reports 10g (9.0.4)

    Dear All,
    I am using reports services 10g (9.0.4) for RHEL o/s.we are using SRW pkg in our reports heavily.But when we compile reports in Linux it is showing errors like SRW.message ,SRW.set_field_char,SRW.set_format_mask must be declared.
    Though these functions are well written in reports help,it is not at all supporting these functions.
    What is solution for this for successfull compilation of reports??
    Regards-
    Onkar Vidwans
    INDIA

    Your not seeing the built in package for some reason.
    Maybe they are missing on your Linux machine.
    Reinstall reports there? Examing your environment variables?
    Is that rwrun.jar anywhere?

  • SRW,Run_Report not working on Report Server

    1 The plan is to do a select in the mother report. Get a number of rows, among them a company name, which the SQL is sorted on.
    2 In the data model I have a function that checks if a global variable is the same as the company name. If not, it will set the global variable equal to the company name, and then it will run a global defined function that starts the SRW.Runreport call that generates a PDF for this company.
    3 Next row the same thing will happen, and maybe the function is run again, or maybe it is the same company, in which case the SRW function will be skipped.
    The report runs nicely from reports builder, but when I try running it on the server it fails with error: REP-1401: 'cf_doc_trans_letterformula': Fatal PL/SQL error occurred. ORA-06508: PL/SQL: could not find program unit being called.
    I use following web link to start the “mother” report: http://Rep_server/reports/rwservlet?SERVER=origo_report&USERID=user%2Fpassw%40tns_name&AUTHID=user2%2Fpassw2&DESTYPE=cache&DESFORMAT=rtf&Report=temp.rdf
    In the temp.rdf the following statement is executed: SRW.Run_Report('BATCH=YES DESTYPE=FILE DESFORMAT=pdf DESNAME='||P_Desname||'.pdf REPORT='||P_REPORT||'');
    Are there any special settings I must make, when running on a Reports Server as opposed to the Reports Ruilder? Do I need a SERVER=REP_SERVER in the SRW.Run_Report parameter list?
    Any suggestions at all will be immensely appreciated.

    Hi,
    Top right cornor has a text box. Type "bobj is undefined" & you would find many KBs, forums & blogs.
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=bobjisundefined
    Thanks,
    Saurabh

  • SRW.DOSQL NOT WORKING IN REPORTS 11G

    Hi Experts
    I have certain coding in my report which makes use of SRW.DOSQL and the queries are written in reports 11g.
    Kindly let me know the alternative in reports 11g as the opening balance field is not bringing the value as attached in the report.
    I am attaching the rdf file for reference.
    Kindly let us know the solution for the same.
    Regards

    Your not seeing the built in package for some reason.
    Maybe they are missing on your Linux machine.
    Reinstall reports there? Examing your environment variables?
    Is that rwrun.jar anywhere?

  • SRW.Run_Report is not working in Reports from 6i to 10g

    Hi,
    I have a report .rdf file that submits another .rdf report using the SRW.Run_Report. This code was working fine in Reports 6i version. We are upgrading the Reports 6i to Reports 10g, and did a small change in the call i.e., Removed the server parameter, and it is not working. This is in Oracle E-Business Suite environment. The first report is called as a Concurrent Program. Here is the call that was working fine in Reports 6i (i.e., Oracle Apps 11i environment)
    srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
    ' p_user_id='||l_user_id||
    ' p_resp_id='||l_resp_id||
    ' p_appl_id='||l_appl_id||
    ' p_conc_request_id='||
    ' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
    ' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
    ' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
    ' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
    ' p_period_name='||l_period_name ||                                                                      
    ' server='||l_server
    It has been modified to the following for Reports 10g (i.e., Oracle Apps R12 environment)
    srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
    ' p_user_id='||l_user_id||
    ' p_resp_id='||l_resp_id||
    ' p_appl_id='||l_appl_id||
    ' p_conc_request_id='||
    ' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
    ' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
    ' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
    ' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
    ' p_period_name='||l_period_name
    );

    Thank you for your reply.
    Yes, it's done using MOD-PLSQL version 10.1.2.0.2.
    I did as you said: compared the 2 generated HTML files. It's not that it doesn't generate all tags. It generates all tags but some of them are different, that is it screws them up.
    Here it is some example code.
    For example, in 9i I have the following code:
    div id=div_plus_GENERALE style="cursor:hand; display:none;"
    <td> width=8 </td>
    <td id=butt align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';
    "onClick="if (butt_clicked) butt_clicked.style.cssText=restore_butt_style;
    butt_clicked=this; restore_butt_style=butt_off_lit;
    this.style.cssText=butt_on_lit;
    var x = document.getElementById('Freccia_' + freccia_old);
    x.style.display = 'none';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.style.display='block';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    In 10g the HTML code looks like this:
    div id=div_plus_GENERALE style="cursor:hand;"
    <td width=8> </td>
    <td align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';">
    <a href="sitointer.anagrafica.anagrafica_cliente_punto target="frameCenter"
    onClick="var x = document.getElementById('Freccia_' + freccia_old);
    x.Style.visibility='hidden';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.Style.visibility='visible';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</a></td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    At this point I don't know what should I investigate next.
    Thank you very much.
    Daniela

  • Forms 6i & SRW.Run_Report does not work on 10g client

    Hello Sir/Madam,
    I'm using 10g client with Forms & Reports 6i.
    FORMS 6i error => for some reason this combination is prompting FRM-10102 & FRM-40039 errors
    Attempted so far => attached the library, complied, it compiles ok, but somehow loses the library file at runtime
    Reports 6i issue => for Reports seems like it does not recognize SRW.Run_report built-in
    Attempted to run without "srw.run_report" it works..
    Please help me understand if any necessary "*.dll" files are missing? if so what might that be?
    Regards,
    Vani Sonti

    When you install Forms and Reports 6i, the correct Oracle client (8) is installed. I don't know what you did exactly, but you shouldn't try to change that.
    You can install the 10g client, but in a separate Oracle home. This way Forms and Reports still use the 8 client.
    FRM-10102 & FRM-40039 errorsThat looks like a problem in your forms60_path registry setting.

  • SRW.USER_EXIT('FND SRWINIT')  not working

    Hi
    Instance : R12.1.3, SRW.USER_EXIT('FND SRWINIT') is not working .
    the org context is not set when calling SRW.USER_EXIT('FND SRWINIT') from Before Report Trigger.
    Pls advice.
    Regards
    Yram

    Pl see if MOS Doc 420787.1 (Oracle Applications Multiple Organizations Access Control for Custom Code) can help
    HTH
    Srini

  • Format Trigger not working in 10g Report.

    I have a report with two eclipses
    (*) Debit (*) Credit . Please note that the two asterics denotes eclipses.
    I have a format triggers on these eclipses based on the database item Debit_credit.
    IF :debit_credit = 'CREDIT' THEN
    RETURN FALSE;
    ELSE
    RETURN TRUE;
    End if;
    and vis-visa. However the format trigger is not working. Regardless of the value of
    debit_credit. I even created a frame around these eclipses and put my format trigger all to no avail. Please help.

    Create a boilerplate text in your repeating frame (get rid of the field :debit_credit from your layout, but leave it in your query). I created the boilerplate field B_1. My format trigger looks like:
    function B_1FormatTrigger return boolean is
    begin
      if upper(:debit_credit) = 'CREDIT' then
           srw.set_field(0, to_char('(*) CREDIT'));
       else srw.set_field(0, to_char('(*) DEBIT'));
      end if;
      return (TRUE);
    end;I hope I understood your question OK...I am not sure what an eclipses is?

  • In Barcodesample reports are not working REP-1401: 'cf_1formula': Fatal P

    In windows its barcodesample is working fine.(all the barcode constants)
    In linux
    1.I have set the CLASSPATH in reports.sh
    2.and I also added the classPath value in <engineId...> tag in the reportservername.confg file.
    3.And I restart the report server as well as application server also. still I am getting the following error messages.
    REP-1401: 'cf_1formula': Fatal PL/SQL error occurred.
    ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
    In windows I followed the same steps its working fine.But Linux its not working any idea.!!! Its really urgent....
    Thanks,
    Natarajan.U
    Mail:[email protected]

    I pretty sure that the problem is the BarcodeMaker.java class in the oraclebarcode.jar. I got the barcode example to work locally (on Windows XP) in reports builder, but I couldn't run it in our webApp on a Solaris appServer. However, I was actually just doing the barcode example to learn how to display gantt charts in a report. So I wrote a simple java class called GantChartTest that uses the JFreeChart API to create a gantt chart as a jpg. I followed the bar code example almost exactly and my gantt charts did show up on the Solaris appServer. Here's my imagefilename function:
    function ImageFilenameFormula return VarChar2 is
    myFileName varchar2(500);
    result varchar2(500);
    thePhase VarChar2(50) := :phase;
    estStartDate VarChar2(50) := :est_start_date;
    estEndDate VarChar2(50) := :est_end_date;
    wipActualStartDate VarChar2(50) := :wip_actual_start_date;
    wipActualEndDate VarChar2(50) := :wip_actual_end_date;
    begin
         myFileName := srw.create_temporary_filename;
         GantChartTest.createGanttChart(globals.bcobj, thePhase, estStartDate, estEndDate, wipActualStartDate, wipActualEndDate, myFileName);
         return(myFileName);
    end;

  • Trigger - After Report Not working.

    Hai,
    Below is the coding written on the after report trigger for inserting values in a table but it not working,
    even srw.message put and checked but not functioning at all...
    what might be the problem...
    Thanks in Advance...
    function AfterReport return boolean is
    begin
         srw.message(100,'Hai');
    if (:total_credit) is not null then
         insert into opcl (fiscal_yr_cd,Period_no,Col1,Col2,Col3,Col4,Col5,Col6)
         Values (:P_Fiscal_yr,:P_Period,nvl(:total_credit,0), nvl(:total_cess_cf,0),
         nvl(:total_sec_cess_cf,0), nvl(:cf_tot_serv_tax1,0), nvl(:cf_tot_serv_tax2,0),
         nvl(:cf_tot_serv_tax3,0));
    commit;      
    end if;      
    return (TRUE);
    end;

    How are you running the report? Not in the preview mode in builder I hope, because that won't fire the after report trigger.
    "The After Report trigger fires after you exit the *Runtime Previewer*, or after *report output is sent to a specified destination*..."

  • Profile Manager not working at all, psql cannot connect to server??

    Upgraded existing system to Mavericks. Everything was running fine with Mountain Lion, everything fine on my test server too. After upgrade to Server 3.0, Profile Manager does not work. It cannot be configured.
    After reading through posts here and trying their suggestions I find that psql cannot connect to the server and get this error at every turn.
    psql: could not connect to server: No such file or directory
              Is the server running locally and accepting
              connections on Unix domain socket "/Library/Server/ProfileManager/Config/var/PostgreSQL/.s.PGSQL.5432"?
    Activity monitor shows it's running, also checked network utility to make sure I could get a connection through 127.0.0.1 on port 5432. It's good too.
    Also in the migration_tool.log file the last entry backs up this error.
    STDERR  | psql: could not connect to server: No such file or directory
                |           Is the server running locally and accepting
                |           connections on Unix domain socket "/Library/Server/ProfileManager/Config/var/PostgreSQL/.s.PGSQL.5432"?
    Where do I start? I think getting psql working is a big first step....

    Thanks Tim,
    I manage several different systems so I started comparing the one that doesn't work to one that does work.
    On the one that's malfunctioning, this is a message I see often:
    Is the server running locally and accepting
              connections on Unix domain socket "/Library/Server/ProfileManager/Config/var/PostgreSQL/.s.PGSQL.5432"?
    So I checked to see what's in the directory /Library/Server/ProfileManager/Config/var/PostgreSQL/ and got this result.
    sudo ls -la /Library/Server/ProfileManager/Config/var/PostgreSQL/
    total 0
    drwxr-xr-x  2 _devicemgr  _devicemgr   68 Dec  4 09:31 .
    drwxr-xr-x  3 _devicemgr  _devicemgr  102 Nov 13 06:13 ..
    An Obviously empty directory.
    Now on the server that's working this is what I get.
    sudo ls -la /Library/Server/ProfileManager/Config/var/PostgreSQL/
    Password:
    total 16
    drwxr-xr-x  6 _devicemgr  _devicemgr  204 Nov 22 17:47 .
    drwxr-xr-x  8 _devicemgr  _devicemgr  272 Nov 22 17:48 ..
    srwxrwx---  1 _devicemgr  _devicemgr    0 Dec  4 09:20 .s.PGSQL.5432
    -rw-------  1 _devicemgr  _devicemgr  139 Dec  4 09:20 .s.PGSQL.5432.lock
    srw-rw-rw-  1 _devicemgr  _devicemgr    0 Nov 22 17:47 .xpg.skt
    lrwxr-xr-x  1 _devicemgr  _devicemgr    3 Nov 22 17:47 .xpg.skt.lock -> 164
    Obviously something is missing on the one that's malfunctioning.
    I think that pgsql isn't running correctly and like you said Apple moved some things and we don't know where all of them went.
    Any suggestions anybody?

  • SRW.SET_FORMAT_MASK('NNNNNNNNNNNPR');

    i user SRW.SET_FORMAT_MASK('NNNNNNNNNNNPR'); for format the number in report,
    the result must me like <1000> for -1000 but when i use SRW.SET_FORMAT_MASK('NNNNNNNNNNNPR'); package the result be like >1000<

    You may be right. However I checked this as well and the legnth was 10 in the database (pre_val_amt = number(12,2)) and the other field that is not giving me the issue has the same length but it generates exact output.
    Any other clues?

  • SRW.SET_FORMAT_MASK

    i user SRW.SET_FORMAT_MASK('NNNNNNNNNNNPR'); for format the number in report,
    the result must me like <1000> for -1000 but when i use SRW.SET_FORMAT_MASK('NNNNNNNNNNNPR'); package the result be like >1000<

    If you want to display 4 decimal places you need to set decimalDigit="4". Also, make sure nothing is happening to the value before your graph gets it that would cause it not to display correctly.
    Here is what the DTD for graphs looks like for the ViewFormat element:
    <!-- ViewFormat specifies number formatting-->
       <!ELEMENT ViewFormat EMPTY >
       <!-- ViewFormat attributes
       numberType: format numbers as currency or percent?
       thousandSeparator: character for separating thousands
       decimalSeparator: character for separating whole number from decimal
       currencySymbol: currency symbol; numberType must be NUMTYPE_CURRENCY
       leadingZero: display leading zeros?
       decimalDigit: number of decimal digits to display
       posNumFmt: format for positive numbers
       negNumFmt: format for negative numbers
       posCurFmt: format for positive currency
       negCurFmt: format for negative currency
       scaleFactor: how much to scale (abbreviate) numbers
       scaleDownThousands: character(s) to use when numbers represent thousands
       scaleDownMillions: character(s) to use when numbers represent millions
       scaleDownBillions: character(s) to use when numbers represent billions
       scaleDownTrillions: character(s) to use when numbers represent trillions
       scaleDownQuadrillions: character(s) to use when numbers represent
            quadrillions
       javaDateFormat: Java date format
       oracleDateFormat: Oracle date format
    "used" attributes specify whether one of the above properties has
       been explicitly set; used for merging when using rules
       -->You would put this inside your X or Y axis element like:
    <Y1Axis lineWidth="1">
    <ViewFormat decimalDigit="4" decimalSeparator="." decimalDigitUsed="true" decimalSeparatorUsed="true"/>
    </Y1Axis>I don't see your X axis anywhere...maybe it it your "O1Axis" but I don't see that either, I only see "O1Title","O1TickLabel", etc.

  • Not work tablet UI on Prestigio 5080 PRO tablet

    I read that browser.ui.layout.tablet = "1" can fix this problem. But it not works. I can work only in pnone interface that is not good for my 8'' tablet.

    Would it be possible for you to share the problematic pdf and OS information  with us at [email protected] so that we may investigate?
    Thanks,
    Adobe Reader Team

  • Why self-defined access sequences of free goods can not work?

    Hi gurus,
    I have maintained access sequences of free goods self-defined.but when i creat the SO it does not work!
    when i used the standard access sequences ,it is OK .
    Can anybody tell me why?
    thanks in advance

    Dear Sandy,
    Go to V/N1 transaction select your self defined access sequence then go in to the accesses and fields and check all fields are activated.
    Make sure that these fields are flowing in your sales order.
    I hope this will help you,
    Regards,
    Murali.

Maybe you are looking for

  • Recorded Text Entries are displayed unclean in PDF Output

    I'm creating currently a screencast with Captivate 7. Within this screencast, I have to type an adress into the adress bar of Internet Explorer. Captivate records this entry automatically in Full Motion, this works good. But I had to note, that the o

  • How to determine J2EE patch level

    If I go to the CMD prompt running the Dispatcher, I can enter "version" and the > prompt and get the following: SAP J2EE Engine Version 6.20 PatchLevel 78993.20 How does this patch level translate to patch levels 6 throuch 32 on service.sap.com/patch

  • Connectivity Cable Driver – Error 1714

    What version of Windows is being used? XP prof. What Service Pack is installed? SP2 What version of PC Suite is installed? The last one from the Internet What is the connection method, cable, bluetooth or IR? Cable Hi, I have updated my PC Suite with

  • BSOD Caused on Windows 7 64-bit while watching Netflix Instant in Firefox 4.0

    Starting with the latest version of Firefox 4 - I'm getting BSoD's in Windows 7 64-bit SP1 while watching Netflix Instant. My system will crash with a DirectX DLL file being labelled as the culprit.

  • Deleting Songs with Exclamation Mark (!) in Bulk

    I have hundreds of songs, all (I think) duplicates that have an exclamation mark in the left most column. All these need to be deleted - is there a quick way of doing this or do they all have to be done manually. I can't work out how to order the fir