ComboBox / DropDown with UIX
Hello People,
I'm bulding an application using Business Components and UIX JSP for BC, how can I put a ComboBox or a DropDown Control that contains all the information of an attribute of a table.
regards
>
I use the messageChoice element and works fine for me. But for it works we must to define the bc4j:viewObjectDef element into bc4j:registryDef element, is it correct?
Yes, you do need the viewObjectDef in the registryDef.
>
Well, if it is, we must to put two parameters into bc4j:registryDef element that are the name of the view and the rangeSize of the view. The rangeSize determines the amount of records to fetch, is it correct? If it is, how can I fetch all records?
I believe that the rangeSize parameter is optional and that omitting it means "return me all rows". Try leaving it off and see if that returns everything.
-brian
Team UIX
Similar Messages
-
I'm working on a form which needs to provides three options for the user out of a drop down list. When the user chooses one option, only that subform is to be visible. Two of the three subforms are text fields, and the third subform is a series of fields which are editable by the user.
How do i create a dropdown with three options in it, so that in each instance only one subform is visible? This needs to happen in the same space on the main form.Hi Nellie,
Here is the form back to you. There were three main issues:
In order for dynamic behaviour, like showing and hiding, the form must be saved as a Dynamic XML Form in the save-as dialog.
While you can use a minus sign when naming objects and subforms, it will cause scripts to fail. I have changed the name of the subforms so that they now use an underscore.
The dropdown had specified values in the Object > Binding palette (1, 2, 3), so the script needs to use these in the if statements.
When sharing forms on Acrobat.com, the best option is to select the file in your workspace and then click Publish. This will make it available to anyone who has the published URL.
I hope that helps,
Niall -
Is it possible to have a dropdown with a blank option
Is it possible to have a dropdown with a blank option
1) When desigining a form is it possible to have a dropdown with a blank option as the first option.
2) Also if the field is a required field will the application prompt the user if the blank option is selected.1) If you are using any dynamic data from database tables then you can use below sample query:
select * from (Select ' ' QueueName, ' ' QueueValue from tabXYZ where columnname = <provide some value that is not available in this column>
union
Select columnname QueueName, columnname QueueValue from tabXYZ) s
order by QueueValue
2) Onsumbit of the form in ISF you need to capture the empty value(' ') for validation -
Need to set up dropdowns with selections that create other dropdowns
I am designing a LiveCycle 8 PDF form. I want to set a dropdown box to present six options, and then the user gets a separate dropdown with six options specific to each of the first one.
Is there any way that this can be done?I need to do something similar to this.
Specifically, I have two combo fields containing the values 4 - 20.
Whatever value is selected in the first field, only values above it should be available in the second field.
And equally, whatever value is selected in the second field, only values below it should be available in the first field.
Thom's solution doesn't really help in this case.
Does anybody have any ideas?
Many Thanks -
Control-Hints are suppose work with UIX/XML, right?
Control-Hints are suppose work with UIX/XML, right?
I've added some control hints and they worked correctly when viewed using UIX/JSP pages. However, none of the Control-Hints appear on UIX/XML pages.
The documentation suggests that this should work. Am I wrong?
Bill G...There's a bit of confusion here (which is entirely our fault).
UIX JSP is a subset of UIX XML (almost entirely; a few tags in
UIX JSP simply wouldn't make sense in UIX XML, like <uix:buildTree>).
However, BC4J UIX JSP is not a subset of BC4J UIX XML; the two
are essentially entirely different libraries. (Any JSP tag that
starts with <bc4juix:> counts as a "BC4J UIX JSP" tag.) I agree
that this is confusing.
As far as control hints go: BC4J UIX XML does not currently
support control hints. It does offer more than enough flexibility
to tweak all the dials and knobs made available by control hints (and
a lot more). -
Combobox dropdown functionality
Hi,
I have a combobox dropdown for a Column in my table. it displays "codes Description" something like this
01 Apparel
02 Houseware
03 Kitchenware
I have a query to get this data in the dropdown from a oracle table.
Select LEVEL1_CATEGORY_CD, CATEGORY_DESC From PRODUCT_CATEGORY1
Order By PRODUCT_CATEGORY1.CATEGORY_DESC
I am using setboundsql() method of the Column class in Quicktable.
http://quicktable.org/doc/quick/dbtable/Column.html
I have also tried getting the query data in a hastable as a key/value pair and fill the combo box.
what i need is when user selects something from the dropdown like "02 Houseware" i need only 02 to be filled into my cell. is this possible? right now its filling "02 Houseware" in the dropdown. can you explain stepwise as i am new to swing API.
Thanks.I guess I am close but doing something silly. thats how I learn.
here is my code snippet,
final JComboBox comboBox;
comboBox = new JComboBox( model ); // model.addElement(rs.getString(1));
comboBox.setEditable(true);
comboBox.setSelectedIndex(-1);
comboBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
if (comboBox.getSelectedIndex()==-1) return;
String s= comboBox.getSelectedItem().toString().trim();
comboBox.setSelectedItem(s.substring(0,2));
c.setCellEditor(new DefaultCellEditor(comboBox)); //c = dBTable1.getColumn(1);My vector has elements like, "01 Apparel".
I am able to get these in the dropdown. when i select something, its filling, 01 Apparel . after selecting if i click the cell again, then its changing to 01(as i needed). else after selecting if i lose focus and go to other cell, the value remains as 01 Apparel.
this might be trivial for someone who knows Swing but I am gettting frustrated...have to read complete tutorial this weeknd :)
Thanks again. -
Hello,
If I have a List of Strings, how to populate a DropDown with this List?
For example:
List list = new ArrayList();
list.add("gustavo");
list.add("maria");
And I want a DropDown that show the same string in the value and in the description. How to do this?
I'm using a ObjectListDataProvider to populate the DropDown.Hi There,
This tutorial may be of use to you
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/listbox_components.html
Thanks
K -
Hi all, is it possible in a search form with uix shows always the edit criteria with execute button and not when I click the find button?
Please help!!!
Matteo.I want show the edit criteria with results. Is it possible? How can I do this?
Any suggestion will be appreciated.
Thanks, matteo. -
ComboBox (dropdown) Need Help Adding URL links!!!
I am somewhat of a newbie....Anybody know how to use URL
links in a ComboBox dropdown menu? NEED HELP!!!!!!! I'm trying to
make it so that after selecting an option, the user is directed to
another URL within the same browser window. Using flash 8!
Thanks,Im a bit a newbie myslef but i think you make flash
commuincate to javascript wich will make the browser goto the URL.
do a search on getURL and javascript together and i am sure
you will find something.
And when slecting to redirct i think its on?(onPress)
something so maybe look throught the help section in flash 8 and
look at componets. I think there is some actionscript help there.
Sorry i could not be more helpful. -
Column with dropdown with different values in each cell
Hello,
I have a Table and one of the columns contains a dropdown list (dropdownbykey). My problem is that the list of values for each drop down element is different because it depends on the value in the rest of the row cells. Obviously I need to calculate the values dynamically at runtime.
I have created a context node and linked it to the table columns, one of the attributes in the node is linked to the 'selectedKey' property of the dropdown. Then in my code I try to give the list of values to this attribute using the method set_attribute_value_set from the if_wd_context_node_info interface. The process it's explained in the DEMO_UIEL_STD_SELECTION component.
But I only get the same values for each row.
I would like to know if it's possible to have dropdowns with different values in the same column of a Table, and if so any indication of how to do that.
Best regards,Hello Javier,
unfortunately you cannot use dropdown by key if you want to have different dropdowns per line of your table.
Instead you will need to use dropdown by index, and bind your dropdown to a subnode of the table element (ensure that this is a non-singleton node).
To make life easier for yourself, I would also have an attribute in your main structure that holds the selected value of the dropdown by index - update this value on any "onSelect" action of the dropdown by index.
e.g. for a table that holds addresses:
Context Node Address:
attribute street
attribute city
attribute country
attribute region
subnode regionlist
...attribute regionkey
...attribute region_text
table - bound to node address
input field bound to street
input field bound to city
dropdown by key bound to country (onSelect event populates subnode regionlist)
dropdown by index bound to subnode regionlist, text bound to region text, (onSelect event populates address element attribute region with key field of selected element).
I hope this helps,
Chris -
UIX/JSP - How to use the UIX Controller with UIX/JSP
After reading the UIX Developers Guide I am under the impression that I could use the UIX Controller with UIX/JSP pages. Is this correct and are there any available examples?
Bill G...It's correct, but I'm afraid we don't have much (read as "any")
documentation on how to do that - besides reading through the
gobs of Javadoc and guessing how to put it together.
Half of the problem is solved by registering JspPageDescriptions
on a PageBroker (e.g., UIXPageBroker) to tell the UIX Controller
to use a JSP to render a particular page, instead of a UIX XML
document.
The other half is getting the JSP to send requests back to
the UIX Controller. Depending on how you've chosen to name
your pages, create either a DefaultPageEncoder or ExtensionPageEncoder
inside your JSP, and use that to create destination URLs. -
Create dropdown with the webservice response
Hi experts,
I'm beginner in webdynpro and I need create a screen which will have a field of type Dropdown with the values obtanied from a webservice call, once selected the value of the list and filled others fields of the form, other webservice must be called to obtained the webservice information.
Could everyone help me please?
Regards,
JoseHi,
Create a dropDownByIndex element and bind it to ur Response
object attribute of web service which u need to show in the
dropdown.
On ontoggle event of dropdown by index write ur required code
to call another webservice.
In order to get the selected value from the dropdown just get
the current value of the bound attribute .Using this value u
can call another web service.
Iam assuming u r calling ur first web service in ur init() method.
Regards
Surender dahiya -
How I can use struts with uix jsp
Hi,
I want to use struts with uix jsp but I don't know how to set value of uix tag attribut by struts tag
example :
I want to change:
<uix:globalHeader text="title" >
by
<uix:globalHeader>
<bean:message key="title" arg0="Browse"/>
</uix:globalHeader>
N.B: I tried to use the tag <boundAttribute> but doesn't works
Thanks in advance.Hi Ghazouani,
From your sample code it looks like you are trying to use the Struts <bean:message> to provide internationalized text for the links in your globalHeader component. Couple of comments on this particular issue:
- You'll need to add a <link> element to your globalHeader for each item that you want to display. So, instead of:
<uix:globalHeader>
<bean:message key="title" arg0="Browse"/>
</uix:globalHeader>
You'll want something which looks like this:
<uix:globalHeader>
<uix:link text="Browse"/>
</uix:globalHeader>
- If you want to bind the text for each link to some internationalized value which is pulled from a ResourceBundle, you should use the UIX JSP <bundle> data provider:
<uix:bundle name="l10n" class="your.Bundle"/>
<uix:globalHeader>
<uix:link textBinding="title@l10n"/>
</uix:globalHeader>
In general when mixing JSP tags from different tag libraries, you need to be careful that you honor the semantics of each tag library. For example, in this particular case, the <uix:globalHeader> expects to have <uix:link> children - using any arbitrary tag (like <bean:message>) is not necessarily going to produce the desired results.
As far as general UIX/Struts integration goes, we recommend using uiXML as a view for your Struts application. Check out the "Using uiXML with Struts" section of the UIX Developer's Guide for more info.
Andy -
Disable HTMLB dropdown with JavaScript
Hi All,
I ran into the following issue:
I have a BSP page that used HTMLB dropdowns and some custom javascript that disabled those dropdowns interactively when a user clicked on a checkbox.
Example: tempDropdown.disabled = true;
Unfortunately, as soon as I changed the control rendering attribute to "SAP", the look&feel of dropdowns changed and they no longer appear to be based on "select-one" HTML object. Therefore, my custom JavaScript no longer works.
Do you know how I could visually (interactively) disable the "SAP" rendered HTMLB dropdown with a custom javascript?
Thanks!
Romanhere is the complete code of my sample.
<b><u>page attribute</u></b>
tab1 TYPE TIHTTPNVP
tab1_wa TYPE IHTTPNVP
tab2 TYPE TIHTTPNVP
tab2_wa TYPE IHTTPNVP
<b><u>layout</u></b>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" controlRendering="SAP" >
<htmlb:page title=" " >
<htmlb:form>
<%
clear tab1_wa .
refresh tab1 .
move: 'PRI' to tab1_wa-name ,
'Printer' to tab1_wa-value .
append tab1_wa to tab1 .
move: 'FAX' to tab1_wa-name ,
'Fax' to tab1_wa-value .
append tab1_wa to tab1 .
move: 'EMA' to tab1_wa-name ,
'Email' to tab1_wa-value .
append tab1_wa to tab1 .
%>
<%
clear tab2_wa .
refresh tab2 .
move: '[email protected]' to tab2_wa-name ,
'Some One' to tab2_wa-value .
append tab2_wa to tab2 .
move: '[email protected]' to tab2_wa-name ,
'Mr X' to tab2_wa-value .
append tab2_wa to tab2 .
move: '[email protected]' to tab2_wa-name ,
'Mr Y' to tab2_wa-value .
append tab2_wa to tab2 .
%>
<script language="javascript">
function SetDisabled(elem,disable)
var ip = document.getElementById(elem);
ip.disabled = disable ;
</script>
<htmlb:label for = "DDLB1"
text = "Carrier" />
<htmlb:dropdownListBox id = "DDLB1"
nameOfKeyColumn = "NAME"
nameOfValueColumn = "VALUE"
table = "<%= tab1 %>"
onClientSelect = "javascript:dd = document.forms[0].DDLB1; alert(dd.options[dd.selectedIndex].value);"
width = "150" />
<htmlb:dropdownListBox id = "DDLB2"
nameOfKeyColumn = "NAME"
nameOfValueColumn = "VALUE"
table = "<%= tab2 %>"
width = "150" />
<htmlb:button text = "Press Me"
onClientClick = "javascript:SetDisabled('DDLB2', 'true');" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
try this in your system and let me know whether it works or not
Regards
Raja -
Problem with UIX Pages in sub folders
I want to group my UIX pages into sub folders to maked definition of security constraints more convenient.
The New UIX Page wizard doesn't allow creation into a sub folder so I have created a blank page and then renamed it into a subfolder using File>>Rename menu option. However, now when I drag Data Control bindings onto the page they fail to bind properly. (No data appears when I run the page.)
Is there a fundamental problem with placing UIX pages into sub folders? Is it something I shouldn't do? Requiring a flat file structure seems an onerous restriction!
Thanks
Matthewyes. this is a known problem when you are running UIX pages and not struts dataactions.
For the model bindings to work, you currently have to keep
all your uix pages in the top level directory.
However, if you use the struts-pageflow with UIX pages, then you can keep you UIX pages where ever you want.
Maybe you are looking for
-
Windows 8.1 has stopped working on Bootcamp
I use windows via bootcamp on my iMac about once a week, and have never had a problem (bootcamp 5, Windows 8.1, OSX 10.9.4). Today when I try to boot from the bootcamp partition I got a Windows error saying the Boot Config data was missing or corrup
-
Unable to view PDF in Apex UI Page using google Chrome
Hi All, We are unable to see the pdf in Oralce apex UI page using googlre chrome broswer. but it is coming fine with IE/Firefox. In Google chrome when we open any document, it just shows grey box, document is not shown, any settings need to change to
-
Hi, I printed a 12 page document on my D7260 and manually duplexed. The back of pages 8 & 9 were blank. the back of pg 7 had page 10. My driver says last configured on 12/08/2008. Do I need new drivers? If so, where do I find them? Using Word 2007 on
-
Hi Exchange Server Expert, We have 4 Hyper V VMs. Two of the VMs has been installed for Mailbox and the other Two for the transport. below is the details: MB01 - Mailbox Server + CAS MB02 - Mailbox Server CT01 - Transport Server CT02 - Transport Serv
-
Hi frnds.. I developed a program with NetBeans IDE, and I want to package it in jar file...with manifest file so dat I can run it with double click. but I am not able to find the main class... plz help me out... thanx.