Dynamic lists transient elements life span
Dear all,
In sentinel Dynamic lists properties, there is "transient elements
life span" property, The minimum time span is hour, why is not minutes,
hour or day? can the sentinel provide us choice the span? thanks!
steve_zeng
steve_zeng's Profile: https://forums.netiq.com/member.php?userid=3875
View this thread: https://forums.netiq.com/showthread.php?t=48080
This would be better-asked in the Sentinel list; this particular forum is
for plugin issues and dynamic lists are a core feature of Sentinel.
Good luck.
Similar Messages
-
Sorting dynamic listing by element definition field.
Hi,
Does any one know how to sort a dynamic listing by one of the regional definition field?
My situation is currently sorting is done by dDocTitle (<!--$SortField = "dDocTitle"-->). The title that is displayed in website(h1) has a different title from dDocTitle. So although it is sorting by dDocTitle, it looks random in the live website.
So I was wondering if there is a way to sort dynamic listing by one of the element definition field.
I was hoping that something like this will work but it didn't
<!--$SortField = ssIncludeXml(dDocName,"ContentPage/Title/node()")-->
Thanks.
Edited by: K0907163 on 23-Nov-2011 03:00Wish there was a way, but unfortunately I don't think there is without building your own custom sort. SortField only takes metadata fields.
My suggestion is to have your users actually use dDocTitle (or a different metadata field), as opposed to ContentPage/Title/node(). -
Passing Dynamic Number of Elements and Attributes in Orchestrator
i am having trouble determining the best way, from a powershell snippet in a Run .Net Activity, to pass a dynamic list of elements with each element having a dynamic list of attributes . Example:
on one call of the activity the data might be the following:
element1 with 3 attributes
element2 with 2 attributes
element3 with 0 attributes
on another call of the activity the data be the following:
element1 with 0 attributes
element2 with 3 attributes
i understand how to create objects, arrays, and hashes. i would like to know the best way to pass the data above from the .Net activity powershell snippet (where the data is created) to another activity. Ideally I would like to pass
a custom object created with powershell (not an array or hash), but research tells me that it is not possible to publish an object on the Orchestrator databus. Any assistance is appreciated.You can try combining the parameters into a single string in PowerShell separated by a delimiter like a semi-colon. Then you can have a single parameter in the Invoke Runbook activity. Once the parameter is passed you can then use the Split Field activity
that is included in the Data Manipulation IP.
http://orchestrator.codeplex.com/releases/view/83934
You could do something similar for the SQL Query. Just combine the string to a single output in PowerShell and use the PARSENAME function, or something similar, to separate out your parameters.
Matthew Dowst |
Blog | Twitter -
How to create dynamic list element in Site Studio designer?
Hi all,
I have installed the Site Studio Designer(10gR4).The dynamic list element that i have added in the contributor region executes a query to search and display all the files in a particular folder.In the contributor mode when i try to add/edit the dynamic list element it gives an error saying :
Unable to perform the action due to the following reasons:
[+] Unable to retrieve search results. Unable to retrieve search results. Unable to create result set for query 'SELECT IdcColl2.dID, dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.* FROM IdcColl2, DocMeta WHERE IdcColl2.dID=DocMeta.dID AND (((((( xCollectionID >= 14 AND xCollectionID <= 14 ) AND NOT ( (CONTAINS(xDontShowInListsForWebsites, '{DIPP_Sample}') > 0) )))))) ORDER BY dDocTitle desc'. ORA-20000: Oracle Text error: DRG-10599: column is not indexed
I have enabled the full-text search on the content server and also included xWebsites and xWebsiteObjectType columns to be full indexed in the Zone Fields Configuration.Is there any other setting to be done?Please help.
Thanks,
nithyaHi
Include the xDontShowInListsForWebsites also from the zone filed and then update it.Then test it out.
Hope it helps
Srinath -
Using a Site Studio 10R4 Dynamic List Element Definition
Hi All,
I've created and can use a Static List Element Definition > Region Definition > Region Template with no problems based off of the 10gR4 samples.
However, there is no example that I've found to utilise the Element Definition of a Dynamic List. I'm attempting to use the same sample code as provided for a Static List but having no luck displaying the results of the query...
Does anyone have some sample code used in a Region Template or Sub Template to show how we use a Dynamic List Element Definition please?
I noted from another thread in this forum that there are some iDoc calls to make which load the query defined in the Element Definition... I can't find any documentation regarding this either.
Thanks
Edited by: user615721 on May 4, 2009 10:08 AM
Edited by: user615721 on May 4, 2009 10:09 AMFound my answer in another thread, here... Re: Using a Site Studio 10R4 Dynamic List Element Definition
'For 10gR4 Site Studio you can get examples and even a video talking about making dyanmic lists from here:
http://www.oracle.com/technology/products/content-management/ucm/SiteStudio10gR4Tutorials/index.html'
Edited by: user615721 on May 4, 2009 10:25 AM
Edited by: user615721 on May 4, 2009 10:25 AM -
Unable to use #A01# substitution variable in dynamic list
Greetings...
I am attempting to generate a dynamic list on the page. The list will contain a flag indicating whether the list entry is actually hidden to the user or not. If it is hidden to the user, then I want to apply a particular class to that list entry when rendered.
The dynamic list has the following SQL:
SELECT null lvl,
menu.menu_nm label_value,
q'!javascript:$s('P32_MASTER_MENU_ID', '!' ||
menu.menu_id || q'!');!' target_value,
null image,
null image_attribute,
null image_alt_attribute,
case when menu.hidden = 'Y'
then 'class="hiddenNode"'
else null end attribute1
from ( select 'N' hidden, vis.* from std_vw_apex_menu vis
union all
select 'Y' hidden, hid.* from std_vw_apex_menu_hidden hid ) menu
where menu.menu_ty = 'MAINMENU'
order by menu.sort_order
I am then using a list template with the following as the "Current" list entry:
<li class="active"><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>
... and the following as the "Non-Current" list entry:
<li><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>
The result I see in the rendered page however is that the substitution is not happening, as indicated in the following snippet :
<li><a href="javascript:$s('P32_MASTER_MENU_ID', '18893191201');"><span #a01#="">Education</span></a></li>
We are on ApEx 4.2.1. What am I doing wrong as I've seen other threads indicate that it is possible for dynamic lists to use substitution variables in their list templates.
Shane.I found the solution at Attribute substitution not working in templates for dynamic lists.
-
Bug? - Dynamic lists, Apex 4.1
I'm attempting to create a dynamic list (Apex 4.1/Oracle 11.2.0.1) that will ultimately serve as a hierarchical menu structure for a site.
For those that have dealt with this you probably know that there are two main parts, the query against the source table and the associated list template. I'm pretty sure I've got my query correct but would appreciate any comments/feedback on what I've got so far. Here's my query:
select
level,
entry_text label,
entry_target target,
null is_current
from custom_menus
where list_name = 'main menu'
start with list_entry_parent_id is null
connect by prior list_entry_id = list_entry_parent_id
order siblings by display_sequenceThis produces the following output from my table, which looks pretty comparable to the static list I've been using:
LEVEL LABEL TARGET IS_CURRENT
1 My Home f?p=myApp:HOME:&SESSION.::&DEBUG.:::: -
1 My Dashboard - -
2 My Year to Date f?p=myApp:20:&SESSION.::&DEBUG.:::: -
2 My Contest f?p=myApp:26:&SESSION.::&DEBUG.:::: -
2 My Claims f?p=myApp:24:&SESSION.::&DEBUG.:::: -
2 My Current Business f?p=myApp:22:&SESSION.::&DEBUG.:::: -
1 My Search f?p=myApp:810:&SESSION.::&DEBUG.:::: -
1 My Reports - -
2 My Contact Summary f?p=myApp:830:&SESSION.::&DEBUG.:::: -
2 My Production Support Report f?p=EXT_REP:PROD_SUPPORT:&APP_SESSION.::::G_REGION_ID,G_AGENCY_ID,G_AGENT_ID:&P1_REGION_LOV.,& -
2 My Commission Report f?p=myApp:680:&SESSION. -
2 My Chargeback Report f?p=EXT_REP:CHARGEBACK:&APP_SESSION.::::G_REGION_ID,G_AGENCY_ID,G_AGENT_ID:&P1_REGION_LOV.,&P1_AGENCY_LOV.,&P1_AGENT_LOV.: -
1 My myApp™ f?p=EXAPP:HOME:&SESSION. -
1 My Online Store f?p=OLS:HOME:&SESSION. -
1 My Marketing f?p=myApp:710:&SESSION. -So the first question is: does this look correct, from the point of view of what Apex is expecting a dynamic list to look like? It looks like what I would expect, based on the data in my table, but not sure about how the dynamic list is handling the ordering of the list elements.
Assuming this is "correct" and Apex just takes the input in the order it's provided then I'm going to move on the list template. I already have a list template that works with my static list, but when I try to use it with the dynamic list it all falls apart. The nesting of the <ul> and <li> elements gets messed up. The problem seems to be getting the right <ul> and <li> elements in the right areas of the template definition.
If the query above and the output look like what Apex is expecting (I'd appreciate feedback on this) then I'll post some example HTML that's being emitted from my template and see if anyone can see where I might be going wrong. Thanks for any help you might have.
Earl
Edited by: Earl Lewis on Dec 25, 2011 1:25 PMPaul,
That is interesting. Thanks for that pointer. Most interesting part about it is that my list template works just fine for my static list and it goes wonky when I try to apply it to the dynamic list. I think this might actually be getting to the root of the problem.
Perhaps some things are being assumed with the new dynamic lists and maybe stepping on my template design? Guess I need to devise a good test to see if I can better hone in on the problem.
For any others out there that might be reading, this is not resolved so any additional thoughts or feedback will still be greatly appreciated.
Thanks again Paul.
Earl -
WPC - Dynamic List - Link to the page of an wpc_article
Dear all,
Im working with dynamic Lists to show a list view of my wpc_articles.
In the default settings the elements of the list have a link directly to an article. Therefor the property "contentLink" is used.
I wanna change this link to the page where an article is placed. So Im wondering:
Is there anyway to get the path of a page from the article instance e.g. a property like "parentString" or something like that?!
Thanks in advance.
Greetings,Thanks for the answer.
Guess i have to put everything I need in the article element so i do not need to show the page.
Another question occured to me while I was doing that:
When I navigate from a Dynamic List to an Element, it should be possible to navigate back and forth with the buttons I created using the history api.
Instead of the "<a href..." in the default dynamic list I created an onclick event. Right now im trying to navigate to the article with its guid and the method "EPCM.doNavigate(...)" but until know i haven't been able to get it done.
Is it even possible to reach that goal and in case it is am I on the right track or is there a better approach available?!
Thanks in advance...
Greetings, -
WPC 7.3 : Dynamic List : pager
We have been working in WPC 7.3 with Dynamic Lists : this can be used to display news items similar to XML forms, mixed with own forms.
The Dynamic List iView, once added onto the WPC page can be configured to display the number of items.
Example : 4 items. Letu2019s say we have 6 items, then only the four u2018newestu2019 are shown.
What is missing here is a u2018pageru2019 at the bottom , in case somebody wants to see the other two, older items.
There is no standard pager in the KMCWPC05P_3-10008779.SCA file -> com.sap.nw.wpc.dynamicList.sda project.
Before we actually start to develop our own Dynamic List project with pager : anybody managed to add this piece of vital coding?
Or perhaps this is planned for the future?I got a solution regarding this topic.
I followed these steps:
You must set the number of items in you example to six or higher (in your example, the remaining two items wouldn't even get rendered)
You surrounded your Dynamic List layout with "<li>...</li>"
In your theme, you implement a JQuery Paginator (e.g. look here), which works with the list-elements
Tell your paginator to show four items per page
I got something going like this: -
Hello. I've been having problems figuring out how to create dynamic lists. My latest attempt involved using a JList's getSelectedValue( ) in a ListListener class to change form values based on a users selection. The problem is identifying list objects.
All I can come up with is to nest a search algorythm in a loop, invoked from within a list listener class, but this seems highly inefficient if there were, say, several hundred elements in the list.. Of course my measure of efficiency is based on numbers, not a computers processing power, but anyway, is a search this the only way to match selected items with objects, or is there some method I'm overlooking?
Thanks,
nomad
Ex: excuse the weak pseudo-code
ListListenerClass
public void valueChanged(ListSelectionEvent event)
vectorIndex = vector.size( );
while( vectorIndex != -1 ) // used to cycle through comparisons/objects
if (event.getSelectedValue( ) == someObject[vectorIndex].getRelativeTitle( ))
performRequestFormUpdates
else
-- vector index
/** basically, in case it's not apparent, im cycling through the vector's elements in reverse order, copying one object/element per cycle into a buffer object. each cycle compares the selected list item's value -- 'X' -- with the corresponding value in "buffered" object Y, retrieving Y using a getMethod.
**/Hello. I've been having problems figuring out how to create dynamic lists. My latest attempt involved using a JList's getSelectedValue( ) in a ListListener class to change form values based on a users selection. The problem is identifying list objects.
All I can come up with is to nest a search algorythm in a loop, invoked from within a list listener class, but this seems highly inefficient if there were, say, several hundred elements in the list.. Of course my measure of efficiency is based on numbers, not a computers processing power, but anyway, is a search this the only way to match selected items with objects, or is there some method I'm overlooking?
Thanks,
nomad
Ex: excuse the weak pseudo-code
ListListenerClass
public void valueChanged(ListSelectionEvent event)
vectorIndex = vector.size( );
while( vectorIndex != -1 ) // used to cycle through comparisons/objects
if (event.getSelectedValue( ) == someObject[vectorIndex].getRelativeTitle( ))
performRequestFormUpdates
else
-- vector index
/** basically, in case it's not apparent, im cycling through the vector's elements in reverse order, copying one object/element per cycle into a buffer object. each cycle compares the selected list item's value -- 'X' -- with the corresponding value in "buffered" object Y, retrieving Y using a getMethod.
**/ -
Is WPC dynamic list recursively showing content?
Hi guys,
I have this KM folder structure with WPC's articles:
FOLDER 1
|
|_ FOLDER A
| |_ article a.1
| |_ article a.2
|
|_ FOLDER B
| |_ article b.1
| |_ article b.2
|
|_ article 1.1
|_ article 1.2
articles 1.1 and 1.2 are direct children of Folder1 (ie: they are sibling for Folder A and Folder B). I hope it's clear :S
Here comes the trouble. I'm using a WPC Dynamic List pointing to Folder 1, but instead of showing only articles 1.1 and 1.2, the list is populated with ALL articles within Folder 1 and Folder A and Folder B.
I'm guessing it is reading the folder structure recursively. I need to display ONLY the two last articles (article 1.1 and 1.2).
Is this a bug or, by the opposite, is the expected behavior?
Thanks in advance.
Best Regards,
MarceloThanks for the answer.
Guess i have to put everything I need in the article element so i do not need to show the page.
Another question occured to me while I was doing that:
When I navigate from a Dynamic List to an Element, it should be possible to navigate back and forth with the buttons I created using the history api.
Instead of the "<a href..." in the default dynamic list I created an onclick event. Right now im trying to navigate to the article with its guid and the method "EPCM.doNavigate(...)" but until know i haven't been able to get it done.
Is it even possible to reach that goal and in case it is am I on the right track or is there a better approach available?!
Thanks in advance...
Greetings, -
How can I dynamicly add control elements to a form
Hello,
I want to dynamicly add elements to a JPanel.
The elements with the properties are stored in a database
each record contains one element
Label
Combobox
Checkbox
I`m programming in NetBeans 5.5
Something like:
public void test()
try
stmt = GeneralDBConnect.createStatement();
ResultSet rs = stmt.executeQuery("select device_option_id, objecttype, device_option, size, location, tooltip from device_option where ...");
int i = 0;
if(rs.next())
i = i + 1;
switch(rs.getString(2))
case "Label" : JLabel Element[i] = new JLabel();
Element.setText(rs.getString(3));
break;
case "Textbox" : JTextField Element[i] = new JTextField();
break;
case "Combobox" : JComboBox Element[i] = new JCombobox();
Element[i].setToolTipText(rs.getString(6));
ResultSet List = stmt.executeQuery("select device_option_value_id, option_value from device_option_value where ...");
while(List.next)
Element[i].addItem(List.getString(2));
List.close();
break;
case "Checkbox" : JCheckBox Element[i] = new JCheckBox();
break;
jPanel_Device_Option.add(Element[i])
rs.close();
stmt.close();
catch (SQLException ex)
ex.printStackTrace();
I know the Element[i] is wrong code but I need to give the elements an unique name.
Can anyone assist me in this matterHello everybody,
I figured it out. I had to change the layout model of the JPanel.
I`ve chosen to use the gridbaglayout because its very flexibel. See http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html
Here is my code:
Description:
Whenever an item in a Combobox is changed (representing devices) the optional elements (a collection of Textfields, checkboxes, comboboxes) are shown in a JPanel.
Which Elements are shown is stored in a database. (Tabels device, device_option and device_option_value (stores the JCombobox items))
First create a JPanel in the graphical editor and right click it choose set layout\gridbaglayout
jPanel_Device_Option.setLayout(new java.awt.GridBagLayout());
jPanel_Device_Option.setBorder(javax.swing.BorderFactory.createTitledBorder("Device Options"));
jPanel_Device_Option.setAutoscrolls(true);Then to create an empty border so the elements don`t clip to the edge of the JPanel add the following code in the properties window in the code section under node "Post-Init code"
Border bBorder = jPanel_Device_Option.getBorder();
Border bMargin = new EmptyBorder(0,10,0,10);
jPanel_Device_Option.setBorder(new CompoundBorder(bBorder, bMargin));Then declare the public variables at the beginning of the code
public static ArrayList aDatasetElements;
public static JLabel[] aLabel;
public static JLabel[] aTextfieldLabel;
public static JTextField[] aTextfield;
public static JLabel[] aComboboxLabel;
public static JComboBox[] aCombobox;
public static JLabel[] aCheckboxLabel;
public static JCheckBox[] aCheckbox;And now the method that`s creating the elements
public void setOutputSettings()
jPanel_Device_Option.removeAll();//Clear all existing elements from the JPanel
jPanel_Device_Option.repaint();//Refresh the JPanel
if(jComboBox_Output.getSelectedItem().toString().length() > 0)//Check if any elements should be added
GridBagConstraints gbConstraint = new GridBagConstraints();//Create a new gridbagcontraint (properties of layout) check http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html
gbConstraint.fill = GridBagConstraints.HORIZONTAL;
gbConstraint.anchor = GridBagConstraints.PAGE_START;
gbConstraint.weightx = 0.5;
try
stmt = GeneralDBConnect.createStatement();
/*Collect data from the database (Which elements should be displayed)
deviceoption: The name of the option this is displayed in the elements label as text
tooltip: Show a tooltip on both label and element
device_optio_id: gets the ID needed to get the list values for a combobox also easy to use when getting the data afterwards (stored in a public variable
objecttype: Label, Textfield, Checkbox, Combobox*/
ResultSet rsElements = stmt.executeQuery("select device_option, tooltip, device_option_id, objecttype from device_option where deviceid = (select device_id from device where devicename = \'" + jComboBox_Output.getSelectedItem() + "\') order by sequence_order asc");
aDatasetElements = new ArrayList(); // Makes an array
while(rsElements.next()) //get data in arraylist (a resultset closes after a while (garbitch collector) resulting in errors I recieved some errors resulset allready closed. Also needed to acces data afterwards
aDatasetElements.add(new String(rsElements.getString(1)) + " ;" + new String(rsElements.getString(2)) + ";" + new Integer(rsElements.getInt(3)) + ";" + new String(rsElements.getString(4)));
rsElements.close();
aLabel = new JLabel[aDatasetElements.size()]; //Makes an array
aTextfieldLabel = new JLabel[aDatasetElements.size()]; //Makes an array
aTextfield = new JTextField[aDatasetElements.size()]; //Makes an array
aCheckboxLabel = new JLabel[aDatasetElements.size()]; //Makes an array
aCheckbox = new JCheckBox[aDatasetElements.size()]; //Makes an array
aComboboxLabel = new JLabel[aDatasetElements.size()]; //Makes an array
aCombobox = new JComboBox[aDatasetElements.size()]; //Makes an array
for(int i = 0; i < aDatasetElements.size(); i++) //loop through the foundset
String sDatasetElements = aDatasetElements.get(i).toString(); //get the data from the array
//Creation of Elements of type Label
if(sDatasetElements.split(";")[3].equals("Label")) //Check objecttype
gbConstraint.gridx = 0; //X position in layout (Label)
gbConstraint.gridy = i; //Y position in layout (Label)
aLabel[i] = new JLabel(sDatasetElements.split(";")[0], aLabel.TRAILING); //Makes a JLabel at an array place
aLabel[i].setToolTipText(sDatasetElements.split(";")[1]);
jPanel_Device_Option.add(aLabel[i], gbConstraint); //Adds a JLabel to the JPanel
//Creation of Elements of type TextField
if(sDatasetElements.split(";")[3].equals("Textfield"))
gbConstraint.gridx = 0; //X position in layout (Label)
gbConstraint.gridy = i; //Y position in layout (Label)
aTextfieldLabel[i] = new JLabel(sDatasetElements.split(";")[0], aTextfieldLabel[i].TRAILING); //Makes a JTextfield at an array place
aTextfieldLabel[i].setToolTipText(sDatasetElements.split(";")[1]);
jPanel_Device_Option.add(aTextfieldLabel[i], gbConstraint); //Adds a JLabel to the JPanel
gbConstraint.gridx = 1; //X position in layout (Element)
gbConstraint.gridy = i; //Y position in layout (Element)
aTextfield[i] = new JTextField(); //Makes a JTextfield at an array place
aTextfield[i].setToolTipText(sDatasetElements.split(";")[1]);
jPanel_Device_Option.add(aTextfield[i], gbConstraint); //Adds a JTextField to the JPanel
//Creation of Elements of type Checkbox
if(sDatasetElements.split(";")[3].equals("Checkbox"))
gbConstraint.gridx = 0; //X position in layout (Label)
gbConstraint.gridy = i; //Y position in layout (Label)
aCheckboxLabel[i] = new JLabel(sDatasetElements.split(";")[0], aCheckboxLabel[i].TRAILING); //Makes a JLabel at an array place
aCheckboxLabel[i].setToolTipText(sDatasetElements.split(";")[1]);
jPanel_Device_Option.add(aCheckboxLabel[i], gbConstraint); //Adds a JLabel to the JPanel
gbConstraint.gridx = 1; //X position in layout (Element)
gbConstraint.gridy = i; //Y position in layout (Element)
aCheckbox[i] = new JCheckBox(); //Makes a JCheckbox at an array place
aCheckbox[i].setToolTipText(sDatasetElements.split(";")[1]);
jPanel_Device_Option.add(aCheckbox[i], gbConstraint); //Adds a JCheckbox to the JPanel
//Creation of Elements of type Combobox
if(sDatasetElements.split(";")[3].equals("Combobox"))
gbConstraint.gridx = 0; //X position in layout (Label)
gbConstraint.gridy = i; //Y position in layout (Label)
aComboboxLabel[i] = new JLabel(sDatasetElements.split(";")[0], aComboboxLabel[i].TRAILING); // Makes a JLabel at an array place
aComboboxLabel[i].setToolTipText(sDatasetElements.split(";")[1]);
jPanel_Device_Option.add(aComboboxLabel[i], gbConstraint); //Adds a JLabel to the JPanel
gbConstraint.gridx = 1; //X position in layout (Element)
gbConstraint.gridy = i; //Y position in layout (Element)
aCombobox[i] = new JComboBox(); //Makes a JCombobox at an array place
aCombobox[i].setToolTipText(sDatasetElements.split(";")[1]);
jPanel_Device_Option.add(aCombobox[i], gbConstraint); //Adds a JCombobox to the JPanel
//Get the listvalues from the database option_value is the value that is shown in the list
ResultSet rsValuelist = stmt.executeQuery("select option_value from device_option_value where device_optionid = " + sDatasetElements.split(";")[2] + " and (option_state = " + iOptionState + " or option_state = 40) order by sequence_order");
while(rsValuelist.next())
if(rsValuelist.getString(1) == null)
aCombobox[i].addItem("");
else
aCombobox[i].addItem(rsValuelist.getString(1));
rsValuelist.close();
//Place an empty label at the bottom otherwice the labels are centered in the JPanel
gbConstraint.anchor = GridBagConstraints.PAGE_END;
gbConstraint.weighty = 1.0;
gbConstraint.gridx = 0;
gbConstraint.gridy = aDatasetElements.size() + 1;
jPanel_Device_Option.add(new JLabel(""), gbConstraint); //Adds an empty JLabel to the JPanel
catch (SQLException ex)
ex.printStackTrace();
The is triggered in the init method and the event Item changed of the JCombobox
private void jComboBox_Output_ItemStateChanged(java.awt.event.ItemEvent evt) {
//Removed some irrelevant code here
setOutputSettings();
}To collect the data that the user has entered in the elements
private void jButton_Collect_User_Data_ActionPerformed(java.awt.event.ActionEvent evt) {
String sList = "";
for(int i = 0; i < aDatasetElements.size(); i++)
String sDatasetElements = aDatasetElements.get(i).toString();
if(sDatasetElements.split(";")[3].equals("Label"))
sList = sList + aLabel.getText() + "\n";
if(sDatasetElements.split(";")[3].equals("Textfield"))
sList = sList + aTextfield[i].getText() + "\n";
if(sDatasetElements.split(";")[3].equals("Checkbox"))
sList = sList + aCheckbox[i].isSelected() + "\n";
if(sDatasetElements.split(";")[3].equals("Combobox"))
sList = sList + aCombobox[i].getSelectedItem().toString() + "\n";
JOptionPane.showMessageDialog(null, sList);
I hope ths is helpfull information.
Since I`m totally new to Java it is possible that a different approach is better however this is working for me.
I`m open for any remarks on the code and feel free to give any comments.
Kind Regards Rene -
Laserjet 42x0/43x0 printers: what is the expected life span by page count for these models?
The document here lists the monthly duty cycle at 125,000 to 200,000 pages per month and the devices typically have a one year warranty. Based on this I would expect at least 1.4 - 2.4 million pages for printer life with appropriate maintenance.
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
WCMPlaceHolder Service doesnot return Dynamic List contents
We hvae a dynamic list element in a place holder and when we call WCMPlaceHOLDER service from my CIS we cannot get contents of the list.
Does this service support dynamic lists or a customisation is required?
regards,
deepakHi
There is no customization needed but the only thing you need to check (I mean uncheck the option) of Limit scope of search option. Basically the issue is that you have a search that has "limit scope' set. What that does is restrict the query to only match items that contain the current site Id in their xWesbites metadata field.
The problem is that when you use WCM_PLACEHOLDER you are not within the context of a Site Studio site so there is no current site id.
You will need to either not do a limit scope search or you will need to provide a siteId paramater to the WCM_PLACEHOLDER call.
I myself faced this issue and once I removed the limit search scope (unchecked ) I could get the results displayed with the WCM_PLACEHOLDER option.
Hope this helps.
Thanks
Srinath -
How to deal with dynamic selection screen elements when macros are used?
Hello experts,
This is regarding the dynamic selection screen elements. Actually the requirement is to modify the existing standard report program RFUMSV00 by copying it into a Z report, adding a few selection screen elements and new fields in the output. I actually did everything required except for the one thing that is going out of my reach.
There are a certain fields which are coming when they are not supposed to get displayed. I don't understand the code because of its obsoleteness. Neither can I debug it because it is just data declaration.
This is the code where there is a fault. If I copy the entire code into a new Z report, I'm getting new fields like Entry Date, Document Type, Reference Transaction, Reference key, Logical system.
DEFINE selection_screen_line.
selection-screen: begin of line.
parameters &3 like &4 default 'X' modif id mc4.
selection-screen: comment (30) &1 for field &3 modif id mc4.
selection-screen: comment pos_low(10) text-019
for field &2 modif id mc4. "neu
parameters &2 like rfums_alv-variante modif id mc4.
selection-screen:
position pos_high.
selection-screen: pushbutton (15) text-028
user-command &5 modif id mc4.
selection-screen end of line.
END-OF-DEFINITION.
Kindly, suggest me the right solution.In the program attributes ( SE38 > RFUMSV00 > GOTO > Properties ), you will find a logical database BRF declared. The include DBBRFSEL is part of the selection screen of this logical database.
The selection screen is actually the selection screen of this logical database.
Under the Logical Database field, there is a Selection screen field where you can input which selection screen of the logical database to be used.
But, this is just to change the selection screen that is displayed. To completely suppress it you need to remove logical database declaration from the properties of the program and call it inside your program through function module.
You cannot just remove it from the declaration because many of its variables are used in the program.
So call it using function module as the first step in INITIALIZATION section of the program.
The syntax and function module to call it in your program can be found in the following thread :
How to hide the selection screen of a Logical datebase?
Regards,
Ashish
Maybe you are looking for
-
I am having an issue with my action being created to save under the same folder that my action was created with. For instance, I opened an image, recorded the action, then I went to a different folder to play the action, but it saves to the previous
-
Hi, I want to know how to maintain number ranges for WBS elements. Tcode:SNUM and the object is PRPS. we have 2 ranges 01---- 001-099 02---- 100-199 At present 01 is being used but want to change it to 02.How to do it. T
-
Can you change app icons?
Hi. I want to know if you can change the picture/icon of an app. Everyone at my school needs to have an iPad but we are not allowed to have games on there. I want to play games at home but it would be a ginourmous pain if i had to download the apps
-
Forms10g don't work like Forms6i
Hi I have de code bellow :NSW_ITENS.NUM_LOTE := :NSW_ITENS.NUM_LOTE; When i Execute on Forms6i the code fire trigger WHEN-VALIDATE-ITEM(from nsw_itens.num_lote), but on Forms10g doesn't fire this trigger, why? Thanks
-
ITunes playlists sharing problem
One laptop 2 logons. How do I home share between them all ITunes music and playlists loaded via only one user logon and its Appleid ?