Dynamic graphics
Hi all,
I tried to generate dynamic graphics by using 3D Dial Gauge. I set all the parameter based on the blogs " Get started with Dynamic Graphics in xMII 11.5..." but the needle of the image is not moved but my code is refresh the page every 1sec. please tell me how to generate gauge dynamically?
-murali
To have the image regenerated you will need to run the transaction again and refresh the html page. How are you doing this?
I would not recommend refreshing at a 1 sec interval. This would be too much work for the server and the client. Something greater than 30 secs would be more appropiate.
Regards,
Jamie
Similar Messages
-
I only see the image outline sometimes instead of the "dynamic graphics preview"?
I'm sure everyone who uses InDesign for any amount of time is aware of something I just recently found out is called the "dynamic graphics preview." [See Fig. 2, below]
The dynamic graphics preview is the whole image you temporarily see when your trying to crop, or position an image within a frame. It's the part of the image that falls outside of the frame. The parts of the image that fall outside of the image are temporarily "seen" transparently (faded), to indicate that those areas are not within the viewable area of the frame. You usually see this when you are trying to crop the image with the direct selection tool, after you click and hold on the image for a few seconds with the direct selection tool. The temporary transparent preview goes away once you decide on the position and let go of the mouse click.
So my issue is: when I click and hold, on certain images with the direct selection tool (white arrow) the dynamic graphics preview doesn't show up? All I see is the outline of the path of the image, with NO PREVIEW, or the outline of the shape (usually a rectangle), with NO PREVIEW.
For instance there was this one situation at work (where I work on catalogs) where the same image was copied six times, in order to make swatches, and when I clicked and held on those particular images the dynamic graphics preview would show, but not on the other images, even though they're the same image!? Meaning, the same exact image file, just copied six times.
So why can I see the temporary transparent preview for certain instances of the same image but not for others?
Has anyone else ever experienced this?
Again any answers are completely appreciated.
Fig. 1
Fig. 2Peter Spier wrote:
The first question would be does it work if you try again and wait a bit longer before moving the mouse?
Next, does it happen in more than this file?
Does it continue to happen if you restart the computer?
Does it happen if you use a ne user account?
– Nope. Tried that.
– It happens in other files as well. The situation is similar also, where one copy of the same file will show the dynamic graphic preview but the other copies will not.
– Yes, even after restart, it persists. It occured again today in fact.
– Yes. Even after I login in with a different account, I get the same issue. Others in my office have had the same issue. Can it be server related? Or permisions related? I don't see how that can be when it's the same exact file, and on one copy it works but on the others it doesn't.
..Makes no sense at all.
By the way this is all happening on CS 5.5 - version 7.5.2 [Fig. 3].
NOTE: The images above [Fig. 1-2] show CS 3 screen shots because they were made from my computer at home, which as far as I know don't have the same problem with the dynamic graphics preview (DGP). Those images are only there to help illustrate what the DGP is. All the issues with the DGP are occuring in CS 5.5.
Fig. 3 -
Hi All,
I have a mail form which has been created in transaction CRMD_EMAIL. I have been asked to enhance it with a dynamic graphic image.
There will be uploaded 1 image pr customer in transaction SE78.
And for each document I must find the corresponding image.
In normal smartform I can choose between 'Fixed value' and 'Dynamic field value' for graphichs name. And I can see that it works when I create a global variabel eg. 'TESTNAME' and assign it the value '123456'. if I then enter &TESTNAME& as dynamic graphic name, and test print it works fine and prints graphical image 123456.
But in with the mail forms in CRMD_EMAIL, this is not available. If I enter a variable the field disaperes and in test mode i get the error 'Graphic cannot be displayed' - This is identical to the error I get in smartforms if I enter a name that does not exist.
Does anybody knows if this is possible to do in mail forms. Or if I can use the smartforms instead of the Mail forms when working with campaigns.
Best regards
Dennis LybeckerHi Gregor,
Thanks for your quick response.
The document was ment to include a technical drawing regarding the specific installation for the customer/prospect.
It looks like we are going to include this drawing in a different document, which should be created in smartform.
If anybody come up with a way to do this - please let us all know.
Best regards
Dennis -
Background color change of dynamic graphic
hi ,
i am using 3D Gauge dynamic graphic i want to change image backgrond color from white to blue.
thanks in advance.
regards,
rohitYou can add a <rect> tag, see text in bold below ...
<?xml version="1.0" encoding="UTF-8"?><svg height="300" text-rendering="geometricPrecision" width="300">
<rect height="299" id="Background" width="299" x="0" y="0" style="fill:none;stroke:rgb(0,255,0);stroke-width:1" />
<defs>
<radialGradient cx="70%" cy="30%" fx="80%" fy="40%" gradientUnits="objectBoundingBox" id="black-white_1" r="150%" spreadMethod="pad">
<stop offset="100%" stop-color="rgb(180,180,180)" stop-opacity="1"/>
<stop offset="100%" stop-color="rgb(0,0,0)" stop-opacity="0"/>
</radialGradient>
</defs>
<ellipse cx="150" cy="150" fill="url(#black-white_1)" rx="140" ry="140" stroke="rgb(0,0,0)" stroke-width="1"/>
<ellipse cx="150" cy="150" fill="none" rx="140" ry="140" stroke="url(#black-white_1)" stroke-width="4"/>
<line fill="none" id="Needle" stroke="rgb(255,20,20)" stroke-linecap="round" stroke-width="5" transform="rotate(330 150 150)" x1="150" x2="150" y1="150" y2="260"/>
</svg>
Regards. -
Creating a Dynamic Node for a Dynamic Graphic - Tutorial
Hi everyone,
I'm sharing my first tutorial, hope it'll be helpful for you.
In the Layout tab, it's possible to create an UI element "Business Graphic". It's a very simple tool that only requires a context node with a category attribute (that means, the values that will appear in the 'x' axis) and one or more series (each one with a color, generally a numerical value). It's possible to add a label for each series for better understanding of the Graphic.
Although it's a very powerful tool, there are some problems when we must create a graphic with N series and different labels. If the graphic use an ALV or internal table to fetch data, during runtime we can have more or less series. The definition of a static node and generic series is not enough in this case. That's why I'd like to present you this little tutorial to create a dynamic node that fetchs a dynamic graph:
In the WDDOINIT or Event Handler method that starts the application (once the data is available) we should create the dynamic node in the following way:
DATA: lr_node_info TYPE REF TO if_wd_context_node_info,
lt_attributes TYPE cl_abap_structdescr=>component_table,
attribute LIKE LINE OF lt_attributes,
struct_type TYPE REF TO cl_abap_structdescr,
lo_dyn_node TYPE REF TO if_wd_context_node.
* Let's suppouse we can LOOP at the data table, so we can fetch the
* category data type (for example company name, month, year, ...)
* and each series with a numeric type
attribute-name = 'CATEGORY'.
attribute-type ?= cl_abap_datadescr=>describe_by_name( 'STRING' ).
INSERT attribute INTO TABLE lt_attributes.
attribute-name = 'SERIE1'.
attribute-type ?= cl_abap_datadescr=>describe_by_name( 'I' ).
INSERT attribute INTO TABLE lt_attributes.
attribute-name = 'SERIE2'.
attribute-type ?= cl_abap_datadescr=>describe_by_name( 'I' ).
INSERT attribute INTO TABLE lt_attributes.
* Once we have all the attributs for the node, we create a formal structure
struct_type = cl_abap_structdescr=>create( lt_attributes ).
* Now we can get the context information to add a new node
lr_node_info = wd_context->get_node_info( ).
* Create the node
lr_node_info = lr_node_info->add_new_child_node(
name = 'GRPH_DYN'
IS_MANDATORY = ABAP_false
IS_MULTIPLE = ABAP_true
STATIC_ELEMENT_RTTI = struct_type
IS_STATIC = ABAP_false ).
* Now we should populates the node, I'll create a hardcoded table,
* simulating the internal table that you should already have
TYPES: BEGIN OF tw_alv,
category TYPE string,
SERIE1 TYPE i,
SERIE2 TYPE i,
END OF tw_alv.
TYPES: tt_alv TYPE STANDARD TABLE OF tw_alv.
DATA: lw_alv TYPE tw_alv,
lt_alv TYPE tt_alv.
lw_alv-category = 'Alfa'.
lw_alv-serie1 = 3.
lw_alv-serie2 = 8.
APPEND lw_alv TO lt_alv.
lw_alv-category = 'Beta'.
lw_alv-serie1 = 4.
lw_alv-serie2 = 4.
APPEND lw_alv TO lt_alv.
lw_alv-category = 'Gamma'.
lw_alv-serie1 = 1.
lw_alv-serie2 = 3.
APPEND lw_alv TO lt_alv.
* Now let's call the recently created node and bind the lt_alv table.
* Get node from context
lo_dyn_node = wd_context->get_child_node( name = 'GRPH_DYN' ).
* Bind table with ALV Container
CALL METHOD lo_dyn_node->bind_table
EXPORTING
new_items = lt_alv.
* It's always good to check if the table was succesfully binded.
* I refresh the lt_alv table and get the values from the node for controlling
REFRESH lt_alv.
lo_dyn_node->get_static_attributes_table( IMPORTING table = lt_alv ).
There are other ways of adding a node structure in the method add_new_child_node, but it works for me only with STATIC_ELEMENT_RTTI. The node is now created and has the data required for the graphic. Now, we should go to WDDOONMODIFYVIEW, or save the target view as a parameter, to create the graphic, bind the category and series and show it on the screen.
DATA: lr_graph TYPE REF TO cl_wd_business_graphics,
lr_cat TYPE REF TO cl_wd_category,
lr_series1 TYPE REF TO cl_wd_simple_series,
lr_series2 TYPE REF TO cl_wd_simple_series,
lr_container TYPE REF TO cl_wd_uielement_container,
lr_flow TYPE REF TO cl_wd_flow_data.
* Get the root element from the Layout or the specific
* container you have created for the graphic
lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
* Creates a line busniess graph
lr_graph = cl_wd_business_graphics=>new_business_graphics(
BIND_SERIES_SOURCE = 'GRPH_DYN'
CHART_TYPE = cl_wd_business_graphics=>e_chart_type-lines
HEIGHT = 340
WIDTH = 750
ID = 'GRAPH' ).
* Create the flow data for the new UI Element business graphic
lr_flow = cl_wd_flow_data=>new_flow_data( element = lr_graph ).
* Set graph in the root container from the Layout tab
lr_container->add_child( lr_graph ).
* Bind the category from the dynamic node to the dynamic graphic
lr_cat = cl_wd_category=>new_category(
view = view
bind_description = 'GRPH_DYN.CATEGORY'
tooltip = 'Company Name' ).
lr_graph->set_category( lr_cat ).
* Bind the two series from the dynamic node to the dynamic graphic
lr_series1 = cl_wd_simple_series=>new_simple_series(
bind_value = 'GRPH_DYN.SERIE1'
label = 'Sales'
view = view
tooltip = 'Average Sales' ).
lr_graph->add_series( lr_series1 ).
lr_series2 = cl_wd_simple_series=>new_simple_series(
bind_value = 'GRPH_DYN.SERIE2'
label = 'Purchases'
view = view
tooltip = 'Average Purchases' ).
lr_graph->add_series( lr_series2 ).
Finally we have created our business graphic. Test the application and you'll see something like the attached image.
Hope you'll find it useful.
Daniel Monteros.Hi,
http://htmldb.oracle.com/pls/otn/f?p=26372
then ApEx>Trees and pick a level.
Use Help for more information.
I you think that tree could help I will put more explanation into help page.
Konstantin -
Dynamic graphics in Smart Forms
Dear All:
I have a requirement in my SMARTFORM page development that i have to place a dynamic graphics and printout.
Does anyone know how to control the dynamic graphics in Smart Forms?
Any help whould be highly appreciated.
Many thanks in advance.
Regards,
ElvisHello,
You can call the graphic dynamically as per your requirement by calling the Graphic dynamically, For ex: Name of the graphic: &WA_ITAB-FIELD1& ( which is a field of IntTab ITAB taken into Work area WA_ITAB ).
Also please note that you cannot print / overlay text in a diamond, perhaps you can have a work around to print the graphic and beside the graphic you print the Customer short name. for this you can either define a table / template.
Hope this helps you.
Best Regards,Murugesh AS -
Xacute query output in dynamic graphics
Hi all,
i have a question can i create dynamic graphics using xacute query , if yes please tell me hint or suggestion how to do this .
thanks in advance
Regards,
Praveen SharmaPraveen,
See the xMII help documentation first.
In dynamic graphics load your SVG, create links/calcualted values
Use BLS to generate the image, store to Web Root
Reference image on your web page.
Sam -
Problem in displaying applet by using dynamic graphics
Hi,
I followed one document for using dynamic graphics editor, the url is
/people/abesh.bhattacharjee/blog/2007/02/27/get-started-with-dynamic-graphics-in-xmii-115 by Abesh Bhattacharjee.
The steps are as follows:
1). Create the tag query
2). Preparing the 3DDialGauge Object
3). Creating the BLS Transaction
4). Creating an Xacute Query for the BLS Transaction
5). Creating the HTML Page with help of applet.
In this HTML page we get that image and also 2 buttons.
Finally we have to get the object designed in step 2 above and it has to change dynamically and refresh the image by pressing one buttons and the other button is to stop the refresh.
Now i am getting the image and 2 buttons as output of that HTML page but the problem is the image is getting refreshed continously without getting proper display and i am pressing the buttons it is not stopping the refresh and the warning message i am getting is
document.TransFanSpeed is null or not an object
and the object is not changing according to the dynamic value please can anyone help me in resolving this problem.Hi shyam,
The html file is as follows:
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../../../ServletExec AS/se-xMII/webapps/default/Lighthammer/Stylesheets/lighthammer.css"><br />
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<APPLET NAME="TransFanSpeed" WIDTH="300" HEIGHT="300" CODE="iCommand" CODEBASE="../Classes" ARCHIVE="illum8.zip" MAYSCRIPT><br />
<PARAM NAME="QueryTemplate" VALUE="C:/Lighthammer/Illuminator/Templates/Training/SVGexampleXacutequery"><br />
</APPLET><br />
</head>
<body>
<img src="../../Fan1.jpg" name="refresh"><p></p>
<button onclick="javascript:doit()">Do it !!!</button>
<button onclick="javascript:clearit()">Clear Timeout</button>
<script language="javascript">
var Time;
var imagename;
var tmp;
function doit(){
executeQry();
imagename = "Fan1.jpg";
tmp = new Date();
tmp = "?"+tmp.getTime();
document.images["refresh"].src = imagename+tmp;
Time = setTimeout("doit()", 1000);
function clearit(){
clearTimeout(Time);
function executeQry(){
document.TransFanSpeed.executeCommand();
</script>
</body>
</html>
and the iCommand.java is nothing but internal one there i didn't written any code
Message was edited by:
RAJESH PERLA -
Dynamic Graphics - Image not clear in HTML page
Hi,
i tried to generate the image from Dynamic Graphics( 3D Dial gauge). It creates successfully but when i show this image in HTML page it is not clear i.e values and arc are showing like points and words in description also shows as splited. How to avoid this? How to display images clearly?
regards
senthilI don't know if this will help, but you may want to try rendering the image larger than the size you will display on the page.
If you do a search in the forum for 'svg' you might find some usefull threads. -
Execute Command "Update Data" of dynamic graphic xls with Java?
hi, i want to write datas in tthe xls sheet, i have in other sheet from same file xls a dynamic graphic, and i want to update de graphic with the new datas writed, how can to execute the command "Update Data" in the dynamic graphi sheet??
tnk for your help.
HLYou missed a space in the string after your WHERE clause.
put an extra space after the 'WHERE' in your execute immediate statement.
EXECUTE IMMEDIATE
'UPDATE '|| affectedtable|| ' SET '|| affectedcol || '= :nvalue'||
' WHERE '|| affectedcol || '= :ovalue'
USING newvalue, oldvalue ; -
How to create dynamic graphics ?
Hi,
I'm new to JDeveloper, and I'm trying to make the following :
I have a DB with a table like this, and I also created the ADF read only form :
(inclusive navigation buttons)
LICENSE_ID / TIME / VALUE
A / 8.00h / 80%
A / 9.00h / 92%
A / 10.00h / 98%
B / 15.00h / 66%
B / 16.00h / 77%
C / 0.00h / 10%
C / 1.00h / 25%
C / 2.00h / 50%
I would like to create a dynamical graphic like this :
If I click the first line (A - 8.00h - 80%) I would like to see a graphic
with an X-axis containing ALL times from LICENSE_ID = A and on the
Y-axis ALL values of the same LICENSE_ID.
If I click the second or third line, I should still see the same graphic.
If I click the 4th line, I should see the graph (line or bar) with LICENSE_ID = B.
Anyone who can tell me how to do this ?
Greetings,
Kris.
Edited by: user12380751 on Dec 23, 2009 2:47 AMYou can enable single selection for your read only table, create a graph component and set its partial trigger to the table component. See this tutorial for guidance.
~K -
Lenovo Z575 AMD Dynamic Graphics
Alright, I have been reading through the wiki and the forums but haven't come across anything about the new AMD Dynamic Graphics system. It seems to be very similar to Nvidia Optimus, but still different. Regardless, I can get my notebook to use the integrated graphics by adjusting the BIOS settings from "Dynamic" to "UMA". Unfortunately, I am having trouble going the other way. Even if I turn the system to "Dynamic", Arch still loads the default card from what I can tell. Does anyone have a definitive way that I can check this as well as a way to allow me to enable the discrete graphics when needed, even if I do have to reboot?
Thanks,
Bryce
Last edited by LWhitson2 (2012-03-26 01:51:37)its normal because we have dual video card by defaults its intel and when an apps require the high performance vcard its switches to it
-
Dynamic Graphics in JDeveloper
Does anyone know of a book or on-line tutorial that addresses building dynamic graphics in JDeveloper (I need to draw circles, rectangles, connecting lines, etc.).
Each shape and its text are controlled by the results of a SQL query.
Im having trouble finding a single source (tutorial or example) of graphical drawing within JDeveloper on the Oracle technical web site.
I would appreciate any input.
Thanks.
JohnI also wanted help on this especially in charts like gant charts for scheduling, like what Graphic builder used to do. Getting Data from the database
-
MII 12.1 Dynamic Graphics
Hi,
I am trying to create a simple SVG image in MII 12.1. Adding one Animation rendering Action with 3D Guage and an Image Saver Action.
while executing , It is showing error as
[ERROR] Target Animated Object Renderer is not valid
[WARN] [Animation_Renderer_0] Skipping execution of output links due to action failure.
[ERROR] ImageSaver: Encoded Image Length is 0
[WARN] [Image_Saver_0] Skipping execution of output links due to action failure.
And the same transaction whn tested in a different MII 12.1 Server it is working fine.
Is there any other configuration to be done on the MII Server before accessing Dynamic Graphics.
Kindly help
Regards
MuzammilMuzammil,
looks that your Graphic is wrong. Copy the source from your other machine and place it on the same position.
Try again and let us know the result.
If I remember right, they fixed some issue with the Animation renderer action in SP4 of MII 12.1.
RB
Pedro Iglesias
Edited by: Pedro Iglesias on Dec 7, 2009 12:53 PM -
Hi All,
I have a requirment of displaying drawing in my smartform.But this drawing will be decided only during runtimme. I have used the third option 'DETERMINE GRAPHIC DYNAMICALLY'.I have used a variable 'bcol 'in form interface and through my driver program i am passing the name of the graphic stored in se78.Now i am passing it in the third option as '&bcol&'.
I am getting the message that 'GRAPHIC NOT FOUND'.
Please let me know that i am doing correct or i am missing something.Also is there some other way to call graphic dynamically stored in se78 in smartform.
Thanks in advance.
Binod PrakashI think you have selected the variable for choosing between BMON and BCOL (monochrome and color graphic).
According to what you say (3000 graphics), I guess you have made a confusion.
To select dynamically the graphic name, you must first click the "triangle" button at the right of the NAME field (first line). You may not see immediately this button as it may be hidden by the graphical layout editor. Hide the editor and you will see the button.
Click this button and enter your graphic variable name (&bcol& is a weird name, instead use a name like &graphic_name&)
Maybe you are looking for
-
Need help with copy/paste in CSS
Hey, I am 3 lessons into a Dreamweaver class so that is the extent of my knowledge. For some reason when I copy/paste code from one CSS sheet to another the code is present etc. but when I go back into the HTML file to view the changes, nothing happe
-
Diagnostic pack, Tuning pack are not in OEM 10g, Add partition to a table
Hi All, I have 2 questions: Q.1: In Oracle 9i Oracle Enterprise Manager java console, we had "Diagnostic Pack" and "Tuning Pack" which helped us seeing performance tuning info (session's statistics such as cpu time, pga memory, physical disk reads, e
-
Web Apps using Item Description in Google Maps Mouseover
Does anyone know if there is a way to use alternative fields from the web app to display in the pop up on the google map when you are plotting web app items on a google map from the list view? I seem to be only getting the option to display the addre
-
IMessage is on but my text keeps saying text messege not I message
My iMessage is on but when I send a message it says it is a text message instead of an iMessage. I can't see if it was sent or read because of this. Can someone please help?
-
Tables to find Invoice for a mocement type 101.
Hi, My requirement is to find out invoice for all the material which has movement type 101. So please I need flow logic and tables for this requirement . thanks Imran