Developing a Dynamic GUI with SDK 1.3.1
For my master's project, I am developing a system which needs to read a file, and depending on the number of fields the file contains and their titles, dynamically add jCheckBoxes to a pane as part of a tabbed pane. Different files can be loaded by the user at runtime, recreating and updating this pane to reflect the new information. What is the best way of going about this? I tried to use a vector to store the checkboxes at first, but it returns a generic object and not a checkbox. I can get it to work with a checkbox array, but this is a bit messy, and requires the array size to be specified. What is the best way of developing such a system?
For my master's project, I am developing a system which needs to read a file, and depending on the number of fields the file contains and their titles, dynamically add jCheckBoxes to a pane as part of a tabbed pane. Different files can be loaded by the user at runtime, recreating and updating this pane to reflect the new information. What is the best way of going about this? I tried to use a vector to store the checkboxes at first, but it returns a generic object and not a checkbox. I can get it to work with a checkbox array, but this is a bit messy, and requires the array size to be specified. What is the best way of developing such a system?
Similar Messages
-
Creating a dynamic GUI with XMl
Hey folks, i might have posted this already but i cant find it, so posting it again!!! I have an XML snippet that looks like this
<button id=Add action=AddAction />
Essentially what that does when parsed is creates a button and we load the AddAction using reflection and attach that as the actionlistenr for that button!! Now my problem is this, what if that the AddAction takes a parameter of say a Jtree, using reflection it tells me what parameters it takes but it doesnt tell me, "ok yep we pass in myTree as an argument into the construction of AddAction". Now im just looking for ideas for a solution to do this, how do i dynamically pass in references to objects i want to realize???
Sorry if this appears twice but like i said i cant see it posted, any ideas or suggestions would be gratefull!!
cheers,
LLAlso if any one has any thoughts on creating a front end using XML files, pros cons etc??? Just prototyping and wondering should i do down this road!!
-
I am trying to create a dynamic gui for a program that when given three names, it will make a list of matches ( wrestling ) against each other.. I got it so when you click foward once.. it brings up the specified amount of text fields.. but when i click previous, it does not pack it fully, and the buttonPanel does not go back to the minimal size, and keeps the whole frame long.
[code="face.java"]import java.awt.*;
import java.awt.Component.*;
import java.awt.event.*;
public class face extends GUIFrame implements WindowListener, ActionListener {
static TextField[] nameFields;
List howMany;
TextArea finish;
Button forward, back, startOver, print;
Panel mainPanel, buttonPanel, numberPanel, namePanel, matchesPanel;
GridBagLayout gbl;
GridBagConstraints gbc;
BorderLayout bpl, mpl;
CardLayout cl;
Choice numbers;
public face() {
super("Wrestling Order");
gbl = new GridBagLayout();
gbc = new GridBagConstraints();
setLayout(gbl);
mainPanel = new Panel();
buttonPanel = new Panel();
bpl = new BorderLayout();
back = new Button("Previous");
back.setEnabled(false);
back.addActionListener(this);
back.setActionCommand("numOf");
buttonPanel.setLayout(bpl);
buttonPanel.add(back, BorderLayout.WEST);
forward = new Button("Forward");
forward.addActionListener(this);
forward.setActionCommand("names");
buttonPanel.add(forward, BorderLayout.EAST);
startOver = new Button("Start Over");
buttonPanel.add(startOver, BorderLayout.SOUTH);
//mainPanel
numberPanel = new Panel();
numbers = new Choice();
numbers.add("3");
numbers.add("4");
numbers.add("5");
numberPanel.setLayout(bpl);
numberPanel.add(numbers, BorderLayout.CENTER);
cl = new CardLayout();
mainPanel.setLayout(cl);
mainPanel.add("numbers", numberPanel);
gbc.gridx = 0;
gbc.gridy = 0;
gbc.gridwidth = GridBagConstraints.REMAINDER;
gbl.setConstraints(mainPanel, gbc);
add(mainPanel);
gbc.gridx = 0;
gbc.gridy = 5;
gbl.setConstraints(buttonPanel, gbc);
add(buttonPanel);
addWindowListener(this);
pack();
setVisible(true);
public Panel makeNamePanel(int numOfNames) {
gbl = new GridBagLayout();
gbc = new GridBagConstraints();
gbc.gridx = 1;
gbc.gridy = GridBagConstraints.RELATIVE;
nameFields = new TextField[numOfNames];
Panel makePanel = new Panel();
for (int x=0; x < nameFields.length; x++) {
nameFields[x] = new TextField(20);
makePanel.add(nameFields[x]);
return makePanel;
public void windowClosing(WindowEvent e) {
dispose();
System.exit(0);
public void windowOpened(WindowEvent e) {}
public void windowActivated(WindowEvent e) {}
public void windowDeactivated(WindowEvent e) {}
public void windowIconified(WindowEvent e) {}
public void windowDeiconified(WindowEvent e) {}
public void windowClosed(WindowEvent e) {}
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand() == "names") {
namePanel = makeNamePanel(Integer.parseInt(numbers.getItem(numbers.getSelectedIndex())));
mainPanel.add("name", namePanel);
cl.next(mainPanel);
forward.setActionCommand("final");
pack();
back.setEnabled(true);
if (e.getActionCommand() == "numOf") {
cl.previous(mainPanel);
pack();
forward.setActionCommand("names");
back.setEnabled(false);
that is the face.java .. it extends GUIFrame.. which is as follows..
* GUIFrame
* An extension of Frame that uses a WindowAdapter to
* handle the WindowEvents and is centered.
import java.awt.*;
import java.awt.event.*;
public class GUIFrame extends Frame {
public GUIFrame(String title) {
super(title);
setBackground(SystemColor.control);
addWindowListener(new WindowAdapter() {
//only need to override the method needed
public void windowClosing(WindowEvent e) {
dispose();
System.exit(0);
/* Centers the Frame when setVisible(true) is called */
public void setVisible(boolean visible) {
if (visible) {
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
setLocation((d.width - getWidth())/2,
(d.height - getHeight())/2);
super.setVisible(visible);
}If you could help me out.. Thanks..Have you tried using some other layouts... GridBagLayout is a complicated thing to figure out... Might be easier to use some nested panels with different layouts... Particularly, look at SpringLayout.
-
Help with dynamic GUI in NetBeans
Hey all,
I'm new here and was looking for help. I'm trying to create a GUI which is dynamic. I want a JPanel (I think this is the proper component) that will be dynamically populated with other modules, namely other JPanels defined as classes. This JPanel is within a JDialog. Ive been trying things like this:
myPanel.add(new myNewPanel)inside of a the index changed method but the panel is not being added. I feel like I'm doing something fundamentally wrong. Does anyone have any words of advice??
ThanksOf course JDialog has a pack() method.
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting. -
Does Stage3D work with SDK 3.5?
Hi,
I'm in research for GPU enhancement for current project based on Flex SDK 3.5 (with Flash Builder 4.0.1).
It causes runtime error as following.
VerifyError: Error #1014: Class flash.display::Stage3D could not be found.
If I changed SDK to 4.6 and nessesary settings (target Flash player version, parameter in html template), it works fine.
But with SDK 3.5, I could not figure out how to workaround.
It is for large enterprise application, 3.5 is hard requirement.
Is there any way we can use for Stage3D feature with SDK 3.5?
Thank you very much,
NaokiIt worked!
Thank you very much. It was very helpful.
I did not realized to specify 2 location of version setting in same page.
Following is my summary.
======
How to set up Stage3D enabled development environment with Flex SD 3.5
Environment
Target Flash Player 11.4
Flex DSK 3.5
Flash Builder 4.0.1
Flash Debug Player download page for debugging.
Download and install from following:
http://www.adobe.com/support/flashplayer/downloads.html
We need PlayerGlobal(.swc) file for target player version.
Copy above playerglobal.swc file to following
C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\libs\player\11.4\playerglobal.swc
Flash Builder project setting / ActionScript Compiler
1) Use a specific SDK as "Flex 3.5"
2) Use a specific (Flash Player) version as "11.4.0"
3) Addtional compiler arguments as "-locale en_US -target-player 17"
Ref) http://sleepydesign.blogspot.com/2012/04/flash-swf-version-meaning.html
Edit auto generated project/html-template/ files for Rendering Mode
Ref) http://gamua.com/starling/first-steps/
Editing on Flex SDK 3.5 file did not worked for me.
So I copied Flex SDK 4.6's /html-template/ files and added following 2 lines to index.template.html file.
For script tag
params.wmode="direct";
For object tag
<param name="wmode" value="direct" />
====== -
No problem with sdk 1.3- problem with 1.4!!!
I am trying to make an interface using swing objects..
The buttons are looking like images (2D) when compiling and running the program with sdk 1.4...
although if I use 1.3 everything is ok??
even with the new java version I still have the same problem..
has anyone any idea how to fix this??
thx in advance!/* BET */
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
* Summary description for BET
public class BET extends JFrame
// Variables declaration
private JLabel jLabel1;
private JLabel jLabel2;
private JLabel jLabel3;
private JTextField jTextField1;
private JTextField jTextField2;
private JTextField jTextField3;
private JTextField jTextField4;
private JTextField jTextField6;
private JButton jButton1;
private JButton jButton2;
private JPanel contentPane;
// End of variables declaration
public BET()
super();
initializeComponent();
// TODO: Add any constructor code after initializeComponent call
this.setVisible(true);
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always regenerated
* by the Windows Form Designer. Otherwise, retrieving design might not work properly.
* Tip: If you must revise this method, please backup this GUI file for JFrameBuilder
* to retrieve your design properly in future, before revising this method.
private void initializeComponent()
jLabel1 = new JLabel();
jLabel2 = new JLabel();
jLabel3 = new JLabel();
jTextField1 = new JTextField();
jTextField2 = new JTextField();
jTextField3 = new JTextField();
jTextField4 = new JTextField();
jTextField6 = new JTextField();
jButton1 = new JButton();
jButton2 = new JButton();
contentPane = (JPanel)this.getContentPane();
// jLabel1
jLabel1.setForeground(new Color(59, 241, 227));
jLabel1.setText("<HTML><B><U>QUESTION</B><HTML>");
// jLabel2
jLabel2.setForeground(new Color(50, 245, 113));
jLabel2.setText("<HTML><B><U>CHOICE</B><HTML>");
// jLabel3
jLabel3.setForeground(new Color(50, 245, 113));
jLabel3.setText("<HTML><B><U>POINTS</B><HTML>");
// jTextField1
jTextField1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jTextField1_actionPerformed(e);
// jTextField2
jTextField2.setText("YES");
jTextField2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jTextField2_actionPerformed(e);
// jTextField3
jTextField3.setText("10");
jTextField3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jTextField3_actionPerformed(e);
// jTextField4
jTextField4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jTextField4_actionPerformed(e);
// jTextField6
jTextField6.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jTextField6_actionPerformed(e);
// jButton1
jButton1.setBackground(new Color(117, 158, 145));
jButton1.setText("OK");
jButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jButton1_actionPerformed(e);
// jButton2
jButton2.setBackground(new Color(117, 158, 145));
jButton2.setText("CANCEL");
jButton2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
jButton2_actionPerformed(e);
// contentPane
contentPane.setLayout(null);
contentPane.setBackground(new Color(67, 97, 83));
addComponent(contentPane, jLabel1, 172,8,60,18);
addComponent(contentPane, jLabel2, 73,78,60,18);
addComponent(contentPane, jLabel3, 211,76,60,18);
addComponent(contentPane, jTextField1, 9,27,403,28);
addComponent(contentPane, jTextField2, 24,101,134,22);
addComponent(contentPane, jTextField3, 203,101,51,22);
addComponent(contentPane, jTextField4, 21,151,137,22);
addComponent(contentPane, jTextField6, 18,200,140,22);
addComponent(contentPane, jButton1, 299,188,80,70);
addComponent(contentPane, jButton2, 299,90,80,70);
// BET
this.setTitle("BET");
this.setLocation(new Point(-2, 1));
this.setSize(new Dimension(424, 316));
/** Add Component Without a Layout Manager (Absolute Positioning) */
private void addComponent(Container container,Component c,int x,int y,int width,int height)
c.setBounds(x,y,width,height);
container.add(c);
// TODO: Add any appropriate code in the following Event Handling Methods
private void jTextField1_actionPerformed(ActionEvent e)
System.out.println("\njTextField1_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
private void jTextField2_actionPerformed(ActionEvent e)
System.out.println("\njTextField2_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
private void jTextField3_actionPerformed(ActionEvent e)
System.out.println("\njTextField3_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
private void jTextField4_actionPerformed(ActionEvent e)
System.out.println("\njTextField4_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
private void jTextField6_actionPerformed(ActionEvent e)
System.out.println("\njTextField6_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
private void jButton1_actionPerformed(ActionEvent e)
System.out.println("\njButton1_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
private void jButton2_actionPerformed(ActionEvent e)
System.out.println("\njButton2_actionPerformed(ActionEvent e) called.");
// TODO: Add any handling code here
// TODO: Add any method code to meet your needs in the following area
//============================= Testing ================================//
//= =//
//= The following main method is just for testing this class you built.=//
//= After testing,you may simply delete it. =//
//======================================================================//
public static void main(String[] args)
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
try
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
catch (Exception ex)
System.out.println("Failed loading L&F: ");
System.out.println(ex);
new BET();
//= End of Testing =
This is my code.. the problem is that when i use sdk 1.3 everything is fine... I tried to use 1.4 and now 5 and I have a problem with the appearance of buttons... I have some comments in my code. is just a form with some textfields and labels and the 2 buttons!
thx in advance -
Transaction iView( Tcode) Error: Function call in SAP GUI with errors
Hey Guys:
I use Transaction iView to show the ABAP application on Portal. The application works to import data from client to BW. After I fill all the information and execute the application, the system returns the error message " Function call in SAP GUI with errors".
The ABAP application works fine on SAP GUI, so it should not be the program problem.
Any Suggestion for this will be nice. Thanks for your help.Hey Duy:
Thanks for your response. I check the servers which i have access, and all of them cannot work correctly.
First, other iViews(Dynpro,BW Report,BSP,KM...) work fine.
Second, our backend system is a BW server.
I try to do so on our EP production and development, also connect them to our BW production and development servers. All of those are failed and have the same problem.
The t-code comes from our abap program and register on BW server, and hte program works fine when I use SE38 to execute it.
PS. The Transaction iView works fine before, but I have no idea why it just crash now.
Please let me know if you have any suggestion about this. -
Hello All,
I am developing a dynamic approval process and here is my requirement.
We are maintaining the agents in the custom table.I am using multiline element to send the user decision tasks to all users in the table. if user approves then workflow continues..if user rejects then i need to send the user decision task to all agents in the table or just to the rejected user for reapproval..
for this..
what i have done so far is..
1. i have called a system method to pull the agents from custom table.
2. i have used the multiline element to the user decision step..and work items are going out for approvals to all agents in the table under this task which is parallel.
3.if approved..continue workflow
My question is if user 1 rejects the item can i do another user decision step which is sending the approval to all or just to the rejected user in the rejection path?
again if user2 rejects i need to follow the same..as it is dynamic am not sure how to achieve this flow..
and it continues until all approved..am not sure how to pursue this..please help..
Thanks in advance..Dear Suresh,
This means if rejected-- need to send it to all or just to the rejected user depending upon initiator decision..i believe we can add another option in second user decison as to send only to rejected user along with resubmit..i will try this option..
Yes you are right.. Provide 3 buttons to initiator like 1)resubmit to all 2) resubmit to rejector 3) exit
Have a multiline container element with name say approver. If initiator clicks the resubmit to all button in user decision then use the multiline container approver (which has all approvers populated by you). If he selects resubmit to rejector the pass the agent (who rejected the workitem in previous step) via binding for that step.
Remaining logic remains the same as mentioned by Sanju.
Regards,
Bharath -
Is there any way to create a dynamic GUI title for my Dynpro???
I mean, i could change the text in runtime.
Thankshi Jose,
SET TITLEBAR - Dynpro
Syntax
SET TITLEBAR title [OF PROGRAM prog]
[WITH text1 ... text9].
Extras:
1. ... OF PROGRAM prog
2. ... WITH text1 ... text9
Effect
During screen processing, this statement specifies the GUI title (specified in title) for the subsequent screens. The title is displayed in the title bar from the next sending of one screen until the end of the program or until the next SET TITLEBAR statement. The name of the current GUI title is displayed in the system field sy-title.
A character-type data object that contains the name of a GUI title of the main program of the current program group or of the program specified in prog in upper case is expected for title. If the title does not exist, sy-subrc is set to 4 and the word "SAP" is displayed in the title bar.
System fields
sy-subrc Meaning
0 GUI title is set.
4 GUI title cannot be found.
Notes
The GUI title of the screen must be set before the PBO event. If no GUI title is set for a screen, the word "SAP" is displayed in the title bar.
The title bar can contain a maximum of 70 characters. A title that exceeds this limit after the replacement of placeholders is truncated to the right.
The statement SET TITLEBAR contains a variant for the GUI status of lists.
Addition 1
... OF PROGRAM prog
Effect
By default, a GUI title defined in the current main program is used. When using the addition OF PROGRAM, a GUI title of the progam specified in prog can be set. A character-type data object is expected for prog that contains the name of a ABAP program in upper case.
Addition 2
... WITH text1 ... text9
Effect
When using the addition WITH, you can replace the placeholders of the GUI title with the contents of data objects text1 to text9. Data objects text1 to text9 must be of a character-type flat data type. The placeholders of the GUI title can be defined in the form "&" or "&i", where i can be a number between 1 and 9. The characters are replaced as follows:
The numbered placeholders "&i" are replaced with the contents of the data objects text1 to text9, whose names contain the same number i for the second digit.
The non-numbered placeholders "&" are replaced with the contents of the remaining data objects text1 to text9 according to their order.
If no data object is specified for a placeholder, it is represented by a blank character. Two successive "&" characters "&&" in the title bar are not replaced with the contents of text1 to text9, but with the character "&".
Example
In the following example, the GUI title TITLE_0100 of the program specified in prog is set in a PBO module, where the placeholders "&1" and "&2" of the title are replaced with the contents p1 and p2.
DATA: title TYPE string,
prog TYPE string,
p1(10) TYPE c,
p2(10) TYPE c.
MODULE status_0100 OUTPUT.
title = 'TITLE_0100'.
prog = '...'.
p1 = '...'.
p2 = '...'.
SET TITLEBAR title OF PROGRAM prog WITH p1 p2.
ENDMODULE.
SET TITLEBAR
Syntax Forms
Set title of screen
1. SET TITLEBAR title [OF PROGRAM prog]
[WITH text1 ... text9].
Set title of list
2. SET TITLEBAR title [OF PROGRAM prog]
[WITH text1 ... text9].
SET TITLEBAR - Liste
Syntax
SET TITLEBAR title [OF PROGRAM prog]
[WITH text1 ... text9].
Extras:
1. ... OF PROGRAM prog
2. ... WITH text1 ... text9
Effect
During list processing, this statement sets the GUI title, specified in title, for the display window of the current list level and all following list levels up to the next statement SET TITLEBAR. The statement has - for the most part - the same syntax and semantics as for screens.
In contrast to the screens of dynpros, each list level automatically remains linked to the title set for it. When you return from the display of a higher list level to the display of a lower list level, the latter is displayed with the title that was set for it.
Addition 1
... OF PROGRAM prog
Addition 2
... WITH text1 ... text9
Effect
As for screens.
Reward points if helpful.
Regards
Nilesh -
Hi experts,
I have a question regarding Web Dynpros possibilities to create dynamically gui. In my requirement I know only during runtime how many textboxes / checkboxes i will need.
Is there a way to approach this in Web Dynpro ? With an jsp and the backend information it would be possible. Now I am asking me how I can make create something like a loop over a collection with the UI elements in Web Dynpro.
Regards
FloThis is probably more suited for the Web Dynpro forum.
However, here's a document for Web Dynpro for java which contains a tutorial on Dynamic UI Manipulation:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/74cda090-0201-0010-6b91-f85b2489f765
There's some tutorials for Web Dynpro for ABAP as well. A search for Dynamic UI Manipulation should give you enough hits on the topic. -
Great Challenge !! No one is able to Tell Solution ? Dynamic GUI Updation
Topic: Dynamic GUI Updation on msWindows when user changes Display properties.
(I post this Question last month and have't got any answer, Is there no way for this ?)
I want to dynamicly Update my UI on msWindows when user changes Display properties, Like other windows applications.
i am doing this procedure-
1.to get windows look & feel-
UIManager.getSystemLookAndFeelClassName()
2.To receive Events when when user changes Display properties-
Toolkit.getDefaultToolkit().addPropertyChangeListener( "win.desktop.backgroundColor" ,new Java.beans.PropertyChangeListener()
public void propertyChange(java.beans.PropertyChangeEvent e)
3.To Reflect it in GUI-
SwingUtilities.updateComponentTreeUI(TOP COMPONENT);
But it only reflects the Border & Title Bar of My application.
pls. suggest what can i do ?
Regards
Naveen SharmaI seem to remember looking at a similar thing in the Java demos that came with jdk1.3. I could be wrong...
Let me see...
Aha! Here it is.
on my pc the path is
C:\jdk1.3\demo\jfc\Metalworks
then click on the jar file. The demo allows you to change the background color, font size on the toolbar etc..Another demo Swingset2 allows you to dynamically change the look and feel. I hope this helps. If you don`t have these demos I could always send you the code.
Regards
Grahame -
It can do internal reconciliacion with SDK
Anybody know it's if It can internal reconciliacion with SDK
I need reconcile a purchase invoice with a jounarl entry with SDK
Plaase help me.
Best regards.
ClaudioHi,
what you can do is to develop an AddOn
that works with UIAPI.
you open all windows with your addon and click everything you need.
ok, you will see some minutes "windows opening and closing and data selecting"
but at least it works
lg David -
Dynamic stamps with multiple editable fields
Our Accounting department wants to go completely digitable with invoices.
For them to be able to do this they require a stamp that has several editable fields such as
General Ledger number
Financial Controllers name
Comments
Date
Approval status
They want to be able to stamp a PDF invoice and then fill in the fields manually.
I cannot find a stamp that will do this. I tried a couple add-in stamp apps for Acrobat 9 but they did not offer this kind of feature.
ThanksHi teede,
We have begun publishing a large amount of information on creating/developing custom dynamic stamps at www.pdfscripting.com due to the number of requests for information on these powerful PDF workflow tools. It is a membership site requiring a paid membership for full access to all content, but we recently published a free video "PDF Stamps Gone Wild!" on the home page under Featured Videos that shows many possibilities for what you can do with custom dynamic stamps.
We'll be adding downloads of some the stamp files shown in the video over the next few weeks.
Hope this helps,
Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com -
Is there a way to interface Labview Web GUI with Fusion Charts?
Is there a way to interface Labview Web GUI with Fusion Charts for dynamic web presentation?
http://www.fusioncharts.com/I have a ballistics program which our clients can use (see attached). Basically there is a series of Cascading Combo boxes that the user must select for Bullet Manufacturer, Caliber, and Bullet ID. The program then goes out to the relevant data file (.CSV) and provides ballistic inputs for the selected projectile. The user is also required to enter in additional data, such as Sight Height, LOS Range, Temp, etc.. Once all data is input, the user either hits the Calculate Button or the Tab (I'm using Event Structures and I now realize this is an issue for Web UI Builder), and the data gets passed to a MathScript which then crunches numbers and spits output to fill a table and a series of Graphs based upon the tablulated data (if so desired).
I was hoping to use Labivew for the first two parts ( Data Collection and Number Crunching) and use something like Fusion Charts for the presentation. I tried learning Ruby on Rails. I was successful with the Ruby part (basically the Mathscript portion) but really got hung up on the Rails section and the need for something like JSON to interface with it. Could not find a useful source of information which really showed you how to combine the two effectively.
Attachments:
Ballistics1.JPG 144 KB
Ballistics2.JPG 265 KB -
Dynamic action with set value on date field
Hi,
I'm using APEX 4.02
I'm trying to calculate the age based on the date of birth dynamically on a form. I'm trying to do this with a (advanced)dynamic action with set value.
I'm able to get this kind of action working based on a number field etc, but NEVER on a date field.
I've read all posts on this subject but so far no solution. Even if I try to simply copy the value over to another date field or typecast it to a string ( to_char function ) it does not work. So for me the problem seems to be in the source field being a date field.
I've tried using the source value as is in a select statement :
select :P33_GEBOORTEDATUM from dual;
and also type casted based on the date format :
select TO_DATE(:P33_GEBOORTEDATUM,'DD-MON-YYYY') from dual
but still no luck.
On the same form I don't have any issues as long as the calculation is based on number fields, but as soon as I start using dates all goes wrong.
Any suggestions would be greatly appreciated. If you need any extra info just let me know.
Cheers
Bas
b.t.w My application default date format is DD-MON-YYYY, maybe this has something to do with the issue .... ?
Edited by: user3338841 on 3-apr-2011 7:33Hi,
Create a dynamic action named "set age" with following values.
Event: Change
Selection Type: Item(s)
Item(s): P1_DATE_OF_BIRTH
Action: Set value
Fire on page load: TRUE
Set Type: PL/SQL Expression
PL/SQL Expression: ROUND( (SYSDATE - :P1_DATE_OF_BIRTH)/365.24,0)
Page items to submit: P1_DATE_OF_BIRTH
Selection Type: Item(s)
Item(s): P1_AGE
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1
Maybe you are looking for
-
Large Memory Usage and Frozen [thread dump attached]
Hi, SQL Developer (Version 2.1.1.64, WinXP Pro, Java 1.6, Oracle 10g R2) always uses at least 550MB of memory, if left open, for more than a day, it invariably goes up to 700-800MB. If I close all windows and connections, virtually no memory is recla
-
Multiple Email Accounts on iPad
I have a POP email service - att.net I have a IMAP email service - me.com Everyone knows me from my att.net address and I would like to keep it that way. However, I would like to take advantage of the IMAP features at me.com. I have forwarded my att.
-
Re: variable might not have been initialized
Please use code tags (simply select the code and press the code button, this will format the code nicely). You can give variables a value at declaration to keep the compiler happy; you don't actually have to use this value but Java likes to give vari
-
Run-time error -2147217843 (80040e4d)
Hi, I've Run-time error -2147217843 (80040e4d). Does anyone know how to fix it ? Thank in adv.
-
Please help: Using Oracle 10g - Apex 3.2 This seems too easy...simply want to pass the value of a radiogroup selected item to another page. The first page (263) is a summary page displayed as radiogroup P263_SUMMARY_LIST : CD Special Rate - 45 Checki