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 Chong
Hello,
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
Similar Messages
-
i am unable to set up my iphone 5 after reset since am getting a error stating 'unable to reach server' . i tried restoring the same from my computer but i get a error stating server unavailable' . please help me as my phone is stuck at the set up page. so i have already tried recovery mode as well.
Contact Apple support for warranty service.
-
I recorded my friend singing a song, using Audio Memos app... I can't figure out how to burn it to a CD though?? Please HELP!! I've been stuck on this for a week now!!
Did you try emailing the voice memo to yourself and then using a CD burning app on your computer?
-
Please help me add items to the Pages invoice doc keeping the formulas
Please help me add items to the Pages invoice doc keeping the formulas ie that they will add together and give me a total
this is the template I am Referring to...
-
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 -
PLEASE HELP - JUST SOME GUIDANCE I AM STUCK!!!!!!!!
Hi, I was wondering if anyone can help me, I am very new to Java, and I am trying to create piece of program that acts like a bank account. So far I have this bit working but I need to add some sort of interaction menu, i.e. if you look below it displays the information from two accounts, one Gao and one Johns. I want it so that before it displays this to ask the user for the account number and then display the correct account. I hope this makes sense. I have tried all day to add some sort of interaction menu here, but no luck. All I am asking is for some advice on how I could possibly achieve this, and where would I put the menu code. I am really really stuck and this is giving me a headache! Please help!
// The code starts here
class BankAccount
String name;
String AcNo;
double deposit;
BankAccount() {}
BankAccount(String aName, String aAcNo, double aDep)
name = aName;
AcNo = aAcNo;
deposit = aDep;
public void setName(String aName)
name=aName;
public void setAcNo(String aAcNo)
AcNo = aAcNo;
public void setDeposit(double aDep)
deposit = aDep;
public String getName()
return name;
public String getAcNo()
return AcNo;
public double getDeposit()
return deposit;
public double withDrawCash(double cash)
if (cash <=deposit)
deposit = deposit-cash;
return(cash);
else
System.out.println("Not enough money in your account!");
return (0);
class demo
public static void main(String args[])
BankAccount myBankAc = new BankAccount("Gao", "12-23-34", 1000);
BankAccount JohnBankAc = new BankAccount("John", "34-56-90", 200000);
myBankAc.withDrawCash(500);
System.out.println("MY balance is : " + myBankAc.getDeposit());
System.out.println("MY name is : " + myBankAc.getName());
System.out.println("MY AcNo is : " + myBankAc.getAcNo());
JohnBankAc.withDrawCash(2000);
double balance = JohnBankAc.getDeposit();
System.out.println("John's balance is : " + balance);
}a few suggestions:
(1) Either put the menu code in the main() method of your bank account or put it in a separate class and instantiate an instance of that class in main().
(2) If you want to input an owner name or account number and then have the main method print the correct account you'll want to write a toString() method for your BankAccount class that will let you print out the name, account number, and current balance. Then you'll want to add a bunch of BankAccounts to a data structure like a java.util.Map where the key is the owner name or account number (whichever one you want to do the search on) and the value is the BankAccount object.
(3) Better to externalize the data you want to do the search on into a text file rather than hard-coding all the BankAccount info in your main class.
If you could figure out how to write a new BankAccount to this file it'd be pretty neat, because then you'd have all the ingredients for a simple, flat file-based database: it would read existing accounts, let you search for an individual account, update balances by making deposits/withdrawals, and insert new accounts.
If I were your professor, and you managed this feat, I'd give you an A.
% -
I am having horrible difficulties trying to figure out how to work with 2 lists. I need to be able to select one, click a button, and it moves to the other. And vice versa. I can't figure out how to get the selected index, how to add, or how to remove. I also don't know if I need something like a listener, if I need any models... Could someone please please help. As I said, this action takes place within a btnActionPerformed method.
Thanks!Vector data1 = new Vector();
data1 .add("one1");
data1 .add("two1");
data1 .add("three1");
data1 .add("four1");
Vector data2 = new Vector();
data2 .add("one2");
data2 .add("two2");
data2 .add("three2");
data2 .add("four2");
final JList list1 = new JList(data1);
final JList list2 = new JList(data2);
JButton from1To2Button = new JButton("1 -> 2");
JButton from2To1Button = new JButton("2 -> 1");
from1To2Button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Object o = list1.getSelectedValue();
if (o != null) {
((DefaultListModel)list1.getModel())removeElement(o);
((DefaultListModel)list2.getModel())addElement(o);
from2To1Button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Object o = list2.getSelectedValue();
if (o != null) {
((DefaultListModel)list2.getModel())removeElement(o);
((DefaultListModel)list1.getModel())addElement(o);
....Denis -
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!!! power button stuck and wont turn on!
So I've had my iphone4s for a little bit over a year and before the power button got stuck, I had problems with it turning off sometimes during school and it wouldn't turn back on without a hard reset. Then afterschool one day I could no longer hard reset it and it wouldn't turn on! Then after a few days of examining it i reazlized that the power button is jammed inside, but i could still wiggle it. I tried charging in against the wall, plugging it into the computer and nothing worked; itunes didn't even recognize it anymore! So I brought it to the Apple store to have them look at it, and they said that they couldn't turn it back on and its not possible to just replace the power button ALSO my warranty is up and therefore they can't replace it for me...and I'd have to pay the full price of a new iphone if I want to replace it...
Is anyone else experiencing this problem? Have you found a solution besides replacing it? I really don't want to purchase another...please help! ):Try rebooting it by holding the Lock button and the Home button at the same time for about 10 seconds until the Apple logo shows up on the screen.
This usually works when your device is frozen -
My Firefox updated about two hours ago. When I tried to open it after the update, it crashed and so I chose to start a new session. Now it won't open and I get a message saying "Firefox has stopped working. Windows is checking for a solution to this problem... Windows will close the program and notify you if a solution is available." Please help.
Have you tried closing the iTunes store app via the multitasking bar and seeing if it works when you re-open it
Have you tried closing the app via the taskbar ? (I assume that your iPad is on iOS 6, though the version that your tagline shows, 6.1.6, is not a version for iPads) From the home screen (i.e. not with iTunes store app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the iTunes app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
If that doesn't fix it then you could try a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. -
PLEASE HELP ME my iphone 4 is stuck on connect to itunes screen and itunes wont recognize it
i need to fix this asap
https://discussions.apple.com/thread/3936875?start=0&tstart=0
I TRIED THIS , IT DOESNT WORK,
PLEASE HELP ME IM PANICING -
Please Help! Ipod Touch Gen 5 stuck in restoring mode.
I purchased a Ipod Touch Gen 5 32gb for christmas and i just brought new songs from itunes and i plugged my ipod in to update the songs, itunes came up with a message saying "itunes has detected ipod in restoring mode, you need to restore ipod before you can use itunes." So i clicked restore and after 40 min it said completed but again the message came up. After restoring it about 5 times, nothing changed. I disconnected my ipod from my pc and it just has the image of the itunes symbol and the usb cord. I have the lastest itunes verson. Ive tried everything but nothings worked and i dont want to jailbreak it. Please help!
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
treCheck version: 2.1.2 (105)
Report generated 12 December 2014 1:19:39 pm GMT+1
Hardware Information: ℹ️
MacBook Pro (13-inch, Mid 2012) (Verified)
MacBook Pro - model: MacBookPro9,2
1 2.5 GHz Intel Core i5 CPU: 2-core
4 GB RAM Upgradeable
BANK 0/DIMM0
2 GB DDR3 1600 MHz ok
BANK 1/DIMM0
2 GB DDR3 1600 MHz ok
Bluetooth: Good - Handoff/Airdrop2 supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 4000 -
Color LCD 1280 x 800
System Software: ℹ️
OS X 10.10.1 (14B25) - Uptime: 13:23:30
Disk Information: ℹ️
APPLE HDD TOSHIBA MK5065GSXF disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
Macintosh HD (disk1) / : 498.88 GB (357.75 GB free)
Encrypted AES-XTS Unlocked
Core Storage: disk0s2 499.25 GB Online
MATSHITADVD-R UJ-8A8
USB Information: ℹ️
Apple Computer, Inc. IR Receiver
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. FaceTime HD Camera (Built-in)
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Adware: ℹ️
Geneio [Remove]
Kernel Extensions: ℹ️
/Applications/Mullvad.app
[not loaded] net.tunnelblick.tap (1.0) [Support]
[not loaded] net.tunnelblick.tun (1.0) [Support]
/Library/Application Support/Hotspot Shield
[not loaded] com.anchorfree.tun (1.0.1) [Support]
/System/Library/Extensions
[not loaded] com.roxio.BluRaySupport (1.1.6) [Support]
/Users/[redacted]/Library/Services/ToastIt.service/Contents/MacOS
[not loaded] com.roxio.TDIXController (2.0) [Support]
Launch Agents: ℹ️
[not loaded] com.adobe.AAM.Updater-1.0.plist [Support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Support]
[loaded] com.anchorfree.ajaxserver.plist [Support]
[loaded] com.macpaw.CleanMyMac2.Agent.plist [Support]
[loaded] com.microsoft.office.licensing.helper.plist [Support]
[loaded] com.spotflux.Spotflux.plist [Support]
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist [Support]
[loaded] com.genieo.completer.download.plist Adware! [Remove]
[loaded] com.genieo.completer.ltvbit.plist [Support]
[loaded] com.genieo.completer.update.plist Adware! [Remove]
[loaded] com.google.keystone.agent.plist [Support]
[loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist [Support]
[loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist [Support]
[running] com.spotify.webhelper.plist [Support]
User Login Items: ℹ️
None
Internet Plug-ins: ℹ️
Unity Web Player: Version: UnityPlayer version 4.3.5f1 - SDK 10.6 [Support]
Default Browser: Version: 600 - SDK 10.10
AdobeExManDetect: Version: AdobeExManDetect 1.1.0.0 - SDK 10.7 [Support]
AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 [Support]
FlashPlayer-10.6: Version: 15.0.0.246 - SDK 10.6 [Support]
Silverlight: Version: 5.1.20913.0 - SDK 10.6 [Support]
Flash Player: Version: 15.0.0.246 - SDK 10.6 Mismatch! Adobe recommends 16.0.0.235
QuickTime Plugin: Version: 7.7.3
CitrixICAClientPlugIn: Version: 11.2.0 [Support]
SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Support]
AdobePDFViewer: Version: 11.0.09 - SDK 10.6 [Support]
JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
User internet Plug-ins: ℹ️
Google Earth Web Plug-in: Version: 7.1 [Support]
Safari Extensions: ℹ️
AdBlock
HoverZoom
Omnibar Adware! [Remove]
AllPagesZoom
Searchme Adware! [Remove]
Translate
3rd Party Preference Panes: ℹ️
Citrix Online Plug-in [Support]
Flash Player [Support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
7% WindowServer
4% com.apple.WebKit.Networking
2% Safari
1% hidd
1% coreaudiod
Top Processes by Memory: ℹ️
245 MB Safari
186 MB com.apple.WebKit.WebContent
125 MB mds_stores
94 MB Finder
90 MB ocspd
Virtual Memory Information: ℹ️
94 MB Free RAM
1.72 GB Active RAM
1.64 GB Inactive RAM
716 MB Wired RAM
3.77 GB Page-ins
4 MB Page-outs
Diagnostics Information: ℹ️
Dec 11, 2014, 11:56:45 PM Self test - passed
Dec 11, 2014, 11:53:38 PM Composure_2014-12-11-235338_Nahals-MacBook-Pro.hang
Dec 10, 2014, 09:54:04 PM cloudd_2014-12-10-215404_Nahals-MacBook-Pro.crashYou have various kinds of adware on your Mac. Remove them the way Etrecheck suggests or read this: Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support
Also uninstall CleanMyMac2: http://macpaw.com/support/cleanmymac/knowledgebase/how-to-uninstall-cleanmymac-2 -
Please help in List.MULTIPLE
Hi,
I wish to know how do I append datas dynamically using jsp into a list. a multiple list. ? Is it possible? I have a jsp page with connection to my mysql server which I call using the httpconnection and I would like to append each data eg: option 1, option2, option3....
I manage to put into string and append it into a textbox but how to go about appending it to a multiple list? Is it possible.
Please advice as I am very desperate. Thanks in advance. ( see codes below)
Howie C.
connectmidlet.jsp
<%@ page language="java" import="java.sql.*" %>
<%!
String name;
String Shows;
String Time;
String conn;
%>
<%
name = request.getParameter("name");
out.println("Hello "+name+",");
Class.forName("org.gjt.mm.mysql.Driver");
conn = "jdbc:mysql://localhost:3306/fyp?user=root&password=";
Connection Conn = DriverManager.getConnection(conn);
// query statement
Statement SQLStatement = Conn.createStatement();
// generate query
String Query = " SELECT * FROM schedules ";
// get result
ResultSet SQLResult = SQLStatement.executeQuery(Query);
while(SQLResult.next())
Shows = SQLResult.getString("shows");
Time = SQLResult.getString("times");
out.println("Show : "+Shows+ "\n"+ "Time : " + Time+"\n");
// close connection
SQLResult.close();
SQLStatement.close();
Conn.close();
%>
ReminderMIDlet.java
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.microedition.io.*;
import java.io.*;
public class ReminderMIDlet extends MIDlet implements CommandListener {
Display display = null;
// name field
TextField name = null;
Form form;
String url = "http://localhost:8080/test/connectmidlet.jsp";
static final Command callCommand = new Command("Connect", Command.OK, 2);
static final Command clearCommand = new Command("clear", Command.STOP, 2);
String myname;
public ReminderMIDlet() {
display = Display.getDisplay(this);
name = new TextField("Name:", " ", 25, TextField.ANY);
form = new Form("Reminder MIDlet");
public void startApp() throws MIDletStateChangeException {
form.append(name);
form.addCommand(clearCommand);
form.addCommand(callCommand);
form.setCommandListener(this);
display.setCurrent(form);
public void pauseApp() {
public void destroyApp(boolean unconditional) {
notifyDestroyed();
void invokeJSP(String url) throws IOException {
HttpConnection c = null;
InputStream is = null;
OutputStream os = null;
StringBuffer b = new StringBuffer();
TextBox t = null;
// list of choices
//List t;
//String [] options = {b.toString()};
try {
c = (HttpConnection)Connector.open(url);
c.setRequestMethod(HttpConnection.POST);
c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
c.setRequestProperty("Content-Language", "en-CA");
c.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
os = c.openOutputStream();
os.write(("name="+myname).getBytes());
os.close();
is = c.openDataInputStream();
int ch;
while ((ch = is.read()) != -1) {
b.append((char) ch);
System.out.print((char)ch);
t = new TextBox("Schedule", b.toString(), 1024, 0);
//t = new List("Choose Time",Choice.MULTIPLE,Shows,null);
//t.append(b.toString(), null);
//t.append("time", null);
//t.append("show", null);
//t.append("time", null);
//t.setCommandListener(this);
} finally {
if(is!= null) {
is.close();
if(os != null) {
os.close();
if(c != null) {
c.close();
display.setCurrent(t);
public void commandAction(Command c, Displayable d) {
String label = c.getLabel();
if(label.equals("clear")) {
destroyApp(true);
} else if (label.equals("Connect")) {
myname = name.getString();
try {
invokeJSP(url);
}catch(IOException e) {}Well, you already have all the string in a StringBuffer (you called it "b"). So you set up a start variable (initially 0), you get the indexOf('\n'), and add that substring to an array (or a Vector if you don't know how many elements to expect), then set start to be the character after '\n', and keep it up until you reach the end of the string.
shmoove -
PLEASE HELP - MY NOKIA 6730 PHONE IS STUCK ON VIDE...
Hi
I really hope somebody can help! My Nokia 6730 is showing 'Video call' and has been stuck like that for the past 3 hours. The time on the phone is even stuck and I can't turn the phone off. Any suggestions?
Many thanks.Take off the back of the phone.
Take the battery out.
When you get it restarted, see if the same issue occurs. It could just be a bug.
Help I'm trapped in a sig factory.
Maybe you are looking for
-
My ipod won't let me connect to wi-fi, won't let me restore or reset it, and it keeps telling me i knew a passcode for any one and I never set a password up. How do I fix this? Says try again in 6180146 min. my passcode setting is off, but restrictio
-
Hi. I am new to using an iPad. I have set up an icloud email address for use by all the family.. I want to set up my own as my pop email does not seem to work well on this apple platform. I have tried to self help but I'm being asked to access the ic
-
Places doesn't show up for geo-tagged photos from phone (Sony Ericsson)
So I have a Sony Ericsson T715, which has triangulation geo-tagging for photos, I can see their location through the phone no problem. However, when I import them via the Bluetooth File Browser to my Mac and import them into iPhoto '09, their locatio
-
Apps adapter warnings in JDeveloper 11g
Hi, I have created an apps adapter "ReceiveEvent" which is based on outbound Business Event from oracle Apps. There is no schema validation. When I create a simple BPEL process which has receive activity from this Apps adapter, asign event_key and re
-
Hey! something you may not know .....
a Laptop Battery is portable and can run on batteries alone. Nickel-Cadmium (NiCad) batteries were the first type of battery commonly used in laptop computers, and older laptops sometimes still use them. They have a life of roughly two hours between