How are listbox and radiobutton items working in oracle forms?!?
Hi all.
I need some help over may be a standard case in every real project.
Imagine i have a db table PERSONS -> PERSONID, NAME, TOWNID, MATRIALSTATUSID
and table TOWNS -> TOWNID, TOWNNAME
and table MATRIALSTATUS -> MATRIALSTATUSID, NAME
And i have a standard oracle form with text item person name, listbox item with many towns (from TOWNS table) and the town of the concrete person is selected when the form is inited, after that we can change it by selecting other town and saving it to db.
The same is with matrial status but lets make it as radio group with 3 buttons married, not merried, divorced.
So my questions is how to populate the listbox(radiogroup) for 1 person by selecting data from other preferenced tables. And most important how this data is populated in the list box for example i.e. every town name is indexed in some way or what. I am a java developer and for example in java the control listbox item has two attributes the name(string) that is displayed in the listbox and a index binded for that name, and i work with indexes and show strings. I read about LOV but couldn't understand how to "index" the populated values. Is it possible.
And please can you give me some example of how to load (populate + set current town), change and (if it is possible) "index". The same case appears to be valid with radio buttons and check boxes.
You could give me some tutorials too, i cant find simple and focused on the problem examples.
Thank you.
Best Regards.
Hi,
well here is what i done for now.
First I created recordGroup with query SELECT GENDER, GENDERID FROM GENDERS (I want to select all genders and place them in listbox)
After that i created Listbox and on triger when-new-form i placed this code:
DECLARE
it ITEM:=FIND_ITEM('PERSONS_DETAILS.GENDER');
BEGIN
CLEAR_LIST(it);
POPULATE_LIST(it, 'RG_LIST');
DEFAULT_VALUE(NULL, 'GLOBAL.PERSONID');
IF :GLOBAL.PERSONID IS NOT NULL THEN
SET_BLOCK_PROPERTY('PERSONS_DETAILS', ONETIME_WHERE, 'PERSONID=' || :GLOBAL.PERSONID);
GO_BLOCK('PERSONS_DETAILS');
EXECUTE_QUERY;
:GLOBAL.PERSONID:=NULL;
END IF;
END;
Imagine i have a main form PERSONS that displays general information about many persons (the data is retrieved from PERSONS db table). The form PERSONS displays PERSONID, PERSON FIRSTNAME and PERSON LASTNAME. When a user double click on some row from the PERSONS FORM( i have tabular datablock that displays the person data) other form 'PERSONS_DETAILS' must be displayed with detailed information about the selected person. The data about the selected person is loaded well but i want gender to be listbox and the user can change it if he wants. So i have TABLE GENDERS 1:N with PERSONS and the table has GENDERID AND GENDER. When the user double clicks on single person i must populate the list with all possible genders from the GENDERS table and set the gender of the selected person. How to do that?
P.S.: The example with gender is not very good because it could be only male female, but don't worry about it. You may think about gender list as townlist :)
It finds me the GENDER LIST and populates it. After that i take the personId (that is global variable and comes from previous form) and displays all the data for the person with id personid.
When i compile the form it gives me :
FRM-30351: No list elements defined for list item.
List GENDER
Edited by: user9536806 on Nov 19, 2008 3:01 AM
Similar Messages
-
working with Outlook 2011 for Mac, my mails are slow and I can work only on-line, when off-line, mail cannot be opened because it is only partially downloaded. How to solve??
Try http://www.microsoft.com/mac/support.
-
How are contract and service order related....urgent
Hi all
I am ABAP consultant...
I am working on Service contract Cost Management threshold alert report...
I want clear idea as to how are contract and service order related....
BAsed on contract type and contract start and ,end date,sold to party....
i need to get contract ,item , service order no: , and i have to calculate <b>INTERNAL ,EXTERNAL LABOUR, INTERNAL,EXTERNAL material COST</b>
plz help me out...
Thanks in advance,
Madhavi.Dear Madhavi,
http://www.erpgenie.com/abap/tables_sd.htm
VBFA Sales Document Flow
KONV Conditions for Transaction Data
KONP Conditions for Items
LIKP Delivery Header Data
LIPS Delivery: Item data
VBAK Sales Document: Header Data
VBAP Sales Document: Item Data
VBBE Sales Requirements: Individual Records
VBEH Schedule line history
VBEP Sales Document: Schedule Line Data
VBLB Sales document: Release order data
VBLK SD Document: Delivery Note Header
VBPA Sales Document: Partner
VBRK Billing: Header Data
VBRP Billing: Item Data
VBUK Sales Document: Header Status and Administrative Data
VBUP Sales Document: Item Status
VEKP Handling Unit - Header Table
VEPO Packing: Handling Unit Item (Contents)
VEPVG Delivery Due Index
Also, go through:
http://www.erpgenie.com/abap/tables.htm
Regards,
Naveen. -
How are Aperture and Yosemite getting along so far?
How are Aperture and Yosemite getting along so far?
Hi guys,
Is it OK for Aperture users to take the plunge and update to Yosemite, or is it wiser to wait for kinks to be worked out first? I didn't find any reference to this matter so far on this forum or on the web. I may have mort worded it correctly.
Thanks for responding,
Raphael
Also,
Why do I constantly run into the statement: "You are not allowed to create or update this content" when I click on "Post"? So annoying ....Aperture 3.6 and Yosemite have been a nightmare for me unfortunately. Every time I try to open it since updating to Yosemite it quits unexpectedly within 5 seconds or less. I've tried repairing and rebuilding the library but that did not help. Just get the below message.
Process: Aperture [11391]
Path: /Applications/Aperture.app/Contents/MacOS/Aperture
Identifier: com.apple.Aperture
Version: 3.6 (3.6)
Build Info: Aperture-500021000000000~3
App Item ID: 408981426
App External ID: 731142774
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Aperture [11391]
User ID: 501
Date/Time: 2014-10-20 22:06:19.726 -0400
OS Version: Mac OS X 10.10 (14A388b)
Report Version: 11
Anonymous UUID: 554987CC-A5F5-9C57-2520-D55ECD699D4A
Time Awake Since Boot: 350000 seconds
Crashed Thread: 8
Exception Type: EXC_ARITHMETIC (SIGFPE)
Exception Codes: EXC_I386_DIV (divide by zero) -
I cant get the font to work on a picture in Photoshop, I have watched at least 12 how to videos and it wont work, Help
Could you capture your screen and post it. Have the layers panel open and any layers that are collapsed, expanded. We will need to see the entire screen, as some information in the tab is important as well.
-
How to find and modify item in a nested array collection?
Hi,
would anybody know how to find and modify item in a nested
array collection:
private var ac:ArrayCollection = new ArrayCollection([
{id:1,name:"A",children:[{id:4,name:"AA",children:[{id:8,name:"AAA"}]},{id:5,name:"AB"}]} ,
{id:2,name:"B",children:[{id:6,name:"BA"},{id:7,name:"BB"}]},
{id:3,name:"C"}
Let's say I've got object {id:8, name:"X"} , how could I find
item in a collection with the correspoding id property, get handle
on it and update the name property of that object?
I'm trying to use this as a dataprovider for a tree populated
via CF and remoting....
Thanks a lot for help!Thanks a lot for your help!
In the meantime I've come up with a recursive version of the
code.
This works and replaces the item on any level deep:
private function findInAC(ac:ArrayCollection):void{
var iMatchValue:uint=8;
for(var i:uint=0; i<ac.length; i++){
if(ac
.id == iMatchValue){
ac.name = "NEW NAME";
break;
if(ac
.children !=undefined){
findInAC( new ArrayCollection(ac.children));
However, if I use the array collection as a dataprovider for
a tree and change it, the tree doesn't update, unless I collapse
and reopen it.
Any ideas how to fix it ? -
LRv3.2 Networking with an Asst , How to store and retrieve updated work on Win7?
LRv3.2 Networking with an Asst , How to store and retrieve updated work on Win7 Network?
We have a working 1gig network in Win7 PRO 64-bit. and using LRv3.2
* How do I configure our Files or Cataloges "so" ALL Edits are veiwable/edit to all? (we don't work on the Same Shoot/Folder at the same time)
I NEED to see, ALL the LR Edits (is great with DNG files
*** BUT, what I cannot see if I remember correctly (with just the DNG sharing) is the CROP or Virtual Copys ... possibly the Brush edits.
HOW, do I configure to be able to read and edit ... ALL of the updated/saved Edits??? (after it is done by my asst.)
Is creating a New Catalog for EACH shoot the way to go? (not sure I like this idea)
Right now everything is in one(1) catalog ... and it's getting big ... BUT, this allows us to search , and group ... going way back.
Would be nice to be able to still do this easily, and with what we have already done.
With our one BIG Catalog ... not sure if two(2) can access this catalog over the Network at the same time?
Even though we never Edit the Same Folder or Files at the same time.
Or will that be a problem over a simple Win7 PRO network?
Thank you,
HGAloha Bob,
Saw your link. thank you.
At least I don't feel "alone" LOL
At this point ... I am looking for a "cluncky" Work Around?
* I was thinking, Maybe making a copy of My Cataloge ...
Deleting ALL the Folders in LR ... except for the one's that will be worked by the Asst.
Then moving that file to the Asst. Computer.
* NEXT, pointing the Folder that they are working on ... across the Network to the Servers Files.
* After they work on it:
*** IS THERE A WAY ...
* To take that Cataloge ... and UPDATE my Main Cataloge.
THIS, is the STEP ... I don't know how to do.
Can someone Help me with this?
Step by Step, because I am clueless ....
Talking UPDATE of everything worked on ... including Virtual copys, and CROPS.
Thank you,
HG -
How the try and catch blocks work?
For the following section of code from the class QueueInheritanceTest...how the try and catch blocks work?
The Class...
public class QueueInheritance extends List {
public QueueInheritance() { super( "queue" ); }
public void enqueue( Object o )
{ insertAtBack( o ); }
public Object dequeue()
throws EmptyListException { return removeFromFront(); }
public boolean isEmpty() { return super.isEmpty(); }
public void print() { super.print(); }
Testing...
public class QueueInheritanceTest {
public static void main( String args[] ){
QueueInheritance objQueue = new QueueInheritance();
// Create objects to store in the queue
Boolean b = Boolean.TRUE;
Character c = new Character( '$' );
Integer i = new Integer( 34567 );
String s = "hello";
// Use the enqueue method
objQueue.enqueue( b );
objQueue.enqueue( c );
objQueue.enqueue( i );
objQueue.enqueue( s );
objQueue.print();
// Use the dequeue method
Object removedObj = null;
try { while ( true ) {
removedObj = objQueue.dequeue();
System.out.println(removedObj.toString()+" dequeued" );
objQueue.print();
catch ( EmptyListException e ) {
System.err.println( "\n" + e.toString() );If you want a basic introduction to try/catch blocks, read any introductory text or the tutorials on this site.
Here are some:
Sun's basic Java tutorial
Sun's New To Java Center.
JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns."
In terms of this particular case, it looks like the code is using an exception being thrown to get out of a loop. IMHO that's bad design -- exceptions should be used for exceptional circumstances, and if you use it to get out of a loop, then you're certain it's going to happen, and that means that it's not exceptional.
When you post code, please wrap it in tags so it's legible. -
My iphone 5 won't charge and it's in perfect condition, I dont drop it and it's not cracked. I tried multiple chargers, none of them are damaged and my outlets work with other things so the problem is my phone. What's wrong with it and what should I do? Please help me I need my phone for work.
Make sure there's nothing blocking a contact in the charging port of the phone.
-
How are attribute and text master data tables linked in SAP R/3?
Hello,
how are attribute and text master data tables linked in SAP R/3?
Most tables with attribute master data like T001 for company codes,
have a text master data table T001T (add "T" to table name).
When looking at the content of table T001 via transaction se11,
the text are automatically joined.
But for some tables there is no "T"-table (e.g. table TVBUR for sales offices
has no text table TVBURT), but in se11 you get texts. There is an address
link in TVBUR, but the Name1, etc. are empty.
a) Where are the text stored?
b) How does the system know of the link?
Hope someone can help!
Best regards
ThomasHi Thomas
The master and text table are not linked by name, of course, if you see the text table, it has the same key fields of master table, only it has the field key spras and the field for description.
The link beetween the tables is done by foreign key: if you check the text table TVKBT u need to see how the foreign key for field VKBUR is done:
-> Foreing key with table TVBUR
-> Foreing key field type -> KEY FIELD FOR A TEXT TABLE
->Cardinality-> 1-:CN
It's very important the attribute sets for Foreing key field type, if it's KEY FIELD FOR A TEXT TABLE, it'll mean the table is a text table: i.e. that mean the master table is a check table for the text table, where the foreign key type is for text table.
U can find out the text table of master table by SE11: GoTo->Text Table
U can fined some information in table DD08L.
Max -
mistakenly opened all the folders in my library of music and the Finder stopped working.
Now every time I restart the mac, all folders are reopened and can not work with the finder and tried killall-KILL Finder and nothing will reappearmistakenly opened all the folders in my library of music and the Finder stopped working.
Now every time I restart the mac, all folders are reopened and can not work with the finder and tried killall-KILL Finder and nothing will reappear -
I'm experiencing major synchronisation issues on ICloud, especially for documents created on my Mac in pages, keynote and numbers. Contacts and agenda items work fine. I checked all my account settings. But while I can upload documents from my MAC onto ICloud, they don't show on my IOS devices (whereas previously this worked without issues).
On this Mac I did move all the visible iCloud documents out of iCloud, into another folder, then disabled syncing, exactly as you suggested. But there were, apparently, documents remaining in my Mac's local iCloud store, "~/Library/Mobile Documents/" that I could not see (so could not remove). The Pages file "CSU-PD-UN1.pages" was one such document.
The act of disabling iCloud's document sync'ing, in System Prefs, just renames the local "iCloud" store to "~/Library/Mobile Documents/<appleid#>/" effectively shielding the it from the sync'ing mechanism. Looking at this renamed folder (the screenshot above) revealed that "CSU-PD-UN1.pages" (and other files) had not been removed; it would be reasonable to assume that one, or more, of these "undeletable" files were related to my original problem, and when I re-enabled doc sync'ing, those bad files would just clog up the works again.
So I deleted them with the Finder on both Macs (the other Mac had bad files too, but different ones), then re-enabling sync'ing on the two Macs and doc sync'ing between the Macs (and iCloud.com) appears to now work as intended.
Sadly, iOS devices (iPhone and two iPad) now do not sync at all. Newly created documents do not migrate to any other devices, and documents on other devices do to migrate to the iOS devices.
Your suggestions have certainly done some good, but something is now keeping my iOS devices out of the the iCloud doc sync'ing process. I suspect it's a similar problem as the Macs had ("invisible" files gumming up the works), so I'm going to apply some nasty tricks to explore the iOS devices file system and see if I can find them, and delete them by brue force. -
Currently unable to sync songs to iTunes. All my options are correct and nothing is working. Please help me lol
Hi,
Try to contact Maximuscards.com support, They have 24/7 customer support, Hopefully your problem already solved. -
Hi all, Since I updated to Mavericks I am having trouble with Safari showing all the buttons/clickable options, but they are gray and will not work. Specifically, the Trash Can/Delete and the "Move to" folder button simply do not work. Any ideas?
Please post a screenshot that shows what you mean. Be careful not to include any private information.
Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply. -
"How are local and state taxes setup/updated when employee's address change
Hi All
I wanted to know "How are local and state taxes setup/updated when employee's address changes . - How is it done in SAP? -
Thanks in AdvanceThis defeats the purpose of trying to centralize SAP-related web resources on the SAP server. Typically IIS/Apache or other non-SAP servers are under the control of IT and not the SAP BASIS group.
We simply would like to have a centralized location to store static web files so that they are not overwritten during Portal support pack applications.
Maybe you are looking for
-
When I try to install the itunes upgrade to my computer I get this error: There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your suppport personnel or package vendor. Can
-
I tried syncing my phone and I have a notification that it couldn't sync 161 songs and to see iTunes for more information. I didn't see any more information on iTunes. Most of these songs I purchaed through iTunes. How can i get them to sync?
-
Error when running the Web Services java client file
Hi, I am working on web services with 9iAS. I am using the StatelessExample file included during installation. The ear file was created and the application was deployed using OEM Web. But when I try to execute the client java file StatelessClient. I
-
User Exit / Enhacement / BADI for MB1B transaction
Hi all, Movement type -311 Plant 1004 Storage Location - XXX Now reuirement is like during Transfer posting when user provides Receving Location and Material and Press Enter batch and qunatity should be automatically populated based on some Selectio
-
Custom Filtering on particular column
* To change this template, choose Tools | Templates * and open the template in the editor. * @author Neelam Sharma import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; impor