Multiple canvas navigation help
Hi all
I'm developing a form with multiple canvases like A,B,C and D
I'm able to navigate to the canvases successfully during run time by having some go_item code
B-->D-->C-->A
i don't want to navigate like this
my need is if I close any the canvas B,C and D during runtime the control should be navigate to canvas A and the form won't be closed
my problem is
If i close any canvas during runtime the entire form is closed
Help me!!
Note:Is there any possibility to have a separate window for each canvas? If it so then how to code in the when-window-closed trigger for navigating between those multiple windows
Hi user2233
Here is an example ...
Pls create a button in ur tab or content canvas (A) in this button pls write the following as an example...
SHOW_VIEW('STACKED_CANVAS');
GO_ITEM ('SAL'); -- Pls note this item should be navigable and visible in ur stacked canvas form
HIDE_VIEW('TAB_CANVAS'); -- or canvas (A)
In order to return back to ur tab_canvas pls create a button in this button pls write the following...
HIDE_VIEW('STACKED_CANVAS');
SHOW_VIEW('TAB_CANVAS'); -- or canvas (A)
GO_BLOCK('EMP');
GO_ITEM ('EMPNO'); -- Pls note this item should be navigable and visible in ur stacked canvas form
Hope this helps...
Regards,
Abdetu...
Similar Messages
-
Creating a panel with multiple canvasses on it, in complementary colors
public Dancefloor(Dimension patches, int size, Color color)
//create JPanel
super();
backgroundColor = color;
numberOfPatches = patches;
patchSize = size;
//set Size of Dancefloor, make a conversion because the returned type isn't int but double and the setSize
//function is only able to handle int
setSize((new Double( numberOfPatches.getWidth() * patchSize) ).intValue(),
(new Double( numberOfPatches.getHeight() * patchSize) ).intValue() );
//set bacground color of the panel
setBackground(backgroundColor);
//create a number of patches, as submitted to the constructor(at the moment as Canvas)
//Create a for loop which will be looped as much times as the number of patches
for(int d = 0; d < new Double(numberOfPatches.getWidth() * numberOfPatches.getHeight()).intValue(); d++)
//create a new canvas and set a background for it
patch = new Canvas[new Double(numberOfPatches.getWidth() * numberOfPatches.getHeight()).intValue()];
patch[d] = new Canvas();
patch[d].setBackground(backgroundColor);
//set another background for the patches that are not even, but have an odd number
if(d % 2 != 0)
float[] colorHSB = color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), null);
colorHSB[0] += 0.5;
if(colorHSB[0] > 1) {
colorHSB[0] -= 1;
patch[d].setBackground(new Color(Color.HSBtoRGB(colorHSB[0], colorHSB[1], colorHSB[2])));
}Above is the code of the constructor of my class called Dancefloor, it attempts to create a panel(the 'dancefloor') with multiple canvasses('patches') on it. The even patches should have the color specified in the constructor, the others should have a complementary color as background. this is done using the last if-statement.
When executing however, all patches have the color specified in the constructur and so you all you can see is a panel with a background instead of a panel with a patchwork of 2 different color canvasses on it
I hope this explanation was pretty clear, I hope someone is able to help me out
thomasi would suggest if you are going to use a JPanel, simply create an array of Rectangles that represent all of your patches. Then override the paintComponent(Graphics g) method of the JPanel to and use the fillRect(int x, int y, int width, int height) method from the graphics class to draw all of your rectangles something like this
JPanel floor = new JPanel() {
public void paintComponent(Graphics g) {
super.paintComponent(g);
for (int j = 0; j < myRectangles.length; j++){
g.setColor(whateverColor)
g.fillRect(myRectangles[j].x, myRectangles[j].y,
myRectangle[j].height, myRectangles[j].width);
}btw, you can use the field values width and height from Dimension class to retrieve an int value, insted of using getWidth() and getHeight just call myDimension.height or myDimension.width -
HOW TO - Create new from clipboard and process multiple files - please help
Need help - have new version of photoshop on trial only ATM...
Want to know - HOW TO:
1. Create new from clipbaord
2. Process multiple files
Please help.For clipboard copy, I start with File > New and the size will be set to what's in the clipboard. Then once the new file is opened, Edit > Paste will place the clipboard contents as a layer in the new document.
You must remember to use the command Layer > Flatten Image of you want to save as jpeg or any other file format that doesn't support layers.
For processing multiple files,
File > Automate > Batch or
File > Scripts > Image Processor...
Check the User guide or google information for those commands if you have specific needs.
Gene -
How do I total across multiple Tables? Help!
how do I total across multiple Tables? Help!
I feel like a complete noob.Hi Marc,
There is no function explicitly for that sort of array calculation in Numbers.
My favorite way is to use a list of Table Names and the INDIRECT(ADDRESS) function combination to produce a SUM across tables. I'm making the assumption that you want to do something like adding up all the values in a particular cell of multiple tables. For example "give me the total of all the A1 cells in tables T1, T2, T3 and T4". For this I would use the formula:
=INDIRECT(ADDRESS(1,1,1,,A))
to grab the cell contents of the table names mentioned in column A of a summary table. Once you have them collected in your summary table, add them up.
Here's a screen shot...
Hope that gives you an idea for approaching this problem.
Jerry -
Create Multiple Canvas depend on user need
Hello everybody.. can anybody tell me how to create automatic
Multiple Canvas depending user need. For example user need to
display 3 information and flex get the data from HTTP XML. After
that flex system build automatic create 3 canvas that contain the
information been given. How can we do that? It's using repearter
the way to solve?"Wirawannaga" <[email protected]> wrote in
message
news:gkgspl$b8b$[email protected]..
> Hello everybody.. can anybody tell me how to create
automatic Multiple
> Canvas
> depending user need. For example user need to display 3
information and
> flex
> get the data from HTTP XML. After that flex system build
automatic create
> 3
> canvas that contain the information been given. How can
we do that? It's
> using
> repearter the way to solve?
So glad you asked. Check out:
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
Q1 -
Hi Experts,
How can I navigate from a Nested iView to another Nested iView one level up?
My application is such that the Parent iView contains multiple Nested iViews, which individually contain the logic to Book Holidays, Display Holidays, and Modify Holidays etc. After creating a holiday request, I want the application to jump to the Display Holidays iView, where the new request can be seen on a graph. The problem is the iView I want to navigate to is one level above where the Create logic is so I can't map an event from the Create Form's submission to the Display iView.
I've tried using the 'Navigate' components under connectors (which sounds perfect) but this is an unsupported component and doesn't work (on our setup).
For clarity, the application's structure can be visualised as:
Holiday Application (Parent iView)
...1. Display Holidays (Nested iView)
...2. Create Holidays (Nested iView)
........2.1 Submit Form (event)
...3. Modify Holidays (Nested iView)
........3.1 Submit Form (event)
After submitting the form I want to jump to the Display Holidays nested iView.
Any help would be greatly appreciated.
Best regards,
Andrewhi,
First let me confirm if i understood your problem correctly.
You have 3 nested iviews display holidays, Create holidays, and modify holidays.
From display holidays you are navigating to create holidays and modify holidays.
once you navigate to create holidays or modify holidays and after creating or modifying the holidays you will press a button on the form, once you press this button you want to go back to the display holidays.
what are the other things that you have in the layers along with the nested iviews. If you dont have anything other than nested iviews use the following steps.
1. Remove the layers and keep only the nested iviews.
2. create a data store to store the value for the action in display holidays. for eg: when you click on create holidays store 'Create' and when you click on modify holidays store 'modify'. now use the outport and assign the value stored in the data store.
3. Create a similar data store in create holidays and display holidays and assign the values 'displayholidays' to both these actions.
4. Create a data store in the main screen that is in the level where you have all the nested iviews and connect all the outports to this datastore and assign the corresponding values coming from the nested iviews.
5. set the visibility condition on all the nested iviews. eg: visibility condition for display holidays will be true when the store@maindatastore=='displayholidays' and visibility condition for create will be true when store@maindatastore=='create'.
by doing this you will see only that screen which will satisfy the condition.
let me know if this solves your problem.
Regards,
Rk. -
Multi-Tab Canvas Navigational Controls
I want to control navigation out of a block displayed on a "tab" canvas to other "tabs" in a form containing multiple tab canvases. Are ther any "events triggers" associated with the "tab" level similar to the "WHEN_BUTTON_PRESSED" trigger such as "WHEN_TAB_SELECTED"?
I assume I must place the triggers on the block (or blocks) associated with the respective tabbed canvases.
nullThe trigger must be placed at the form level. Use "if :system.cursor_block = 'BLK'"
to code for each tab. -
IMovie '11 Navigation Help - The Basics
Hi. I am using iMovie for the first time. iMovie 11 to be exact. I'm reading the Apple tutorials. They make reference to many iMovie elements, such as the "clip viewer" and the "return" button. But the tutorials do not indicate where these items are located on the iMovie screen. For example, there is nothing on the iMovie screen that I can see that is titled "clip viewer". Also, when I want to save a project or rename a project, I don't see the normal SAVE AS or RENAME options under the FILE menu that most other applications have.
Can anyone point me to a navigation guide that shows me where all these basic elements are located in iMovie? Thank youKen Stone has created a [great tutorial here.|http://www.kenstone.net/fcphomepage/imovie_09stone.html]
The clip viewer is the area on the right side of the Project pane.
The Enter key is the one on your keyboard.
There is no Save command in iMovie, because it automatically saves after every action.
It may help for you to know how imovie works. When you import video clips into iMovie, they are stored in an Event file, much like an iPhoto event. This is where the raw video is kept. It is not changed or edited, and is available for multiple projects.
The Project in iMovie is a list of instructions to be executed when the project is shared in final form. For example, a project may have instructions that say "go to this clip in this event and get these frames of video, then insert a title here and a transition there, and add music here." None of the actual video is in the project, but it references the event video. Every time you make an edit in your project, it adds or subtracts an instruction in the project file and it is saved instantly. So there is no Save command.
However, Murphy's Law says if something can go wrong it will, and sometimes projects can get corrupted. In this case it is good to have a backup. By far the easiest way to backup is to make sure that you Movies/iMovie Projects folder is included in your Time Machine backup.
Another way is to select your project in the Project Library view, right-click, and select Duplicate Project. This gives you a duplicate of your project at a time when it was working so you do not have to start over.
Welcome to the iMovie Discussions. -
I am having a big problem. I am not getting notifications from snapchat and only snapchat. I've made sure every notification setting was on and it just won't work. I have also restored my phone and deleted the app and re-downloaded it multiple times. It just wont give me my notifications. Help please.
Go to Settings > Privacy > Location Services.
Turn off SnapChat.
Go to Settings > Notification Center
Turn off SnapChat.
Restart the device.
Go to Settings > Privacy > Location Services.
Turn on SnapChat.
Go to Settings > Notification Center
Turn on SnapChat.
Test the issue. -
Hey everyone, I was wondering if someone could help point me in the right direction for solving this. I have created 5 short animations using Flash and when I published each ".fla " (with Toolkit for CreateJS extension) I get 5 different html5 files with their own respective javascripts. Is there a way to get all those canvas tags in one html5 file and still have it work. I'd love a hint on where to begin so I can begin researching the solution.
Thanks!
-DJWhy do you think that one will be over written?
You can sync as many ipods/iphones/ipads as you like to one computer. Each is different and will only sync what you select. -
Need assistance searching records from multiple tables - Please Help!
Hi, I've been trying to solve this problem for several weeks now, and I have exhausted all of my knowledge and experience. I need help, and I hope someone here can give me some direction.
I am using VB 2008, and the CR that comes bundled with VS 2008 Pro. My database is a SQL Server 2005 CE v3.5 (a *.sdf file). I am connecting to the database through a dataset, and I am displaying the report in a CrystalReportViewer.
My dataset consistes of two tables:
1) tblCustomers which has a primary key "CustID", and contains only customer contact and personal information.
2) tblDateVisited which has a primary key of "VisitID", but it also has a column titled "CustID". Basically, every time a customer visits the business, details of that visit are recorded in tblDateVisited, and that record is associated with the customer by their CustID.
Here's what I'm trying to accomplish: I want to be able to display only Customer records when the customer has visited and that visit matches certain criteria. Right now, I am trying to match visits from the "tblVisitDate.PlayerType" column. If the customer has ever had a visit where they matched a particular player type, I want to see those customer records.
I don't know what I'm doing wrong, though. I can search a dataset if I am only querying one table and pulling records from that table. However, whenever I try to add a second table and perform queries on that table to get records from the first table, I can't return any records.
If it helps, I am trying to use one CrystalReportViewer to display multiple reports (user choice) and here's how I'm loading the report into the viewer:
Me.tblCustomersTableAdapter.Fill(Me.dsPlayerTypeReports.tblCustomers)
Me.tblDateVisitedTableAdapter.Fill(Me.dsPlayerTypeReports.tblDateVisited)
Me.ReportFile.SetDataSource(dsPlayerTypeReports.Tables(1))
I am suspicious that my problem is in the Tables(1) method. It confuses me that I can only assign one table as a datasource when I obviously need access to two tables to make this selection work.
Whatever the case, I'm at the end of my rope with this one. I'm not prone to giving up, but I'm at a dead end currently.
Any attempt to assist me with this will be greatly appreciated, successful or not.
Thanks in advance!
-WillNo, I am connected via ADO.NET. I don't think SQL CE can connect through ODBC (or if it can, I haven't been able to figure out how, yet). So this isn't a stored procedure.
When I examine the link, I can only choose an Inner Join or a Left Outer Join. Right Outer and Full Outer are not available. Could this be a problem with the dataset I'm using?
Could you explain what you mean by display all of the records and then choose the selection criteria? -
Multiple Adobe CEF Helper, Conhost, icalcs.exe in Windows 8.1 Autostart
While checking some autostart apps, that I could possibly deactivate, I found something strange.
There are multiple entries for "Adobe CEF helper", "Conhost" and "icacls.exe". All grouped under the Adobe Creative Cloud.
On my other machine, Conhost and icalcs.exe don't appear at all and Adobe CEF helper only once.
They do not noticeably create any errors, however, it's not feeling right. I don't know exactly when these entries appeared for first time. The device is pretty new and I just installed a bunch of work related software like Office 365, Adobe CC, Chrome, ...
When installing Filezilla, some bloatware/adware was automatically installed on the system (blame sourceforge, see download comments over there). Currently I'm testing Kaspersky Internet Security, 30 days trial. But I don't think none of them is to blame.
I would personally like to avoid reinstalling Adobe CC, because it lasts forever.
Q: What might have caused these entries? Should I correct it? And how should I correct it?
System: Windows 8.1 64bit on an fairly new ASUS GL550JK.
Thanks.Update: I reinstalled the whole system and it still shows up.
Directly after the installation of Adobe CC, only Adobe CC showed up in the Autostart menu. Even after a restart still nothing (and the entry still had "boot time - no measured"). After the boot time was measured, same subentries as above appeared. -
Hi there.
I hope this isn't too confusing...
I have built a projector for a cd-rom presentation and
everything's going well. My interface and drop-down navigation are
all loaded into a shell file and are on the top level. All swf's
are then loaded into a level below the navigation. My main issue is
figuring out if this drop-down menu navigation can load a swf and
then move the playhead to a designated frame.
i.e. "About" is the primary button. OnRelease reveals a
drop-down menu in which there are 4 secondary buttons,
"Introduction," "History," "Client List," and "Capabilities." Each
of these secondary buttons are designated to sections in one larger
swf. Upon clicking on one of these I would like to load the swf
into a designated level and move the playehead to it's
corresponding frame label. Problem is, it takes a few seconds to
load the swf into the level because the projector is pulling it
from the disc thus skipping the code telling it to play the
corresponding frame label. It ends up just loading the swf and
playing it on the 1st frame.
One solution is to make the primary "About" button load the
corresponding swf. Then all the secondary buttons in the drop down
would just call to that level {_level18.gotoAndPlay(introTwo);} I
want to find another way around this because I didn't want to load
content on the primary button. I wanted to provide the options
first then let them choose which section.
Hope you can help!!
Thank you for your time!!you must wait until loading is complete before executing your
goto methods. ie, use preloader code to ensure _level18 is loaded
before you execute your _level18.gotoAndPlay(). -
How-to map multiple explicit search help values to context attributes?
Hi,
I have a custom explicit Search Help with multiple attributes set as export and uses search help exit for data retrieval. I have set this Search Help for one of the context attribute that is binded to one of the input fields on view.
Now, is it possible to dynamically map other export attributes from this Search Help to other Context attributes?
I know this works for Input helps that are directly derived from check tables but not sure how to do it for explicit Search Helps.
Can anyone please confirm and let me if this is possible? If yes, then can you please share an example or describe how to do it?
Thanks and Regards,Hi Srinivas,
Check this ..Search help can be dynamically assigned to a field.
data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'ATTR1' " Your attribute Name
value_help_mode = '121' " Valid value help mode
value_help = 'Z187442'. " Search help name
The various possible values that you can pass to value_help_mode are as shown below.
deactivated 101
automatic 111
ddic 121
ovs 131
Also refer this..
Re: How to put dynamic search help in web dynpro ABAP.
Cheers,
Kris. -
Nothing come out from Canvas, pls help!
No error but nothing come out. Please help!
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class StGeorgeFlag extends Applet implements ActionListener{ //, MouseListener, MouseMotionListener{
Panel p;
MyCanvas mycanvas;
PlayButton play;
ConfirmButton confirm;
SolutionButton solution;
Dimension d;
Graphics g;
public void init(){
int width = getSize().width;
int height= getSize().height;
p = new Panel();
setBackground(Color.lightGray);
MyCanvas mycanvas = new MyCanvas(); // create the canvas
mycanvas.setSize(width-4, height-4);
play = new PlayButton(this);
confirm = new ConfirmButton(this);
solution = new SolutionButton(this);
add(play);
add(confirm);
add(solution);
p.setLayout(new GridLayout(1,4,3,3));
p.add(play);
p.add(confirm);
p.add(solution);
setLayout(new BorderLayout(3,3)); // button border
add("Center",mycanvas); // add canvas and controls to the applet
add("South",p);
public void actionPerformed(ActionEvent e){
if (e.getSource() == play) mycanvas.rectangle();
else if (e.getSource() == confirm) mycanvas.rectangle();
else if (e.getSource() == solution) mycanvas.solution();
public void mousePressed(MouseEvent me){}
public void mouseDragged(MouseEvent evt) {}
public void mouseReleased(MouseEvent me){}
public void mouseClicked(MouseEvent me){}
public void mouseEntered(MouseEvent me){}
public void mouseExited(MouseEvent me) {}
} // end Class StGeorgFlag
class MyCanvas extends Canvas {
Dimension d;
public void paint (Graphics g){
rectangle();
public void rectangle() {
Graphics g = getGraphics();
Dimension d = getSize();
int width = d.width;
int height = d.height;
g.setColor(Color.red);
g.fillRect(2,2,width-4,height-4);
int y = 2; // width
for (int row=0; row<2; row++){
int x = 2; // height
for (int col=0; col<2; col++){
g.setColor(Color.white);
g.fillRect(x,y, width/5, height/5);
x = (x + width-(width/5+4));
y = y+height-(height/5+4);
} // end method rectangle
public void solution() {
Graphics g = getGraphics();
int width = d.width;
int height = d.height;
g.setColor(Color.red);
g.fillRect(2,2,width-4,height-4);
int y = 2; // width
for (int row=0; row<2; row++){
int x = 2; // height
for (int col=0; col<2; col++){
g.setColor(Color.white);
g.fillRect(x,y, width/8*3, height/3);
x = (x + (width/8*5)+4);
y = y+(height/3*2+4);
g.setColor(Color.black);
g.drawString("Solution" , width/5,height/3);
g.drawString("========" , width/5,height/3+20);
g.drawString("- find the length diagonal (from corner to corner)" , width/5,(height/3)+40);
g.drawString("- divide diagonal by 2 to find the mid point" , width/5,(height/3)+60);
g.drawString("- find a quarter of the area of the flag " , width/5,(height/3)+80);
g.drawString("- So, the white are is: [(3m/8*2)*(2m/3)]*4 = 6 (half of flag area)", width/5,(height/3)+100);
}// end method solution
} // end class MyCanvas
class PlayButton extends Button {
PlayButton(StGeorgeFlag sgf) {
super("Play/Reset");
addActionListener(sgf);
} // end Class PlayButton
class ConfirmButton extends Button {
ConfirmButton(StGeorgeFlag sgf) {
super("Confirm");
addActionListener(sgf);
} // end class ResetButton
class SolutionButton extends Button {
SolutionButton(StGeorgeFlag sgf) {
super("Solution");
addActionListener(sgf);
} // end class SolutionButtonNewJava wrote:
No error Not sure that I agree with this. I get an NPE when I try to run this.
but nothing come out. Please help!You're declaring your MyCanvas object twice, once in the class, and once in the init method, and only construct the second of the two. Declare this object only once -- in the class, and construct this same object once, and you're program will be closer to completion:
Change this:
MyCanvas mycanvas;
public void init()
int width = getSize().width;
int height = getSize().height;
p = new Panel();
setBackground(Color.lightGray);
MyCanvas mycanvas = new MyCanvas(); // create the canvas to this:
MyCanvas mycanvas;
public void init()
int width = getSize().width;
int height = getSize().height;
p = new Panel();
setBackground(Color.lightGray);
//MyCanvas mycanvas = new MyCanvas(); // create the canvas
mycanvas = new MyCanvas(); // create the canvas
Maybe you are looking for
-
Fault handling - BPELFaultRecoveryContextImpl - how to get payload
Hi, I have a custom java action for every fault in my composite. Once in the handler I need to access the payload, in case it's a mediator fault it's quite easy as MediatorRecoveryContext provides a public method to access its message. How can I do i
-
I can't seem to get the swipe listener in my flex mobile project to recognize a multitouch swipe. I have tested this on an iPad and a Galaxy tab. I can get multitouch working, because pinching is recognized, but swipes are only recognized when I only
-
Hi, I want to use the FM "FKK_LINE_ITEMS_WITH_SELECTIONS" for creating one Z-Account statement to display same like chronology-FPL9. So while calling this FM, I am passing the structure "FKKEPOSC". But I guess some mandatory fields/components I am mi
-
Java has no function level lock?
Hi, everyone! I am a C++ programmer before and after reading the internal implemention method of Java Thread. I think Java has no function level lock and only object level lock. I mean to acquire a function lock is the same as acquire an object's loc
-
why my imac does not recognize my Seagate Freeagent goflex after upgrading to Mavericks?