I need help in List Item
Hi All
I am using oracle 10g Forms. i have the following fields:-
1) S.No
2) Client Name
3) Account No
i entered about 100 clients name, now i want that when i type Mr. J in Client Name Text Box then automatically appears the full name Mr. John. similarly
when i type Mr. A then automatically appears Mr. Adam.
Regards
Saqib
Yes.
you should attache LOV with client_name and set validate from list=YES in client_name propety.
also you should order the lov columns with client_name first.
i mean first column should be client_name or name waht ever.
now when you type the name it works like you want.
try it
Similar Messages
-
Need help using list item as to filter hire_date
hi to all, how can i use the list item as to filter hire_date based on the elements inside the list item
it goes something like this
HIRE_DATE----------------LIST_ITEM=JAN
01-JAN-10
02-JAN-10
03-JAN-10
HIRE_DATE----------------LIST_ITEM=FEB
01-FEB-10
02-FEB-10
03-FEB-10
the sorting will do after i press the button
thanks in advance :)sir i tried the code and it says: FRM-41003: This function cannot be performed here.
what im really want to do is that after retrieving the dates from a push button, (remember yesterday where you help me retrieving multiple data).... i have a list_item where it has the elements JAN,FEB,MAR,APR,MAY.
and then after selecting different month from the list_item the values that ive retrieve will be filter according to the value in the list_item
it looks something like this:
stud_id = 1001
time_in
01-JAN-10
02-JAN-10
03-JAN-10
01-FEB-10
02-FEB-10
03-FEB-10
after selecting FEB from the list_item it will goes like this
time_in
01-FEB-10
02-FEB-10
03-FEB-10
thanks..
-charles -
Need help using list item as filter[WRONG POST PLS IGNORE]
SORRY WRONG POST...
Edited by: cjtjaime on Oct 8, 2010 12:33 AMsir i tried the code and it says: FRM-41003: This function cannot be performed here.
what im really want to do is that after retrieving the dates from a push button, (remember yesterday where you help me retrieving multiple data).... i have a list_item where it has the elements JAN,FEB,MAR,APR,MAY.
and then after selecting different month from the list_item the values that ive retrieve will be filter according to the value in the list_item
it looks something like this:
stud_id = 1001
time_in
01-JAN-10
02-JAN-10
03-JAN-10
01-FEB-10
02-FEB-10
03-FEB-10
after selecting FEB from the list_item it will goes like this
time_in
01-FEB-10
02-FEB-10
03-FEB-10
thanks..
-charles -
Need help formatting List (checkbox list) web app items on a page.
See this page: Joseph Cancilla
As you can see from the above example the List (checkbox list) items are all running together. I can't figure out a way to separate the items.
i.e. DANCE: Ballet,Ballroom should read DANCE: Ballet, Ballroom with a space after the comma.
Seems like a simple problem but having a hard time finding a solution. Any help would be appreciated.
Thanks!Hi Matt, You should read about web apps here:
http://helpx.adobe.com/content/help/en/business-catalyst/partner/web-apps-module-create-cu stom.html
And module reference here:
http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html
If you insert through the admin and click customise you will see the option to use listbackup. You will also see that layout availible via FTP and in the admin or DW.
Here you can see where in the module paramaters the option to choose listbackup occurs:
http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html#id_65138 -
Help needed: Populating a list item
I want to populate a list item (combobox) on a form with data from a column in a table, how do I do that? Please help. I am using Developer Suite 10g.
Thanks Andreas, I found the link very helpful. I have managed to populate the list item.
-
Need help with moving items betwen 2 netui select boxes
Hi,
I have 2 multiple select boxes for possible courses and assigned courses. I need a way to implement move of option items from one box to another using buttons. The user can select courses from one box and move them to another. I am not sure how I would do that with netui select boxes and a pageflow method. If I use javascript, i get all kinds of errors even though I am trying to use the tagid. If validation fails, then the select boxes dont save the updated content.
Please help.
BinduAhmed_Arafa wrote:
hii all,
i have a list item.. in this list item i have a two list item value
1- visa ,list elements visa
2- cash ,list elements cash
i need when user select visa from list item then appear text item (visa_number)
i change item visa_number visible to no
that's my code i write it
trigger
when new-block-instance
IF :RESERVATION.PAY_METHOD = 'visa'THEN
SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_TRUE);
ELSE
SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_FALSE);
END IF;**My problem is when i click on cash in the first nothing happen and this right
when i click to visa second nothing happen this not right
**when i click on visa first every thing is working
i need when i click on visa any time item appear and when i would like to click to cash.. visa item is disappearWrite your code in When-List-Change trigger at list_item.
Hope this will help you. -
Help! List Item Selected Value. . .
I am trying to update a table based on a list item element that is selected in runtime, but I am struggling with how this is done in Oracle Forms. I have a list item box, which is populated by a column in TEST table. Based on which item is selected, I want to update a different column in TEST table for the selected item, when a user presses a button. Thanks for your help.
DavidI can't get what excatly you want to do but ... Forms list item have 3 values: a label - what you see, the actual value - for the label you see, and Index value - the order number of the list element.
Based on this you can update.
1) Get the label trough the build-in Get_List_Element_Label
2) Value simply can be referenced as :My_List_Item or use Get_List_Element_Value.
3) The index? This is tough thing - you have to create your own function. However Get_List_Element_Count should return the count of the list items. And you need index in order to use 1) or 2)
Write me a mail if you need some code/hints how to do it. -
Please help on List Item... I'm stucked... :(
Hi,
I created my Data Block (my data block is called Supply inside
have DeptId, VendorId and Date_Last_Meet) and Layout
(Windows/Canvases) using the Wizard, than I chg one of the
control item frm Text Item to List Item (Property Palette ->
Item Type). And I added the following code (below) into the WHEN-
NEW-FORM-INSTANCE trigger to populate the list:
DECLARE
group_id RecordGroup;
list_id ITEM;
BEGIN
group_id := Create_Group_From_Query ('my_group',
'SELECT DeptName FROM Department');
list_id := Find_Item('DeptId');
IF (Populate_Group(group_id) = 0) THEN
Populate_List(list_id, group_id);
END IF;
END;
When I run my form it give me this error (a popup error):
FRM-30351: No list elements defined for list item.
List DEPTID
Created form file C:\MP3\75131\TEST_LIST_ITEM.fmx
and this error (displayed in form status bar):
FRM-41334: Invalid record group for list population.
What wrong with the code? I tried every single code in this
forum, but none of them work for me... could someone please help
me out, I'm stucked... :(
Note: I'm using Oracle8i and Form Builder [32 Bit] Version
6.0.8.11.3 (Production).
Thank You.
Regard,
Wai ChongHello,
For populating list from Query you need to return 2 columns
from query, one will be display column and Second will be it's
corresponding value. Problem is in your query.Look at following
procedure. Value column must be converted to Character,that's
why I am using To_char here.
PROCEDURE POPULATE_ZONE IS
V_ZONEITEM ITEM;
V_ZONEGROUP RECORDGROUP;
N
NUMBER;
BEGIN
V_ZONEITEM := FIND_ITEM('TSTATEM.ZONE');
IF ID_NULL(V_ZONEITEM) THEN
MESSAGE('Item zone does not
exists.');
MESSAGE('.');
ELSE
V_ZONEGROUP :=
CREATE_GROUP_FROM_QUERY('ZONEGRP','SELECT NAME,TO_CHAR(ZONE0)
ZONE
FROM YOGI.TZONEM ORDER BY ZONE0');
N := POPULATE_GROUP('ZONEGRP');
IF N <> 0 THEN
MESSAGE('Group zone does
not contain entries.');
MESSAGE('.');
RAISE
FORM_TRIGGER_FAILURE;
ELSE
POPULATE_LIST
('TSTATEM.ZONE','ZONEGRP');
END IF;
END IF;
END;
Adinath Kamode -
Need help on "Displaying items for Library System"
Hi folks, i am currently new to this forum and I need help on this problem ASAP.
I currently doingSorry, I accidentally hit the enter button so i start again.
I currently doing a online Library system and I hve been assign the task of doing the "search items" use case.
The situation is like this, my system retrieves 50 items based on the user selection and displaying them on a page.
The problem is I do not know how to seperate the items cos I don wan to display everything on the page, wat i wan is like displaying first 20 items on the page and when the user click the "next" link, the next 20 items will be display on the same page.
My teacher ask me to use custom tags(WHICH I NEVER LEARN BEFORE) so
please give me advise or related links as soon as possible cos I have to hand in the project in two weeks time. -
I'm new and need help with lists.
I'm writing an app in java (duh, thats why im here), and using NetBeans. I need to know how to add items to an awt list at run time. Thanks for your help in advance. ;)
Try the APIs. I am assuming that you are not using the GUI editing part of NetBeans to make your app, but if you are, again.... make the action and then look at the APIs .
Good Luck,
Edward S. Rice -
Need Help on List of Months between Two Dates
Hello everyone,
I have a table which has startdate & enddate, and need a SELECT statement to list all months between these two dates for each given ID.
I did some test, and could not figure out how to get the startdate & enddate from testing table (instead of hard code them) in the select statement.
Could anybody please help on it (Oracle 11gR2),
Thanks in advance!!!
create table testing(
id number,
start_date date,
end_date date);
insert into testing values(100, to_date('05-FEB-2011', 'DD-MON-YYYY'), to_date('28-MAY-2011', 'DD-MON-YYYY'));
insert into testing values(200, to_date('20-JUN-2011', 'DD-MON-YYYY'), to_date('28-DEC-2011', 'DD-MON-YYYY'));
commit;
select * from testing;
ID START_DAT END_DATE
100 05-FEB-11 28-MAY-11
200 20-JUN-11 28-DEC-11
Elapsed: 00:00:00.01
*for testing.id = 100:*
select to_char(add_months(to_date('05-FEB-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
from (select level l
from dual
connect by level <= months_between(trunc(to_date('28-MAY-2011', 'DD-MON-YYYY'), 'MONTH'),
trunc(to_date('05-FEB-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
DATES
2011-Feb
2011-Mar
2011-Apr
2011-May
Elapsed: 00:00:00.01
*for testing.id = 200:*
select to_char(add_months(to_date('20-JUN-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
from (select level l
from dual
connect by level <= months_between(trunc(to_date('28-DEC-2011', 'DD-MON-YYYY'), 'MONTH'),
trunc(to_date('20-JUN-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
DATES
2011-Jun
2011-Jul
2011-Aug
2011-Sep
2011-Oct
2011-Nov
2011-Dec
7 rows selected.SQL> select * from testing
2 /
ID START_DAT END_DATE
100 05-FEB-11 28-MAY-11
200 20-JUN-11 28-DEC-11
SQL> select id,
2 to_char(add_months(start_date,column_value - 1),'YYYY-Mon') dates
3 from testing,
4 table(
5 cast(
6 multiset(
7 select level
8 from dual
9 connect by add_months(trunc(start_date,'MM'),level - 1) <= end_date
10 )
11 as sys.OdciNumberList
12 )
13 )
14 order by id,
15 column_value
16 /
ID DATES
100 2011-Feb
100 2011-Mar
100 2011-Apr
100 2011-May
200 2011-Jun
200 2011-Jul
200 2011-Aug
200 2011-Sep
200 2011-Oct
200 2011-Nov
200 2011-Dec
11 rows selected.
SQL> SY. -
Hello techies,
I am reading 2 xml Files by using DOM.
I having the values in the xml files like the followin
<fid>
<name>SIZE</name>
<value>13</value>
</fid>
<fid>
<name>BID</name>
<value>23</value>
</fid>when i select size then immediately i should get value 13
Basically I am adding the values in the <name> n <value> to list.
Here is my code.
public static List getContent(Document doc) {
List listInGetContentMethod = new ArrayList();
Element root = doc.getDocumentElement();
NodeList childList = root.getElementsByTagName("name");
NodeList chList = root.getElementsByTagName("value");
System.out.println("xxxx" + chList.getLength());
for (int j = 0; j < chList.getLength(); j++) {
Node valueNode = chList.item(j);
root = (Element) valueNode;
System.out.println("eachelemet"
+ root.getFirstChild().getNodeValue());
listInGetContentMethod.add(root.getFirstChild().getNodeValue());
int n = childList.getLength();
System.out.println("Child Nodes" + n);
for (int i = 0; i < n; i++) {
Node titleNode = childList.item(i);
root = (Element) titleNode;
System.out.println("eachelemet"
+ root.getFirstChild().getNodeValue());
listInGetContentMethod.add(root.getFirstChild().getNodeValue());
return listInGetContentMethod;
}whenever the value is size , I should hget 13 immediately.
How can i do this .
Thanx(inadvance)
ramufollowing code may help :
DATA TEXT(20).
START-OF-SELECTION.
PERFORM WRITE_AND_HIDE USING SPACE SPACE.
AT LINE-SELECTION.
CASE TEXT.
WHEN 'List index'.
PERFORM WRITE_AND_HIDE USING 'X' SPACE.
WHEN 'User command'.
PERFORM WRITE_AND_HIDE USING SPACE 'X'.
WHEN OTHERS.
SUBTRACT 2 FROM SY-LSIND.
PERFORM WRITE_AND_HIDE USING SPACE SPACE.
ENDCASE.
CLEAR TEXT.
FORM WRITE_AND_HIDE USING P_FLAG_LSIND P_FLAG_UCOMM.
WRITE / 'SY-LSIND:'.
PERFORM WRITE_WITH_COLOR USING SY-LSIND P_FLAG_LSIND.
TEXT = 'List index'.
HIDE TEXT.
WRITE / 'SY-UCOMM:'.
PERFORM WRITE_WITH_COLOR USING SY-UCOMM P_FLAG_UCOMM.
TEXT = 'User command'.
HIDE TEXT.
IF SY-LSIND > 0.
WRITE / 'PICK here to go back one list level'.
ENDIF.
ENDFORM.
FORM WRITE_WITH_COLOR USING P_VALUE
P_FLAG_POSITIVE.
IF P_FLAG_POSITIVE = SPACE.
WRITE P_VALUE COLOR COL_NORMAL.
ELSE.
WRITE P_VALUE COLOR COL_POSITIVE.
ENDIF.
ENDFORM.
Sameer -
Need to add list items while clicking another list item.
I want to know the steps to be followed to get the below functionality .
EntityList EntityList
dept
emp
all
At run time when user clicks emp or emp ,dept,all these items should be to enitity list.
Iam open any list other than LOV.
Could you anyone help me how to work this functionality
Thanks,Block Name:CONTROL
List 1 List 2
ENTITY_TYPE ENTITY_LIST
Emp
Dept
All
I have to add List1 item to List2 when user clciks on List1.
In when-list-changed-trigger
Declare
v_list_id ITEM := find_item('CONTROL.ENTITY_LIST');
v_list_value1 VARCHAR2(100);
Begin
Select :CONTROL.ENTITY_TYPE into v_list_value1 from dual;
Add_List_Element('CONTROL.ENTITY_LIST',1,v_list_value1,v_list_value1);
End ;
Iam getting run time warning no list elemnets in entity_list .
And the form is not showing any list elements in entity_list when i cick on list1. -
Need help in displaying items.
Hi frnds,
I have a list of items, that has to be displayed in a table format.
and i want to display a check box left to each row.
is there any control available for this?
Thanks,
Rashmy.you can include checkbox(combobox,button etc) for each row and each column
look at this thread
[http://forum.java.sun.com/thread.jspa?threadID=346473&messageID=1432936]
[http://forum.java.sun.com/thread.jspa?threadID=738747&messageID=4263764] -
Need help with saving item from combobox to textfile
Hi all. right now my codes can only save one stock information in the textfile but when I tried to save another stock in the textfile , it overrides the pervious one.
So I was wondering which part of my codes should be changed??
DO the following
Create a fypgui class and put this bunch of codes inside
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Scanner;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTable;
public class fypgui {
private ArrayList<Stock> stockList = new ArrayList<Stock>();
private String[] stockArray;
private JComboBox choice1;
private JTabbedPane tabbedPane = new JTabbedPane();
private JPanel displayPanel = new JPanel(new GridLayout(5, 1));
private JButton saveBtn = new JButton("Save");
private JPanel choicePanel = new JPanel();
String yahootext;
String symbol;
int index;
public fypgui() {
try {
//read from text file for stockname
File myFile = new File("D:/fyp/savedtext2.txt");
FileReader reader = new FileReader(myFile);
BufferedReader bufferedReader = new BufferedReader(reader);
String line = bufferedReader.readLine();
while (line != null) {
Stock stock = new Stock();
// use delimiter to get name and symbol
Scanner scan = new Scanner(line);
scan.useDelimiter(",");
String name = "";
String symbol = "";
while (scan.hasNext()) {
name += scan.next();
symbol += scan.next();
stock.setStockName(name);
stock.setSymbol(symbol);
stockList.add(stock);
line = bufferedReader.readLine();
//size of the array(stockarray) will be the same as the arraylist(stocklist)
stockArray = new String[stockList.size()];
for (int i = 0; i < stockList.size(); i++) {
stockArray[i] = stockList.get(i).getStockName();
//create new combobox
choice1 = new JComboBox(stockArray);
//For typing stock symbol manually
choice1.setEditable(true);
//set the combobox as blank
choice1.setSelectedIndex(-1);
} catch (IOException ex) {
ex.printStackTrace();
JFrame frame1 = new JFrame("Stock Ticker");
frame1.setBounds(200, 200, 300, 300);
JPanel panel1 = new JPanel();
panel1.add(choice1);
choice1.setBounds(20, 35, 260, 20);
JPanel panel2 = new JPanel();
JPanel panel5 = new JPanel();
panel5.add(saveBtn);
displayPanel.add(panel1);
displayPanel.add(panel5);
tabbedPane.addTab("Choice", displayPanel);
tabbedPane.addTab("Display", choicePanel);
JLabel label2 = new JLabel("Still in Progress!");
choicePanel.add(label2);
frame1.add(tabbedPane);
frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame1.setVisible(true);
saveBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// initalize index as the postion of the stock in the combo box
index = choice1.getSelectedIndex();
/*if the postion of the combobox is not blank,
it will get the StockName and symbol according to the
position and download the stock*/
if(index != -1){
symbol = stockList.get(index).getSymbol();
save(symbol);
@SuppressWarnings("deprecation")
public void save(String symbol){
try {
String part1 = "http://download.finance.yahoo.com/d/quotes.csv?s=";
String part2 = symbol;
String part3 = "&f=sl1d1t1c1ohgv&e=.csv";
String urlToDownload = part1+part2+part3;
URL url = new URL(urlToDownload);
//read contents of a website
InputStream fromthewebsite = url.openStream(); // throws an IOException
//input the data from the website and read the data from the website
DataInputStream yahoodata = new DataInputStream(new BufferedInputStream(fromthewebsite));
// while there is some contents from the website to read then it will print out the data.
while ((yahootext = yahoodata.readLine()) != null) {
File newsavefile = new File("D:/fyp/savedtext.txt");
try {
FileWriter writetosavefile = new FileWriter(newsavefile);
writetosavefile.write(yahootext);
System.out.println(yahootext);
writetosavefile.close();
} catch (IOException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
public static void main(String[] args) {
// TODO code application logic here
new fypgui();
Create a Stock class a put this bunch of codes inside
public class Stock {
String stockName ="";
String symbol="";
double lastDone=0.0;
double change =0.0;
int volume=0;
public String getStockName() {
return stockName;
public void setStockName(String stockName) {
this.stockName = stockName;
public String getSymbol() {
return symbol;
public void setSymbol(String symbol) {
this.symbol = symbol;
public double getLastDone() {
return lastDone;
public void setLastDone(double lastDone) {
this.lastDone = lastDone;
public double getChange() {
return change;
public void setChange(double change) {
this.change = change;
public int getVolume() {
return volume;
public void setVolume(int volume) {
this.volume = volume;
Create a folder called fyp in D drive and create two txt file in it.
-savedtext.txt
-savedtext2.txt
in the saved savedtext2.txt add
A ,AXP
B ,B58.SI
C ,CLQ10.NYM
this is my whole application. if you guys can tell me what can I do to make sure that the stock info doesn't overrides . I will more than thankful.
Edited by: javarookie123 on Jul 9, 2010 9:49 PMjavarookie123 wrote:
Hi all. right now my codes can only save one stock information in the textfile but when I tried to save another stock in the textfile , it overrides.. 'over writes'
..the pervious one.
So I was wondering which part of my codes should be changed??Did not look at the code closely, but I am guessing the problem lies in the instantiation of the FileWriter. Try [this constructor|http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/io/FileWriter.html#FileWriter(java.io.File,%20boolean)] (<- link). The documentation is a wonderful thing. ;-)
And generally on the subject of getting help:
- There is no need for two question marks. One '?' means a question, while 2 or more typically means a dweeb.
- Do your best to [write well|http://catb.org/esr/faqs/smart-questions.html#writewell] (<- link). Each sentence should start with an upper case letter. Not just the first one.
Also, when posting code, code snippets, XML/HTML or input/output, please use the code tags. The code tags protect the indentation and formatting of the sample. To use the code tags, select the sample and click the CODE button.
Maybe you are looking for
-
How many VMs can be build using below configuration
Hi, I have ESXi 4.0 cluster with 6 ESX box.Each box has 8 CPU with 2.66GHZ speed (Total ESX cluster CPU resources is 127 GHZ (48 Processor) and memory is 328 GB. I have deoploy to VMs with configuration 4GB RAM,2VCPU. Can anyone please let me know ho
-
Is it possible for and iPhone 4 to get a virus?
Is it possible for an iPhone 4 to get a virus? If so how would you remove it ? My mother was told she had a virus on her iPhone 4. In my experiences with the iPhone I have never seen this! She has the 4 with the latest update for them.
-
Problem while deploying entity beans
Hi, We are using JDeveloper 3.2.2 (NT) and 8.1.7 (NT) to deploy EJB's. Now we are trying to deploy the entity bean to Oracle JVM. We are facing the following problem while deploying an entity bean . "Persistence provider declared in the deployment de
-
Listiterator.. problem with browsable list
hello there! i have a class Text which has variables: Paragraph: a vector of Vectors each of whom represents a paragraph Wordlists: each wordlist is a vector of Words representng a paragraph. Now, i want that in every instance of the class the progra
-
Costing - Overriding Salary Payable Account captured in Balancing Segment
As a standard Functionality Costing Information(Salary Payable Account) recorded in the Balancing Segment of the element Link Screen cannot be over ridden at any Other Level. Our Accounting set up involves payment from more than one salary payable ac