Adding dynamic panels
My application needs to dynamically decide how many components will be present in the panel depending on the clauses. For each clause, I have designed a seperate panel,(its design is fixed) . But the number of clause panels to be included in the main panel is dynamic. How do I add the panels to the main panel for display?
I was successful in adding a single panel to the main panel. For this I had to define the layout of the panel again and set its horizontal and vertical group. But how do I add a list of components. If I add a for loop within the layout.setHorizontalGroup() or layout.setVerticalGroup(), it does not work. Also panel.addLayoutComponent() did not work. Can anyone please tell me how will I add the components dynamically.
Its still not working.
In my application I have some user defined panels. The component I need to add to the main panel is a user defined panel.
The code is as follows, where panelBetween is a user-defined panel in the package com.HelperTool
com.HelperTools.panelBetween between1 = new com.HelperTools.panelBetween();
between1.jCheckBoxBetweenCondition.setText("Where userid between");
jPanelMain.add(between1);
jPanelMain.revalidate();
jPanelMain.repaint();
Similar Messages
-
In outlook 2013 Add-In, Adding dynamic menu to <splitButton idMso="DialMenu"> is working and the same code is not working in outlook
2010 Add-In. please let me know, if i am missing something. Below is the xml and screen shot
<contextMenu idMso="ContextMenuFlaggedContactItem">
<splitButton idMso="DialMenu">
<menu>
<dynamicMenu id="CallContactwithFreedomvoice
" label="CallContactwithFreedomvoice"
getContent="OnGetContenttest" insertAfterMso="Call"/>
</menu> </splitButton> </contextMenu>Hi Narasimha prasad2,
Based on the description, the context menu for the flagged contact doen't work in Outlook. I am tring to rerpoduce this issue however failed.
I suggest that you check the state of the add-in first to see wether the add-in was loaded successfully.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to hide columns that are getting added dynamically to UI Element 'Table
In SRM 7.0 while displaying a RFx, click on "responses and awards" button.
In the response comparision tab once the user selects response number and clicks on "compare all responses".
Item details table is displayed with fields item number,internal number,item description,........,Price etc.
Requirement is to hide the price column from the table.
The UI element type is 'Table'.
But the catch is there is no column price visible at layout design level.
This field is getting added dynamically at run time.
When i right click and see the 'more field help' at the front end i get the field id as 'GRP_1_COL_3_TXTV'.
lo_table ?= view->get_element( id = 'ITEMS_TABLE' ).
lo_column = lo_table->get_column( id = 'GRP_1_COL_3_TXTV').
ASSERT lo_column IS NOT INITIAL.
lo_column->set_visible( EXPORTING value = '01' ).
I had written the above code in the pre-exit of WDDOMODIFYVIEW.
But i am getting dump as assertion failed.it says no column by name 'GRP_1_COL_3_TXTV'.
Please help me inhow to hide fields or buttons getting generated dynmically.
Regards,
Venkat Raghavan.Hi Anitha,
What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
Any how i am giving solution in this way.
If both inputs are given proper table output is displayed
Write your below logic in the WDDOMODIFYVIEW )
Here i am assuming that you already have a table element in the view.
Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
data:lr_table type ref to cl_wd_table,
lr_column type ref to L_WD_TABLE_COLUMN.
lr_table ?= view->get_element( 'TABLE1' ).
CALL METHOD LR_TABLE->REMOVE_COLUMN
EXPORTING
ID = 'TABLE1_color'
INDEX =
RECEIVING
THE_COLUMN = lr_column.
i want to hide some empty rows also at runtime based on inputs.
Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
delete itab from wa where key1= "12" and key2="abd".
Now bind the internal table to context node.
LO_ND_hcm->BIND_TABLE(
NEW_ITEMS = it_final
SET_INITIAL_ELEMENTS = ABAP_TRUE ). -
How can we split the image when its added dynamically ?
Hi Experts,
I have an image where i'm calling a DAL in Entry tab Data section under section level properties.As you know that will execute during Entry process.In that DAL i'm Adding an image based on the user choice during entry.
When image added that should be accomedate the spaces availale in the form.First half of the section can accomedate in the first page and secound half will go to next page.
I have used CANSPLITIMAGE rule,but that is not get executed during entry process.
Can someone help me How to split the image during entry process when its added dynamically ?
Thanks,
RAMAN C.Aside from what you might think of as the origin placement, Gendata rules are not run during Entry operations. As such, you are not able to do what you describe in versions before 12.2. Starting in 12.2, you still can't execute Gendata rules, however there is a newly supported feature when DAL adds a section that will look for the existence of the CanSplitImage rule and assigns an internal attribute that will allow the section to split during entry. This isn't the same as running the rule, but the net effect should be acceptable. (At some point in the future, perhaps this internal attribute will become something you can just set when adding the section on the form and you won't have to specify the CanSplitImage rule at all - for Batch or Entry. That would be great.) In the meantime, if you are not using 12.2, your only option is to break your section up into smaller section components and add them separately. That should help minimize unused space on the page when something doesn't fit.
-
Adding dynamic attributes to static context node
Hi All,
I have defined a context node LINES with several attributes. This is done staticly during developmenttime.
During run-time node LINES is extended with several attributes dynamicly. See below:
10 HEADER_GUID ->
11 DETAIL_GUID ->
12 EXTERNAL_ID ->
13 OBJECT_TYPE ->
14 IN_OUT_PLAN ->
15 TRAFFIC_LIGHT_1 ->
16 TRAFFIC_LIGHT_2 ->
17 TRAFFIC_LIGHT_3 ->
18 TRAFFIC_LIGHT_4 ->
19 _LOCATION \TYPE=STRING ->
20 _ZZTOPGROUPING \TYPE=STRING ->
21 _STATUS \TYPE=STRING ->
22 _100000200 \TYPE=STRING ->
19..22 are added dynamicly.
I have an internal table that matches de new context. This <fs_tb_tree_new> I want to bind like:
*&- bind table
lr_node->bind_table( new_items = <fs_tb_tree_new>
set_initial_elements = abap_true ).
In <fs_tb_tree_new> the dynamicly added attrbutes contains values e.g. (the static attributes also have values via <fs_tb_tree_new>):
_LOCATION _ZZTOPGROUPING _STATUS _100000200
5 Africa 0002 Reporting Entity 0.000
6 Russia, CIS 0003 Identify 0.000
An ALV presents the values of the attribute. But.... only the values of the static part are presented, not the dynamic attributes added during runtime.
Please advise what I forget or do wrong .
Thanks in advance.
JohnI solved the issue:
If you use a combination of static attributes added with dynanic attributes (during runtime) for dynamic ALV, I advise to create a new node and bind the values to this new created node:
Cheers, John
wd_this->extend_context( EXPORTING im_struc_descr = lr_cl_abap_structdescr
IMPORTING ex_node = lr_node_alv ).
Method:
*&- Create new dynamic context LINES_DYN
Node for alv-table
lr_node_info = wd_context->get_node_info( ).
CALL METHOD lr_node_info->add_new_child_node
EXPORTING
name = 'LINES_NEW'
static_element_rtti = im_struc_descr
is_static = abap_true
is_multiple = abap_true
is_multiple_selection = abap_false
RECEIVING
child_node_info = lr_subnode_info.
lr_node = lr_subnode_info->get_parent( ).
lr_node = wd_context->get_child_node( 'LINES_NEW' ).
ex_node = lr_node.
*&- bind table for alv
lr_node_alv->bind_table( new_items = <fs_tb_tree_new>
set_initial_elements = abap_true ). -
Adding a Panel to JApplet doesn't work properly
Hi there,
I have a class "Editor" extended from JPanel to edit some data. In my JApplet I added a JMenubar with setJMenubar() and registered an ActionListener to the menu items. Everything works fine except the displaying of the EditorPanel after choosing the menu item.
When I'm adding the Panel in the constructor of the applet it is shown correctly.
public class EditorApplet extends JApplet implements ActionListener
public void init()
setJMenuBar(createJMenuBar());
Editor e = new Editor();
getContentPane().add(e); // works perfectly
e.load(2); // load data into editor
public void actionPerformed(ActionEvent e)
if (e.getActionCommand().equals("..."))
Editor e = new Editor();
e.loadObjects(1);
getContentPane().removeAll();
getContentPane().add(e); // nothing happens!?
getContentPane().repaint(); // ???
repaint(); // ???
}What else needs to be done to display the 'new' Editor?Wait. You're adding an ActionEvent to your panel.
I think you want to do "add(this.e)". -
AdvancedDataGrid headerrenderer children added dynamically do not display
The AdvancedDataGrid in Flex 3.x does not correctly render children of a custom headerrenderer when the children are added dynamically. This works correctly with the DataGrid.
An AdvancedDataGrid has a custom headerrenderer with one field to display the column header text.
A show button below the grid adds a text input field in the header below the column text in the header.
When the show button is selected, the AdvancedDataGrid header sizes correctly to leave space for the field but does not display the field.
If I drag the column, the text input field displays as I am dragging. See the 3 images below.
I have included the 3 source files. What is the correct way to dynamically add children to an AdvancedDataGrid header?
Thanks.
1. AdvancedDataGrid with only the column header text:
2. After Show is selected, the header is sized for the text field below:
3. Only dragging the column header temporarily shows the text field:
1. TestGrid.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="onInit(event)" width="100%" height="100%">
<mx:Script>
<![CDATA[
protected function onInit(event:Event):void {
var cols:Array = grid.columns;
var colWidth:int = grid.width;
var col:AdvancedHeaderColumn = new AdvancedHeaderColumn();
col.wordWrap = true;
col.show = false;
var headerRenderer:ClassFactory = new ClassFactory(AdvancedHeaderLabel);
// Add any custom properties
headerRenderer.properties = {text: "Column1 header that wraps", dataGridColumn: col};
col.headerRenderer = headerRenderer;
col.headerWordWrap = true;
cols.push(col);
grid.columns = cols;
grid.measuredWidth = colWidth;
protected function showText(event:Event):void {
var cols:Array = grid.columns;
for each (var col:AdvancedHeaderColumn in grid.columns) {
col.show = show.selected;
grid.columns = cols;
]]>
</mx:Script>
<mx:AdvancedDataGrid id="grid" height="100%" width="100%" variableRowHeight="true" editable="true" lockedColumnCount="1"/>
<mx:Button label="Show" id="show" click="showText(event)" selected="false" toggle="true"/>
</mx:Application>
2. AdvancedHeaderLabel.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" verticalScrollPolicy="off">
<mx:Script>
<![CDATA[
import mx.controls.TextInput;
import mx.core.UITextField;
// properties
public var text:String;
public var dataGridColumn:AdvancedHeaderColumn;
// Column header
public var textField:UITextField;
// Optional text input field
public var textInput:TextInput;
override protected function createChildren():void {
super.createChildren();
// Always add the header text
textField = new UITextField();
textField.text = text;
textField.multiline = true;
textField.wordWrap = true;
textField.percentWidth = 100;
addChildAt(textField, 0);
override protected function commitProperties():void {
super.commitProperties();
// Add the text input field?
if (dataGridColumn && dataGridColumn.show && !textInput) {
textInput = new TextInput();
box.addChild(textInput);
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
// Position and size the textInput field
if (dataGridColumn.show && textInput) {
textInput.y = textField.getExplicitOrMeasuredHeight();
textInput.setActualSize(unscaledWidth, textInput.getExplicitOrMeasuredHeight());
override protected function measure():void {
super.measure();
measuredWidth = textField.getExplicitOrMeasuredWidth();
measuredHeight = textField.getExplicitOrMeasuredHeight();
// Make room for the text input field
if (textInput) {
measuredHeight += textInput.getExplicitOrMeasuredHeight();
]]>
</mx:Script>
<mx:VBox height="100%" width="100%" id="box" verticalAlign="bottom"/>
</mx:VBox>
3. AdvancedHeaderColumn.as
package {
import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
public class AdvancedHeaderColumn extends AdvancedDataGridColumn {
public var show:Boolean = false;
public function AdvancedHeaderColumn(columnName:String=null) {
super(columnName);Thanks Hackintosh.
It prints as it views, as a corrupt jpeg. I also dug into console and it confirmed there was an error about a corrupt jpg. The most interesting thing is if I open the bad pdf in Photoshop the whole image is there with no signs of corruption. This leads me to believe it's something with how OSx and/or Safari are rendering the jpgs. Another curious sidenote, Safari on Windows works fine but if you save the pdf, move it to a mac and open it, you get the corrupted jpg again.
I think I'm going to try and stop swimming upstream now. At the end of the day I don't care if the images are pngs, tiffs, or eps. I'm going to try feeding a few different formats and see if that doesn't fix the problem. -
Adding dynamic images to your website using Dreamweaver
Hi
I've been working on a website which has been in use by public for some months now.
I recently wanted to add a simple product catelogue. I can do this just by creating my database connection and using the recordsets.
However I wanted to add an image thumbnail to each product record.
I found the above topic in the Adobe Help 'Adding dynamic images to your website using Dreamweaver'
What I really would like to know is what exactly is put in the image_location field of the table, how is this field populated and then how to view the picture.
I have tried, as per instructions, but the picture is not showing.
I use php as I dont know coldfusion, but I'm sure the process must be pretty similar.
If anyone can shed some light then that would be really appreciated.
Many thanks lizkomrad78 wrote:
> I'd like to know how do you add background music to a
website using
> dreamweaver CS3?
> I'm using dreamweaver CS3 to create a website for my
church (they
> already have a domain) and I'm trying to figure out how
to add
> background music.
>
> Also, is there a way for me to add a music player or
something to the
> page that starts playing when they enter the site and
let's you pick
> different songs from it?
>
> And lastly, if I just embed a song or whatever it is as
the
> background music, can I make it loop or play a different
song
> afterwards?
As most anyone else will say, so I will say; *please don't
start it
automatically!*
Playing music on a site is fine, but making it play
automatically when you
go to the site will alienate lots of people; especially those
having a quick
web surf at work or who have other music on whilst they're
working.
But back to your question; have a look at the XSPF music
player
http://musicplayer.sourceforge.net/).
It comes in different visual versions
(can modify it with a bit of Flash knowledge), allows you to
select
different songs or just leave it looping, or you can just
loop one song. And
yes, you can make it start automatically.
See
http://www.blastoffmusic.org
for an example of a christian site where it
is used (on the inside pages)
HTH,
Pete.
Peter Connolly
http://www.kpdirection.com
Utah -
Adding a panel to an open GUI with a background image
Dear java programmers,
I want to add a JPanel with some components on an open(visible) GUI whenever a button is clicked. That JPanel carries a button, a progress bar, a label, and a textarea inside a scrollpane. Whenever the button of the panel is clicked a program starts working, and the progress and output of that program is reflected on the progress bar and textfield respectively. I 'put the code to generate and add the panel in a so called "Progress" class, which is different from the GUI class that contains the code to create and display the main gui.
My gui also has a background image to make is look fancy, which is added by the following way:
GUI mygui = new GUI();
mygui.getContentPane().add(new ImagePanel(new ImageIcon("/home/thomas/Documents/external_placement/Report/presentation4_transp.png").getImage()));
My problem is that the background image is hiding the panel (whenever added) and only when the cursor passes above the button inside the panel it becomes visible (just the button). However when I click the button and the program starts I can see everything inside the panel.
Is there an efficient way of making the panel visible at once?
thanks in advance,
TomOk now that I'm certain about how to use code tags I'll try to make myself clear.
First of all I made it work by removing the ImagePanel , adding the JPanel and re-adding ImagePanel, all from within the Progress.class. But I'm not sure if this is the right way.
Below I'll make an attempt to provide some SSCCE--code. First of all the classes I'm using are 2, the GUI.class which contains all the components of the gui, and the Progress.class which has the additional panel and adds it to the gui whenever the "submit" button is clicked.
The code from GUI.class which is relevant to this question is:
public class GUI extends javax.swing.JFrame{
//the following are declared as "protected" because they are also used elsewhere
protected static GUI mygui = new GUI();
protected static ImagePanel backgroundImagePanel = new ImagePanel(new ImageIcon("/home/thomas/Documents/external_placement/Report/presentation4_transp.png").getImage());
/* The constructor */
public GUI() {
initComponents(); //this method initializes all the components, puts the in a JTabbedPane and packs them the JFrame
setLayout(new BorderLayout());
/* the eventlistener of the "submit" button */
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt) {
ProgressBarTest pbt = new ProgressBarTest(mygui);
pbt.StartProgress();
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
mygui.getContentPane().add(backgroundImagePanel);
mygui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
mygui.pack();
mygui.setVisible(true);
} And then I have my Progress.class:
public class Progress implements ActionListener, Runnable {
//the following are declared as "private" because they are also used elsewhere inside the class
private static javax.swing.JProgressBar progressBar = new JProgressBar(0, 100);
private static javax.swing.JTextArea progressTextArea = new javax.swing.JTextArea(5,20);
private static ProgressBarTest _this;
{color:#0000ff}private static GUI mygui;{color}
/* the constructor */
public Progress(GUI gui){
_this = this;
{color:#0000ff}mygui = gui;{color}
private static void createAndShowPanel(){
javax.swing.JScrollPane progressScrollPane = new JScrollPane(progressTextArea);
javax.swing.JLabel progressLabel = new JLabel("Progress");
javax.swing.JButton progressButton = new JButton("Do something");
progressButton.addActionListener(_this);
javax.swing.JPanel progressPanel = new JPanel();
javax.swing.GroupLayout progressPanelLayout = new javax.swing.GroupLayout(progressPanel);
progressPanel.setLayout(progressPanelLayout);
progressPanelLayout.setAutoCreateGaps(true);
progressPanelLayout.setAutoCreateContainerGaps(true);
progressPanelLayout.setHorizontalGroup(
progressPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(progressPanelLayout.createSequentialGroup()
.addContainerGap()
.addGroup(progressPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(progressScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 872, Short.MAX_VALUE)
.addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, 872, Short.MAX_VALUE)
.addComponent(progressLabel)
.addComponent(progressButton, javax.swing.GroupLayout.Alignment.TRAILING))
.addContainerGap())
progressPanelLayout.setVerticalGroup(
progressPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, progressPanelLayout.createSequentialGroup()
.addContainerGap(25, Short.MAX_VALUE)
.addComponent(progressButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(progressLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(19, 19, 19)
.addComponent(progressScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
javax.swing.GroupLayout layout = new javax.swing.GroupLayout({color:#0000ff}mygui.getContentPane(){color});
{color:#0000ff}mygui.getContentPane().setLayout(layout);{color}
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(progressPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent{color:#0000ff}(mygui.jTabbedPane1{color}, javax.swing.GroupLayout.PREFERRED_SIZE, 496, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(100, Short.MAX_VALUE))
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent({color:#0000ff}mygui.jTabbedPane1{color}, javax.swing.GroupLayout.PREFERRED_SIZE, 362, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(progressPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
{color:#0000ff} mygui.getContentPane().remove(mygui.backgroundImagePanel);
mygui.getContentPane().add(progressPanel, BorderLayout.SOUTH);
mygui.getContentPane().add(mygui.backgroundImagePanel);
mygui.pack();{color}
public static void StartProgress(){
ProgressBarTest t = new ProgressBarTest({color:#0000ff}mygui{color});
new Thread(t).start();
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowPanel();
public void actionPerformed(ActionEvent ae){
// signal the worker thread to get crackin
synchronized(this){notifyAll();}
// worker thread
public void run(){
while(true){
// wait for the signal from the GUI
try{synchronized(this){wait();}} catch (InterruptedException e){}
Dock dock = new Dock();
int chainArrayLength = dock.PrepareDockEnvironment();
// start a long-running process -this is a task performed by "Dock.class"
for (int i = 0; i <= 100; i++){
progressBar.setValue(i*100/chainArrayLength);
progressTextArea.append("Docking chain No "i".\n");
System.out.println("actionPerformed sets progressBar value to: "+i);
dock.StartDocking(i);
}Please notice how I use the GUI object (named "mygui") inside the Progress.class to retrieve components from the main gui (particularly the jTabbedPane1), align them with the additional panel (progressPanel) and add them to the main gui again. I tried to color blue the lines where the GUI instance is used but I'm not sure if they will be visible.
My questions are:
1. Is this the right way to add a new panel to a jFrame from an external class? Do I add jTabedPane twice in the above code?
2. Is this the most efficient way of making the additional panel visible at once, meaning by removing the ImagePanel (backgroundImagePanel) adding the panel (progressPanel) and finally adding again the ImagePanel (backgroundImagePanel)?
Hope I was perspicuous.
Tom -
Hi, I try too create a dynamic panel, but when a do ASSERT(panel), the plugin enter in if(!panel), someone know what is wrong ?<br /><br />PMLocaleId localeId = LocaleSetting::GetLocale();<br /><br />IDataBase *panelDB = ::GetDataBase(panelMgr);<br /><br />InterfacePtr<IControlView> panel((IControlView*) ::CreateObject(panelDB,RsrcSpec(localeId, kXXXPluginID, kViewRsrcType, kSDKDefPanelResourceID, kTrue), IID_ICONTROLVIEW)); <br /> <br />ASSERT(panel); // HERE O CURRIED A ERROR.<br />if(!panel){<br /> break;<br />}<br /><br />Someone can help me PLZ!!
I assume the that the Dynamic panel example works for you (?) If so, the failure could come from a wrong ID to the RsrcSpec call.
-
Row action event on data table does not occur when rows added dynamically
Row action event on data table does not occur (only refreshes the page) when the rows in the data table are added dynamically at run time using button click and java bean.
please tell me a way to catch the row click event when adding rows dynamically to data table. i m using RAD 6.0 to develop Faces jsp pages.
thanks
amiti got the answer
-
Adding dynamic content to accordion panels
Hello,
and thank you in advance for any help.
I need to make a new web page for my girlfriend. She's a
photographer which means she needs to update her page pretty often.
The usual small systems however were way too complicated for her.
After seeing Spry, I decided to use it, along with Relay
which gives an easy option for updating content. So here's my plan:
- I install Relay so she has sort of a back-end to update her
pictures.
- I have a php script which reads out the directories and
makes an xml file to use with spry.
However I find it very difficult to understand how I should
use this xml file. Additionally, she wants to have the accordion
panels, so I have to put the code (probably the same code with only
a different xml filename for each directory) into every panel.
Could anybody help me with that? Please note that I haven't
started anything yet and am right now trying stuff locally.
Thank you again.
MeteHello again,
I'll try to describe the case once again, this time more
clearly:
- I will install Relay onmy server to enable uploading
pictures. Relay stores the upload pictures in different directories
which are created by the user and the path to each directory is
known.
- A PHP-Script reads out the content of these directories
(names, paths etc) and gives a list as an XML-File.
What I want to do is:
Make an HTML-Page and use Spry Accordion Panels in it.
Let's say I have 5 panels. Each panel (in itself) shall use
the XML-file (one file per directory) to display the pictures. The
styling will be made by using the CSS.
My problem is:
I just can not figure out how to use the regions etc in Spry.
I have to admit that so easy it is to use, it 's also pretty
difficult to understand the logic behind it for non-skilled users
(especially for those who do not have Dreamweaver etc). I can't
find the answers to my questions like: Why do the datasets get the
prefix "dsXXXX"?
I only want to read the XML-File and display these pictures
in an Accordion Panel without floating, which means it has to
scroll left and right.
I hope this makes it easier to understand :)
Thank you once again!
Mete -
Adding Dynamic remarks to the report by user
Any idea's of adding text to queries? Our customer is using Crystal Reports based on Baan DWH. On of the functions is adding textblocks to the report and put in remarks / comments.
This will be <u>replaced</u> by BW. Is it possible to add (dynamic) <b>textblocks</b> to the BW reporting which can be filled in by the <b>end-user</b>? Any advice will be great!Yes it is.
In BW, this can be achieved by using document management. The option will be available to the user via context menu in the report (goto-->documents - text/pdf/img etc). In your case user can choose to create/change/display a 'text' document, which will be attached to the report.
cheers, -
How to create dynamic panel tree view?
Hello,
I can create dynamic pallete panel without any problems (from sdk/paneltreeview) , but i can't when it's a panel tree view (from sdk/paneltreeview). I don't know how to initialize it. Can i call IID_ITREEVIEWWIDGETMGR's impl directly in ActionComponent to create panel widget? and how?
Thanks in advance.solved by self
-
Adding dynamic filter expressions
I am working on a ESB flow and I wanted to write a filter expression that can dynamically fetch database values and accordingly route the flow.
Since it didnt work, I thought of assigning this to a xsl variable and compare this variable value in the next Routing Service node Filter Expression.
So I tried as follows: filterVar" variable holds the value of what I am looking for.
<xsl:template match="/">
<inp1:CommitmentRequest>
<xsl:variable name="filterVar" select='orcl:lookup-table("accounts","dest",/imp1:AccountsRequest/imp1:Code/imp1:SITEID,"acc_code","DSname")' />
and in the next Routing Service I have an expression written as:
$filterVar = 'ACC1'
Is it the correct way of doing? By approaching this variable assignment, I will be adding a Routing Service un necessarily. Still, if this is the way it is going to work and if there is no straight forward way, I will have to use this approach.
Please note that "/imp1:AccountsRequest/imp1:Code/imp1:SITEID" is the correct tree structure as I can assign this value directly in XSL mapping to a new field of target XML. I didnt want to assign this way as I dont want to create a new variable in XML as it will never be used as data in successive stages.
Thanks,Thanks Dave.
Certainly the namespace issue was there. But, even with that issue fixed, message is not passing the filter stage.
I mapped this expression to a target element of target xml and it assigned a value of 'ACC1' to it.
orcl:lookup-table("accounts","dest",/inp1:AccountsRequest/inp1:Code/inp1:SITEID,"acc_code","DSname")
The strange thing I noticed id that in none of the cases as montioned below, the message doesnt pass the filter stage.
$filterVar = 'ACC1'
$filterVar != 'ACC1'
Any idea why?
Instead of using variable assignment method, do you have any other idea that lets me retrieve database values on the fly and make decisions?
I tried lookup-table() in filter expression directly, that didnt work either. Ideally, I wanted this approach to work.
I have also tried data enrichment as suggested by Allan Galsgow. Didnt have any luck either.
Thanks,
Note: The varaible assignment is done as follows in the xsl mapping:
<xsl:variable name="filterVar" select='orcl:lookup-table("accounts","dest",/inp1:AccountsRequest/inp1:Code/inp1:SITEID,"acc_code","DSname")' />
Message was edited by:
user582595
Message was edited by:
user582595
Maybe you are looking for
-
Multiple users accessing same events
Good Afternoon, i wondered if anyone could assist me. I have described what is going on and have a few questins which i have added in bold. We are a school in the UK running three Apple suites with a mixture of iMacs and macbooks. The scenario: We h
-
Only Remote-Desktop and Replication with 0.0 Reduction
Hi guys, I have a solution with 16 WAAS 4.4.3 and I got good numbers in all default applications except Remote-Desktop and Replication ( All Traffic 53% of Reduction). I can understand not otimize Remote-Desktop Applications cause the customer is usi
-
My old computer crashed so the only place I have my music library is on my ipod. I am trying to copy my old music into my library in itunes but can't find instructions on the internet that work. I can not back up my device because back up shows up
-
I am using the program Z_SAP_HIERARCHY_DOWNLOAD to output a hierarchy in BW to a specified drive. It works fine when I go to SE38 and run it. However, when I run it from a process chain, it doesn't output the file. How can I generate the output file
-
PLEASEE HELP I Drop My Ipod Alot And Now It Wont Charge It Wont Show My Notifications Even Doe They Are On My Home Button Wont Work Just A few Times But Thats It.and when on my vine i doesnt let me hear my vines idk why