Tick labels format in a dynamicaly generated graphic

Hello all,
I have a form in which the user select some parameters for the graphics.
I have a grafic.ogd file which has 4 templates, parameters and procedures.
Dependending on the selection in the form i drow the graphic dynamicaly with
the following procedure:
default_format='999,999,999,999';
the_template := og_get_template(:template);
qtype := OG_Sql_Qtype;
qsource := :sqlquery;
the_query := OG_Make_Query(Qtype, qsource);
OG_Set_Name(the_query, 'q');
--OG_Execute_Query(Query);
/* set the name of the chart */
emp_chart.chart_caob.name := 'achart';
/* set the size of the plot frame */
emp_chart.chart_caoc.frame.x := 1*OG_INCH;
emp_chart.chart_caoc.frame.y := .4*OG_INCH;
emp_chart.chart_caoc.frame.height := 3*OG_INCH;
emp_chart.chart_caoc.frame.width := 3*OG_INCH;
/* set the template and query to use */
emp_chart.chart_caoc.template := the_template;
emp_chart.chart_caoc.query := the_query;
/* set the masks for all the above */
emp_chart.chart_caob.mask := OG_NAME_GENERICA;
emp_chart.chart_caog.mask := OG_NONE_GROUPA;
emp_chart.chart_caoc.mask := OG_ALL_CHARTA;
-- emp_chart.chart_caoc.mask := OG_TITLE_CHARTA;
--emp_chart.chart_caoc.title := 'bla bla blA';
/* make the chart */
the_chart := og_make(emp_chart);
indep_field.field_type := OG_INDEPENDENT;
indep_field.colname := returnalias(1,:coloane);
indep_field.ftname := 'field_tmp';
/* insert it into the chart in the 0th position */
og_insert_field(the_chart, indep_field, 0);
i:=2;
while i<=:nrcol loop
dep_field.field_type := OG_DEPENDENT;
dep_field.colname := returnalias(i,:coloane);
dep_field.ftname := 'field_tmp';
/* insert it into the chart in the last position */
og_insert_field(the_chart, dep_field, OG_LAST);
i:=i+1;
end loop;
/* execute the query for the first time */
og_execute_query(the_query);
settitle(:titlu);
if length(:axaox) <> 0 then
setxlabel(:axaox);
end if;
if length(:axaoy) <> 0 then
setylabel(:axaoy);
end if;
if to_number(:maxs) <> 0 or to_number(:step) <> 0 then
setscale(to_number(:mins), to_number(:step), to_number(:maxs));
end if;
/*acilea stabilim formatul de ticklabel*/
axis_y := og_get_axis(the_template, og_y1_axis);
axis_x := og_get_axis(the_template, og_x_axis);
og_set_disc_numfmt(axis_y, default_format);
og_set_disc_numfmt(axis_x, default_format);
/* update the chart so the new field and query
** information will take effect */
og_update_chart(the_chart, OG_ALL_CHUPDA);
On the axis i have 500,000 and 1,000,000 tick labels. 500,000 is shown ok
but 1,000,000 is something like that ########.
It looks like og_set_disc_numfmt is not executed.
If someone knows what's wrong please tell me!
Thanx
Costel Cirnmaru
3S Computers & Communication

Hello David,
The reason for this problem is probably related to the FlateDecode compression described  in SAP Note 843480 (PDF conversion: Compression of bitmaps and TrueType fonts).
Try switching off the usage of FlateDecode compression again via report RSTXPDF3 as described in Note #843480.
It is a little confusing. The option 'FLATE_COMPR_OFF' needs to be set to 'On' to turn off the FlateDecode compression.
To set this run as follows:
   se38 -> RSTXPDF3 -> enter 'FLATE_COMPR_OFF' in the 'Name' field
         -> Select 'Change Settings' radio button
You will get a pop-up 'Do not use flat compression'.
Select the 'on' button.
After this create a new PDF and check if the problem is resovled.
Regards,
Aidan

Similar Messages

  • 1) How to Boot from SAN for T4-1 Server with Solaris 11.1 OS on the disk? 2) How to SMI Label/Format a disk while OS Installation in Solaris 11.1?

    FYI....boot from SAN is required for physical server (T4-1) (not OVM).
    1) How to Boot from SAN for T4-1 Server with Solaris 11.1 OS on the disk?
    The SAN disks allocated are visible in ok prompt. below is the output.
    (0) ok show—disks
    a) /pci@400/pci@2/pci@0/pci@f/pci@0/usb@0, 2/hub@2/hub@3/storage@2/disk
    b) /pci@400/pci@2/pci@0/pci€a/SUNW, ezalxs@0, l/fp@0, 0/disk
    e) /pci@400/pci@2/pci@0/pci@a/SUNW, ealxs@0/fp@0, 0/disk
    d) /pci@400/pci@2/pci@0/pci@8/SUNW, emlxs@0, l/fp@0, 0/disk
    e) /pci@400/pci@2/pci@0/pci@8/SUNW,enlxs@0/fp@0,0/disk
    f) /pci@400/pci@2/pci@0/pci@4/scsi@0/disk
    g) /pci@400/pci@1/pci@0/pci@4/scsi@0/disk
    h) /iscsi—hba/disk
    q) NO SELECTION
    valid choice: a. . .h, q to quit c
    /pci@400/pci@2/pci@0/pci@a/SUNW, ealxs@0/fp@0, 0/disk has been selected.
    Type “Y ( Control—Y ) to insert it in the command line.
    e.g. ok nvalias mydev “Y
    for creating devalias mydev for /pci@400/pci@2/pci@0/pci@a/SUNW,emlxs@0/fp@0,0/disk
    (0) ok set—sfs—boot
    set—sfs—boot ?
    We tried selecting a disk and applying sfs-boot at ok prompt.
    Can you please help me providing detailed pre-requesites/steps/procedure to implement this and to start boot from SAN.
    2) How to SMI Label/Format a disk while OS Installation in Solaris 11.1?
    As we know that ZFS is the default filesystem in Solaris 11.
    We have seen in the Oracle documentation that for rpool below are recommended:
    - A disk that is intended for a ZFS root pool must be created with an SMI label, not an EFI label.
    - Create root pools with slices by using the s* identifier.
    - ZFS applies an EFI label when you create a storage pool with whole disks.
    - In general, you should create a disk slice with the bulk of disk space in slice 0.
    I have seen the solution that using format -e, we change the labelling but all the data will be lost, whats the way to apply a SMI Label/Format on a rpool disks while OS Installation itself.
    Please provide me the steps to SMI Label a disk while installaing Solaris 11.1 OS.

    Oracle recommends below things on rpool: (thats reason wanted to apply SMI Label)
    I have seen in the Oracle documentation that for rpool below are recommended:
    - A disk that is intended for a ZFS root pool must be created with an SMI label, not an EFI label.
    - Create root pools with slices by using the s* identifier.
    - ZFS applies an EFI label when you create a storage pool with whole disks.
    - In general, you should create a disk slice with the bulk of disk space in slice 0.

  • Format of CSV file generated through iBot

    What is the default format of csv file generated through iBot (UNICODE / UTF) ?
    How can we configure a single iBot to generate CSVs, for example, in UTF format instead of UNICODE (assuming UNICODE is default).
    -Jimit

    Use this
    https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=324436281886916&type=DOCUMENT&id=1459947.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=130oxyc5cv_71
    Content:
    Goal
    Currently the CSV format in Agents always delivers the report results in tab delimited CSV. Is there a setting that can make the report result in a comma delimited CSV format when the reports are setup via Agents/iBots?
    Fix
    There is no setting that would make CSV output from an iBot be comma delimited as opposed to the tab delimited output from the web UI.
    There is an enhancement request for this functionality. for more information, see bug 13802667 - COMMA DELIMITED CSV FORMAT FOR AGENTS/IBOTS has been logged to include this feature in future release.
    As a work-around, you can to run a custom script from an Agent to convert tabs to commas. See chapter 4 (http://docs.oracle.com/cd/E21764_01/doc.1111/e18562/schedjobscripts.htm#BABGFBBD) of Oracle® Fusion Middleware Scheduling Jobs Guide for Oracle Business Intelligence Enterprise Edition 11g Release 1 (11.1.1) Part Number E18562-01 for more information on writing custom scripts.
    If helps pls mark

  • How to use custom label formats to display currency and percentage

    Hi There,
    I need a pie chart to display both currency and percentage. I have the cell format editor open for custom cell formats (from the pie chart label format menu) but am not sure how to write the expression.
    I've tried something like this but get an error:
    $ #,###  -  % #,###
    How can I display both currency and percentage for the same label?
    Any pointers in the right direction would be much appreciated.
    Cheers
    Ben

    labels built into Keynote can be displayed as percentage or value, not both
    The choice is made in:   Inspector > chart > series > data point settings
    the work around is to manually add text boxes with the currancy value entered in each box, as in $2.00

  • How do I retain the formatting (i.e. tables or graphics) while saving a pdf as an html?

    How do I retain the formatting (i.e. tables or graphics) while saving a pdf as an html?

    Are the PDF files that you are attempting to Save As HTML tagged?

  • JSlider: how to change tick label font?

    Hi,
    does anyone know how to change the tick labels font of a jSlider?
    Thanks for your help,
    Elke

    Just made this up, seems to work    Dictionary d = mySlider.getLabelTable();
        Enumeration e = d.elements();
        while (e.hasMoreElements()) {
          Object o = e.nextElement();
          if (o instanceof JComponent) ((JComponent)o).setFont(new Font("Dialog", 0, 9));
        }

  • Possible to generate graphics dynamically using ABAP?

    Hello friends,
    It is possible to generate graphics dynamically using ABAP as programming language? In the same line like SVG (Scalable Vector Graphics) or ChartDirector?
    Output of this abap program should be a picture.
    Daniel

    Hi Daniel,
    Have a look at URL
    http://help.sap.com/saphelp_nw04/helpdata/en/0c/5c55a8d0a611d2963100a0c9308b1f/content.htm
    Also have a look at SGRB Package/deveoplment class.
    Thanks
    Lakshman
    Message was edited by: Lakshman Tandra

  • Resizing tick labels on a lineChart?

    I have an application that makes heavy use of lineCharts. It would nice if, when expanding the JavaFX scene window, the ticklabels on my chart also expanded - they don't. I don't see any way in the documentation of making this happen - or am I missing something?
    edited to add -
    and failing that, is there a way to tell when my lineChart - or it's stage - is resized? I could use that information to achieve my desired result.
    Edited by: 953258 on Sep 27, 2012 2:41 PM

    Listen to the charts layoutBounds property and size the tick label font when the bounds change.
    http://docs.oracle.com/javafx/2/api/javafx/scene/chart/Axis.html#tickLabelFontProperty
    http://docs.oracle.com/javafx/2/api/javafx/scene/Node.html#layoutBoundsProperty

  • Printer device group and a label format in SAP AII

    Hello @ all,
    I try to configure a SAP OER System with SAP AII. Now I should configure the label printing with the transaktion /AIN/ASGN_PRF_FORMAT. I must take a profile name, a printer device group and a label format. The problem is now, that I can't chose a printer device group and also I don't know the label format. Where can I adjust the printer device group and which label format must be in that field?
    Can anybody help me?
    Thank you.
    Peter

    Hi Peter,
    SAP AII sends the label format filename as part of the Command message xml to the printer during tag commissioning.
    I assume you have configured the label format filename for SAP_PRINT_PROFILE using transaction /AIN/ASGN_PRF_FORMAT - Assign Format to Printer and Profile
    Now you have to assign that profile to an ID type or GTIN, etc. using the menus under Profiles for Tag Commissioning and Label Printing.
    Once this configuration is done, the xml command message containing the element WriteTagData is sent to the printer RFC destination configured against the Device controller as an HTTP message.
    This command message will contain the label format and  field names - value pairs as per the SAP_PRINT_PROFILE.

  • Data label formatting for SVG charts seems to have a bug in 1.6.

    Could you take a look at
    http://htmldb.oracle.com/pls/otn/f?p=20794:1
    The first chart does not have a format mask and the chart works correctly. The 2nd chart is an exact copy of the first chart, but has a Data Label Format mask. I have tried several different format masks and they all cause the chart to only display one bar.
    By the way, this worked correctly in 1.4. I discovered it on moving an application to 1.6.
    Thanks

    Doyle,
    you can work around the problem by getting rid of the data format in the page definition and applying your own formatting using the TO_CHAR function.
    You could even make it dynamic by storing the data format in a page item, picking it from a static LOV for instance.
    That would allow a user to choose the preferred one.
    If you don't want to give the user this flexibility, then you can store the mask in a hidden item, so that you can make the feature available at a later stage of development.
    Bye,
    Flavio

  • Set decimal tick label for number axis

    Hi everyone,
    In my chart, the number axis tick label is always like float number. I need an decimal number tick label. Because I use auto-range on this axis, i think this
    NumberAxis(double lowerBound, double upperBound, double tickUnit) is not good for me.
    Also, I have try setTickLabelFormatter on FX example, but for me, it seems like useful for set prefix and suffix. Can someone give me solution for this problem
    Edited by: pirent420 on 19:08 17-09-2012: add tag

    It doesn't work properly.
    You can look the link here:
    Before I use yours: before
    After I use yours: After
    It convert all number object to integer. So if my chart has 4 tick label like: 1.0, 1.25, 1.5 and 1.75, it conver to 1, 1, 1 and 1. It not what I looking for. If axis has 3 value: 1,2 and 3, I just want it present only 3 tick labels, not expand more tick label like 1.25, 1.5, 1.75 ....

  • LVFPGA - Sampling Probe Watch Window - Label format as Enum

    Hi,
    Although I doubt the answer is yes, I'm still gonna ask you guys
    Is it possible, when using Sampling Probes when simulating FPGA code on the Dev computer to display information as an Enum (obviously, I'm probing an enum). There are three different "Label formats" called Decimal, Hexadecimal, Binary, but no way I guess to display as Enum.
    Would save part of my brain at the end of the day  
    Thanks for replies and have a good weekend
    Mathieu Steiner, Test System Engineer, Safran Engineering
    CLD, ISTQB

    Hi Mathieu
    Unfortunately at this time values can only be displayed as numeric values. This was a limitation of the Digital Waveform Graph used for the dialog we were aware of when the feature was added, but was not something we could deliver a solution to on that release's timeframe.
    Richard Bell
    [email protected]

  • Auto Tick Label Rotate, No Stagger

    Is it possible to have the O1 tick labels of a bar chart not stagger the labels when overlap is detected and instead move directly to label rotation? I had thought this might do the trick:
    <O1TickLabel tickLabelStaggered="false" automaticRotation="AR_HORIZ_ROTATE_90"/>
    It does not. It initially staggers when overlap is detected before moving to rotation when labels are cluttered enough that staggering no longer solves overlapping.
    I realize I can use this to have rotation used all the time:
    <O1TickLabel textRotation="TR_HORIZ_ROTATE_90" automaticRotation="AR_NO_ROTATE">
    But I like the idea of showing the labels straight across if they are sparse enough to fit.

    Test Screen Name, indeed it will be impossible to provide a fool-proof solution for innumerable printer/Adobe Reader combinations.
    I will be providing ready to print label sheets (not templates) on my web site. I reckon the users will be keen, but mostly have no IT skills.
    The sample sheet is a great idea as this would help reduce ink consumption on the test prints!
    I am keen for this to become a success and I would love to provide screenshots of printer settings.
    I run Linux on all my machines, so won't be able to obtain screenshots with any ease.
    I am working on the assumption that that 95% of PDF files are opened with Adobe Reader on Mac/Windows. Have you got any idea which are the nost common versions in the field now?

  • Line Graph x axis tick label date format

    Hi to all,
    how can i format the date of the x axis label of a line graph?
    by now the date label is shown with a timestamp, e.g. 01.12.11 00:00.
    How can i change this to a simple date like 01.12.11?
    Please help. Thank you.
    Best regards
    Gunnar

    I would think that the datatype of the date attribute is a TimeStamp ? If yes changing it should help ..

  • Possible to generate graphics within smart forms dynamically like SVG ?

    Hello,
    I would like to generate a graphic for a smart form. This graphic will only be needed in the smart form. Therefore my question:
    It is <b>possible to generate dynamically graphics using ABAP</b> as programming language? In the same line like SVG (Scalable Vector Graphics) or ChartDirector? I know it works in many other programming languages.
    Smart forms can handle *.bmp and *.tif picutres. Therefore the output of this ABAP program should be a picutre within the format *.bmp and *.tif.
    Daniel

    Welcome to SDN,
    I am not sure whether you can use SVG in smart form, but certainly in ABAP yes. check out the following atricle for more info.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to generate and display svg graphics in abap,%20Part%201.article
    Regards
    Raja

Maybe you are looking for