Regarding displaying the canvas at runtime
hi all,
i am using Forms [32 Bit] Version 6.0.8.24.1 (Production).
i have three base table blocks. block 1 i am showing constantly, block2 and dblock3 showing at run time based on the poplist selection.
when form will be opened for first time i am showing block2 canvas by setting the view position. and hiding the bllock3 canvas with the help of
show_view('canvas_block2');
SET_VIEW_PROPERTY('canvas_block2',DISPLAY_POSITION,0,3.7);
hide_view('canvas_block3');my problem is when i run the form for first time the 'canvas_block3' is appearing at the position(0,0) on canvas and disappearing within the fraction of second.
this is happening when i change the list item(which contains the code to show the canvases based on the user selection) also.
i have written the show and hide canvases in when-new-record-instance of the block1 and when-list-changed trigger.
I don't know why the canvas 'canvas_block3' is appearing and then disappering after a fraction of second even though i have written 'hide_view('canvas_block3');' in w-n-r-i trigger.
Please advise.
Thanks..
hi,
i have tried with default visible to 'no' but still same problem exists.
my problem is the canvas which i am trying to hide('canvas_block3') that is appearing for a while and then disappearing(which is causing destraction on the screen)
i am calling hide and show views in w-n-r-i of block1.
i cannot give go_item or go_block. and i don't want to navigate to that block(block_3) .
i want to reside on the same block.
Thanks..
Similar Messages
-
Tab Canvas displaying Stacked Canvas at runtime disappears?
Hi,
I have 3 canvases that contain the following:
1) Content Canvas -- This contains the TREE item.
2) Tab Canvas -- A tab canvas with a single Tab Page
3) Stacked Canvas -- This is a Stack Canvas with a few
text items on it.
4) Single Window.
======At runtime the following actions occur: ==========
1) The Viewport of the stacked canvas is set to the
Viewport of the Tab Page on the Tab Canvas so that it
looks like the Tab Page has a vertical and horizontal
scrollbar with text items displayed.
2) A text item on the Stacked Canvas is in focus as soon
the as the form window is displayed.
===================Problem is : =====================
1) When I select a Node of the Tree Item, the Tab Canvas
automatically disappears(or becomes invisible) , as a
result the stacked canvas displayed within it at
runtime also becomes invisible. I am left with only
the Tree item being displayed.
=======================================================
PS : I have never experienced this problem with just the
content canvas and the Tab Canvas together.
Any soultion to this problem is most appreciated.
Thanks
SharathI am experiencing the exact same thing. The width of the tabs in the layout editor is varied depending on the length of the text. However, at run-time, the width of the tabs is fixed, causing the tabs to be wider than the window and a set of VCR buttons to appear in the upper right corner of the canvas. Personally, I think this is a Forms bug. Why would they intentionally let us set the width to variable at design-time only to force a fixed width at run-time?
-
Embedded font doesn't display the same at runtime
Hi,
For whatever reason, I have chosen Aerial Black for some read-only TLF text (anti-alias = "readability"), but at runtime, it looks more like Times Roman.
Any idea?
Regards,
RonI was coming to that conclusion myself, but it works fine in Keynote on my Powerbook. On the MP I took off a lot of the language translations, I wonder if that had any effect. The font displays the alphabet fine if I check it via the font box in Motion. It also displays properly if I open the Keynote file on the MP.
There are no Latin characters in Corsiva Hebrew. When you use it for Latin characters, you are actually seeing a different font regardless of what it says in a font menu. The substitution occurs automatically, normally with Lucida Grande I think.
Look carefully at this font in size 72 and see if you can see any difference from Lucida Grande. Send me a screen shot if you like (tom at bluesky dot org). -
Regarding displaying the report information in Geographical map
Hi All,.
I have a specific requirement where I have to display the number of Telephone connections activated in a geographical area (GEO map) . How to do it.
Can any body provide the step by step process to display the reporting information in maps.Hi,
To do this you have to have the settings done in Info object maintenance where in the Map should have been integrated already.
Once that is done, in BEx designer you can have the setting by cloicking the icon.
Hope this helps to start with.
Assign points if useful.
Regards,
Venkat -
Regarding displaying the photo in wd abap from mime repository
Hi All,
I have to display the photos which are availaible in the mime repository.If any one knows about it then please tell me in detail i.e. step by step.
Thank you all in advance.Create an Image element on you view and then go to the source property click on that and the n select the image from MIME.now the Image will be available on the view.
Thanks
Suman -
Displaying the Oracle Forms 10g
Hi Everyone,
I need help on this one.
I am currently running Oracle Forms 10g and I want to display the Calendar object on an item in my module.
I have attached the relevant libraries i.e Calendar and added the program units as required so in my module there are two additional data blocks that is
DATE_CONTROL_BLOCK and DATE_BUTTON_BLOCK and I have my canvas and the DATE_LOV_CANVAS.
What code do I had to the KeyListVal trigger to enable me to display the Calendar at runtime?Hi,
Actually what I want to find out is how to include a
Calendar in my Form Module at runtime.That wasn't your initial post's question, and what do you mean by at runtime??
You need to have the objects you stated in your first post in the form to be able to show the calendar at runtime.
If you have the Forms Demo read the help files they have explained everything in it. If not you can download it from [url http://www.oracle.com/technology/sample_code/products/forms/index.html]here
Tony -
How an image can be loaded onto the Canvas.
I do not know how should i proceed to load an image onto the canvas at runtime?
If possible give me the source code along with the instructions to be followed for applying that source code.You can use java.awt.Toolkit.getImage, or better yet javax.imageio.ImageIO.read if you're using a modern JDK (1.4 and above).
Then when you have the Image object, use java.awt.Graphics.drawImage to display it. You'd do that in the Canvas's paint method.
Read the docs for more info. -
Regarding Creating Horizontally moving tabbed canvas at runtime
Hi..
Is it possible to create a Horizontal dynamically
moving Tabbed Canvas.
I want to move the particular tab page of the tabbed
canvas horizonatlly during runtime by placing a
horizontal scroll bar.
Could anyone tell me how it in can be done with steps?
Plz reply me asap it is urgent.
Thanks & Regards,
Venkatesan.SMmm
Let's see.. there are two tips:
- 1st: modify canvas length dinamically
- 2nd: put the scroll bar to the block into the canvas
Solutions:
- 1st: Use the set_canvas_property built-in (with WITDH parameter)
- 2nd: There are no problems to put an hoprizontal scrollbar associated to the block you're viewing into the page of your tabbed canvas
(To manage the scroll bar.. Have a look at set_block_property built-in)
Regards,
Jose L. -
Displaying the checkbox created at runtime
hai all,
i have created the checkboxes at runtime but they are getting displayed in the same line.
i need to display them one after the other in next lines.please help me its urgent.
Thanks n Regards
Sharanya.RHi,
To solve the problem, I have created one Java class
public class UIHandler {
Call this method to create node in Component controller as the data should be shared among
multiple views
@param rootInfo is NodeInfo for wdContext in Component Controller
@param name of Value node to be created
@param Collection represents the list of attributes to be created for check boxes
public static IWDNodeInfo createChildNode(
IWDNodeInfo rootInfo,
String name,
Collection collection) {
IWDNodeInfo node =
rootInfo.addChild(
name,
null,
true,
true,
false,
true,
false,
true,
null,
null,
null);
for (Iterator iter = collection.iterator(); iter.hasNext();) {
String str = (String) iter.next();
node.addAttribute(str, "com.sap.dictionary.boolean");
return node;
Call this method to create node in view to create list of check boxes
public static IWDNodeInfo createMappedChildNode(
IWDNodeInfo nodeInfoOrigin,
IWDNodeInfo rootInfo,
String name) {
IWDNodeInfo nodeInfoView =
rootInfo.addMappedChild(
name,
null,
nodeInfoOrigin.isSingleton(),
nodeInfoOrigin.isMandatorySelection(),
nodeInfoOrigin.isMultiple(),
nodeInfoOrigin.getPathDescription(),
false,
true);
for (Iterator iter = nodeInfoOrigin.iterateAttributes();
iter.hasNext();
IWDAttributeInfo attrInfo = (IWDAttributeInfo) iter.next();
nodeInfoView.addMappedAttribute(
attrInfo.getName(),
attrInfo.getName());
return nodeInfoView;
Create list of check boxes
public static void createCheckBoxes(
IWDView view,
String rootContainerName,
IWDNodeInfo nodeInfo) {
IWDTransparentContainer rootCont =
(IWDTransparentContainer) view.getElement(rootContainerName);
IWDTransparentContainer cont =
(IWDTransparentContainer) view.createElement(
IWDTransparentContainer.class,
"Container");
IWDGridLayout layout =
(IWDGridLayout) cont.createLayout(IWDGridLayout.class);
layout.setColCount(2);
rootCont.addChild(cont);
for (Iterator iter = nodeInfo.iterateAttributes(); iter.hasNext();) {
IWDAttributeInfo attrInfo = (IWDAttributeInfo) iter.next();
IWDLabel label =
(IWDLabel) view.createElement(
IWDLabel.class,
attrInfo.getName());
label.setText(attrInfo.getName());
IWDCheckBox cbx =
(IWDCheckBox) view.createElement(
IWDCheckBox.class,
attrInfo.getName() + "cbx");
cbx.bindChecked(attrInfo);
label.setLabelFor(cbx.getId());
cont.addChild(label);
cont.addChild(cbx);
Now, to create context node in component controller, use following code,
List list = new ArrayList();
list.add("Label of check box");
IWDNodeInfo nodeInfo = UIHandler.createChildNode(wdThis.wdGetTestController().wdGetContext().getNodeInfo(), "Data", list);
UIHandler.createMappedChildNode(nodeInfo, wdContext.getNodeInfo(), "Data");
To create check box, use following code in wdModifyView,
if(firstTime) {
IWDNode node = wdContext.getChildNode("Data", 0);
IWDNodeInfo nodeInfo = node.getNodeInfo();
UIHandler.createCheckBoxes(view, "RootUIElementContainer", nodeInfo);
And to access the values of the check boxes in different view, put the following code in wdInit()
IWDNodeInfo nodeInfo = wdThis.wdGetTestController().wdGetContext().getChildNode("Data", 0).getNodeInfo();
UIHandler.createMappedChildNode(nodeInfo, wdContext.getNodeInfo(), "Data");
And in wdModifyView
if(firstTime) {
IWDNode node = wdContext.getChildNode("Data", 0);
IWDNodeInfo nodeInfo = node.getNodeInfo();
UIHandler.createCheckBoxes(view, "RootUIElementContainer", nodeInfo);
Thanks,
Puspendu -
Help displaying an image using the canvas!!!!!!!!
Hey guys
I don't know whether I am not grasping some concepts well.I have been going mad trying to get the code working
Here is the code
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.io.*;
* @author Administrator
* @version
public class MyMIDlet extends javax.microedition.midlet.MIDlet implements CommandListener{
private Display display;
private MyCanvas canvas;
private Command exitcommand = new Command("Exit",Command.SCREEN,1);
private Image source;
public MyMIDlet() {
protected void startApp() throws MIDletStateChangeException{
if (display == null){
initMIDlet();
protected void pauseApp() {
protected void destroyApp(boolean unconditional)throws MIDletStateChangeException {
exitMIDlet();
public void commandAction(Command c, Displayable d) {
if (c == exitcommand){
exitMIDlet();
protected void initMIDlet() {
display = Display.getDisplay(this);
canvas = new MyCanvas(this);
System.err.println("Canvas instiated succesfully");
canvas.addCommand(exitcommand);
canvas.setCommandListener(this);
display.setCurrent(canvas);
public void exitMIDlet() {
notifyDestroyed();
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import java.io.*;
public class MyCanvas extends Canvas implements Runnable {
private MIDlet midlet;
private Image offscreen;
private Image currentimage;
private Graphics g;
//MID profile application
/** Creates a new instance of MyCanvas */
public MyCanvas(MIDlet midlet) {
this.midlet = midlet;
try{
currentimage = Image.createImage("/bird0.png");
}catch(IOException e){
System.err.println(e.getMessage());
if (currentimage!= null){
System.err.println("Image create successfully");
}else{
System.err.println("Image not created");
try{
Thread t = new Thread(this);
t.start();
}catch(Execption e){}
protected void paint(Graphics g){
Graphics saved = g;
int x = getWidth();
int y = getHeight();
g.setColor(255,255,255);
g.drawImage(currentimage,x,y,g.TOP|g.VCENTER);
public void run() {
repaint();
I know for a fact that the Canvas class 's paint method is called by the system and not the application. This poses a problem for me because I am not sure how to pass the image to the piant method, so that it can be painted.
When I run the program(using J2ME wtk04), this is the outcome.
Image created succesfully
Canvas instiatiated successfully
null
Here are my questions
1) when is the paint method precisely called by the system?after a reference to the canvas class is created?
2) is it wise to create the image when instiating the canvas class?( initially created the image using a separate thread)-when sould the image be created?
3)how to let the application know when to use the image when painting the display area?
I am just trying the logistics here. It is very crucial to me to understand the bolts of this as the core f my project fouses on the man machine interface development.(For the project, the cilent application is quering for the map using HTTP)
I use a png file of size 161 bytes. Is that too big for testing purposes.
I would all the help that I can get. thanks in advance1) when is the paint method precisely called by the system?after a reference to the canvas class is created?
After the canvas is set as the current display, and after that, after the repaint() is called.
2) is it wise to create the image when instiating the canvas class?( initially created the image using a separate thread)-when sould the image be created?
It's better to create the image in the very begining of the program e.g. in the midlet initialization. You can call the created image as often as you like later on
3)how to let the application know when to use the image when painting the display area?
you have to tell it :))
you can use if-then, switch, or anything else
and you can use clipping too -
Hello,
I have a Design Studio Extension with a background image which behave well in Design Studio 1.2.
In Design Studio 1.3 when I drag the control into the canvas the image does not show-up. If I execute the application the image appear in the browser even is not in the canvas.Once I save and reopen the application the image is displayed on the canvas as expected.
I built an extension based on the 'Timer' sample which comes with the DS_13_SDK_Samples ( it has a background image) and it behaves the same way - when you drag the control on the canvas, the image is not displayed.
Any help to solve this issue is much appreciated.
Thank you.It does start to work once I save and reopen or even when I run.
I tried the inline style but the behavior is much stranger. It does work if I have a full address url to an image, but if my image is part of the control's folder structure it fails completely - it cannot map the right address to the image. The only configuration that appears to work better is the one with the original problem.
Thank you. -
Empty paragrpahs in a textflow cause runtime error when displaying the text
Hello there,
when I create a textflow which has empty ParagraphElements in
it (i.e. a ParagraphElement without any children) I get this
runtime error once I try to display the text in a container:
Error: Error #2175: One or more elements of the content of
the TextBlock has a null ElementFormat.
Is this a bug, or is there a legitimate reason for this
error? If so, I'd like to understand why. In my reasoning an empty
ParagraphElement should just result in the rendering of a newline.
But maybe I'm thinking too much in HTML terms here...
I appreciate any light you can shed on this,
thanks in advance,
Roland
P.S. I'm using the latest build 370Hey Richard,
thank you very much, and I was indeed already using your
mentioned workaround, I was just wondering whether it was a bug or
something I didn't fully understand :) But now I do, so thanks for
your time. -
Changing the background image of a canvas at runtime
=========
[Bindable]protected var bgImage:Image; private
private function GetConfigurationResult( event:WsVCIGetConfigurationDataResultEvent):void
var simage:String = event.result.Image;
var decoded:ByteArray;
decoder.decode( simage );
decoded = decoder.toByteArray( );
bgImage.data = decoded;
setStyle(
"backgroundImage", "assets/images/marshes2.jpg" );
=========
The code above is the result event from a call to a web service to get the contents of an image file from and SQL database.
Works ok up to bgImage.data = decoded;
But using "setStyle" has no parameter for passing the bytearray data block of the image.
The above code, calling [ ("backgroundImage", "assets/images/marshes2.jpg" ] does something, but not what I want.
The web service is called from the canvas [ initialize="init();"] function.
When I set canvas feature [ backgroundImage="{bgImage}" ] it resolves, but I get some error trap from some low level image handling module.
How do I resolve a background image during load at runtime?Since setStyle takes a string and an object for inputs, one would expect that the following would work
===========
private function GetConfigurationResult( event:WsVCIGetConfigurationDataResultEvent):void
{// retrieve the 64base encoded image from the web service by ResultEvent
var
bgImage:Image =new Image();
var simage:String = event.result.Image;
var decoded:ByteArray;
var
decoder:Base64Decoder = new Base64Decoder();
decoder.decode( simage );
decoded = decoder.toByteArray( );
bgImage.data = decoded;
setStyle(
"backgroundImage", bgImage );
============
But this generates the following error:
==========
Error: Unable to load 'Image52'.
at mx.skins::RectangularBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\fr amework\src\mx\skins\RectangularBorder.as:237]
at mx.skins.halo::HaloBorder/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\fram ework\src\mx\skins\halo\HaloBorder.as:222]
at mx.skins::ProgrammaticSkin/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\f ramework\src\mx\skins\ProgrammaticSkin.as:421]
at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\f ramework\src\mx\managers\LayoutManager.as:622]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:677]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]
==============
But passing a filename to setStyle works!!!!
But I need the image to come from a database!!!!!!
Help! -
Run or display the output in Oracle developer form runtime web
Hi guys,
I have installed oracle forms10g in windows 7. im using firefox v.2. when i run the form, the Oracle developer form runtime web is not opening. the output is display in the mozilla firefox itself.
but how to run or display the output in Oracle developer form runtime web?
Thanks in advanceWhat's the problem? What do you mean with the form, the Oracle developer form runtime web is not opening and the output is display in the mozilla firefox itself?
Is the Form open or not? If you see you form, where ever, then the "runtime" is running!
Is it displays within the browser window? But you expected it in an own window?
If that's the case you have to set separateFrame = TRUE in fomsweb.cfg. -
Display The Control Proporty Sheet at runtime
How do I go about displaying the control proporty sheet
at runtime?Here is an example of showing the property pages of a Measurement Studio Activex control at run-time.
Bilal Durrani
NI
Bilal Durrani
NI
Maybe you are looking for
-
I've managed to get my Canon CanoScan Lide30 's toolbox downloaded but it still won't work because it says it can't find the plug-in for it, but when I go that way in the applications and click on that, it doesn't change anything. Scanner works fine
-
Custom component - how to store java Properties object in ucm environment
Hi Experts, I am developing a custom component. my custom component code is reading a properties file and load in Properties object. Everytime this custom Service is called, properties file is read from file system and new Properties Object is create
-
Automatic payment program-Payment of single Invoice by two different banks.
Hi, In APP is it possible to pay a single Invoice by more than one bank.If some one has encountered this issue,please throw your valuable suggestions.We have a client requirement. Thanks Aravind
-
BO XI 3.1 server performance is poor
Hi BO Experts, We have installated SAP BOE XI 3.1 on AIX server and integrated it with the SAP BI system. Performance of the BO system is very poor, its taking very long time for execution of reports and it even failed to retrieve values from the da
-
Hi guys, Working away as normal on 30 odd sims today and decided to move the published files (.htm and .swf) into their own folder. The .cp files didn't move and have always been isolated from the published files. Pointless info you say? Yep, I agree