Using names instead of codes in our forms.

I have two tables:
1. Table A which has next 3 fields:
Code: CHAR 2
Name: VARCHAR2 40
Code_B: CHAR 1
2. Table B which has next 2 fields:
Code: CHAR 1 Primary key
Name: VARCHAR2 40
Between the table A and the table B there is a relationship which is made through Code_b field. In this sense the field Code_b in table A must belong to table B.
Now I would like to make a form using Oracle forms 6i which allow me to actualize insert, delete, change)rows in table A. The problem is that I would like to introduce the name instead of Code_B when I run the form and this name must be chosen from a combo list (not an LOV). At the same time when the table A is updated whicth the changes I have made in the Code_b field must obviously load the code not the name.
In other words I would like that users work with names but behind that the programs work with codes.
Please give me your advice as clear as possible. I am new in Oracle world, I am sure this thing is possible (in Fox this is a very simple thing) but I have been trying to do that for several days without any success.
Thank you for your advice.

Create a record group using the columns from TABLE_B:
SELECT name, code
FROM table_b
Use this record group to populate the list item in the PRE-FORM or WHEN-NEW-FORM-INSTANCE triggers.
return = populate_group(<record_group_name>);
clear_list(<list_name>);
populate_list(<list_item>, <record_group_name>);
You may want to look at the forms documentation for these built-in procedures.

Similar Messages

  • How to use java code in my forms.................

    Hi All,
    I want to use the below java code in my form 6i ..but don't know how????????
    related function is also given below..........
    Any idea .......Please
    Thanks
    Harry.....
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.sql.*;
    public class MyProgram {
    private static Connection con = null;
    private static Statement st;
    public static ResultSet rs;
    public static String s;
    /* public void setlable(int n)
    rs = st.executeQuery("SELECT number_to_words("+n+") FROM dual");
    while (rs.next())
    output.setText(rs.getString(1));
    public static void main(String[] args) {
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@172.19.193.38:1525:ITSTIN", "scott", "tiger");
    st = con.createStatement();
    }catch(Exception exp){
    System.out.println("Error"+exp.toString());
    JFrame f = new JFrame("Conver Digit to Words..");
    JLabel input = new JLabel("Enter Numeric digits :");
    final JLabel output = new JLabel("Please enter value into TestBox.....",JLabel.CENTER);
    final JTextField TF1 = new JTextField(90);
    final JButton B1 = new JButton("Close");
    f.setSize(750, 250);
    f.setLocation(300,200);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container contentPane = f.getContentPane();
    contentPane.setLayout(null);
    contentPane.setBackground(Color.CYAN);
    TF1.setLocation(300,25);
    TF1.setSize(150,30);
    input.setLocation(175,25);
    input.setSize(150,30);
    input.requestFocus();
    output.setLocation(15,100);
    output.setSize(650,30);
    output.setForeground(Color.RED);
    B1.setSize(100,32);
    B1.setLocation(620,175);
    contentPane.add(TF1);
    contentPane.add(input);
    contentPane.add(output);
    contentPane.add(B1);
    f.setVisible(true);
    B1.addMouseListener(new MouseAdapter(){
    public void mouseClicked(MouseEvent me)
    System.exit(0);
    TF1.addKeyListener(new KeyAdapter(){
    public void keyReleased(KeyEvent event){
    if (TF1.getText().equals("") )
    output.setText("Please enter value into TestBox.....");
    else
    try
    if (TF1.getText().length()<12)
    s = "SELECT initcap(number_to_words("+Long.parseLong(TF1.getText())+")) FROM dual";
    rs = st.executeQuery(s); //Function number_to_words exists in scott@itstin created by AMUY-IN
    while (rs.next())
    output.setText(rs.getString(1));
    }catch(Exception e)
    System.out.println("Error-2"+e.toString());
    ================================function===============
    CREATE OR REPLACE FUNCTION amuy_con_to_eng(nm2 NUMBER) RETURN VARCHAR2 IS
    nm1 NUMBER(10,0) := nm2;
    NM VARCHAR2(100):='';
    div NUMBER;
    BEGIN
    WHILE nm1>0 LOOP
    IF nm1>=20 THEN
    div :=Floor(nm1/10);
    NM := NM||' '||base_convert(div*10);
    nm1:=Mod(nm1,10);
    END IF;
    IF nm1>=1 AND nm1<20 THEN
    NM := NM||' '||base_convert(nm1);
    nm1:=nm1/10;
    END IF;
    nm1 :=Floor(nm1/10);
    END LOOP;
    RETURN NM;
    END;
    CREATE OR REPLACE FUNCTION number_to_words(inm NUMBER) RETURN VARCHAR2 IS
    /* Function that converts number's to word's*/
    /* Created buy amuy-in */
    l_inm NUMBER(35,0);
    NM VARCHAR2(1000):='';
    div NUMBER;
    BEGIN
    l_inm := inm;
    IF inm<=0 THEN
    RETURN 'ZERO';
    ELSE
    WHILE l_inm>0 LOOP
    case when Length(l_inm) >= 1 AND Length(l_inm)<=2
    then RETURN NM||' '||sf_num_to_words(l_inm);
    when Length(l_inm) = 3
    then div :=Floor(l_inm/RPad(1,3,0));
    l_inm := Mod(l_inm,RPad(1,3,0));
    NM :=NM||' '||sf_num_to_words(div)||' '||'HUNDRED';
    when Length(l_inm) >= 4 AND Length(l_inm) <= 5
    then div :=Floor(l_inm/RPad(1,4,0));
    l_inm := Mod(l_inm,RPad(1,4,0));
    NM :=NM||' '||sf_num_to_words(div)||' '||'THOUSAND';
    when Length(l_inm) >= 6 AND Length(l_inm) <= 7
    then div :=Floor(l_inm/RPad(1,6,0));
    l_inm := Mod(l_inm,RPad(1,6,0));
    NM :=NM||' '||sf_num_to_words(div)||' '||'LAKH';
    when Length(l_inm) >= 8 AND Length(l_inm) <= 9
    then div :=Floor(l_inm/RPad(1,8,0));
    l_inm := Mod(l_inm,RPad(1,8,0));
    NM :=NM||' '||sf_num_to_words(div)||' '||'CRORE';
    when Length(l_inm) >= 10 AND Length(l_inm) <= 11
    then div :=Floor(l_inm/RPad(1,10,0));
    l_inm := Mod(l_inm,RPad(1,10,0));
    NM :=NM||' '||sf_num_to_words(div)||' '||'ARAB';
    ELSE RETURN 'ERROR {Length of input value should be <12}';
    END CASE;
    END LOOP;
    RETURN NM ;
    END IF;
    END;
    /

    You cannot use java directly inside forms. You can either create a java-bean to enhance the GUI (as you have some UI-components in your java-code, i guess this would be the direction) or use the java-importer and call server-side-java. Both require that you are running forms in a web-version and not as client-server.
    What exactly is your requirement?

  • Call a Form with its name instead of its number

    instead of using : http://servername:7777/pls/portal30/PORTAL30.wwa_app_module.new_instance?p_moduleid=1556977996
    I'd like not to use ModuleID but module name instead. Is it possible?

    Hi,
    What you need to do is the following:
    1. Create a link for your form component in Portal, e.g. the link is: Link_to_your_module.
    2. Put in the following code in where you want to call the module:
    Declare
    url varchar2(100);
    begin
    url := PORTAL30.wwv_user_utilities.get_url ('yourapp.LINK_TO_your_module');
    portal30.wwv_redirect.url(p_url =>url);
    end;
    Hope this works!
    Kelly.

  • How do I get Mozilla to use the page name for the actual bookmark name instead of the URL when I bookmark a page

    I just noticed this (in comparison to Internet Explorer): In IE, when you favorite a webpage, it uses the actual name of the webpage (for example, for this page, it would be "Ask a Question Firefox Help" as the bookmark name), but in Mozilla it uses the URL address as the bookmark name. I was wondering if it was at all possible to change my Mozilla settings in order to make it use the webpage name as the bookmark name instead of the URL address? I hope everyone understands what I'm getting at? If anyone can help me, I would really appreciate it. Thanks.

    Does this happen with each bookmark?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Problems with bookmarks and history not working properly can be caused by a corrupted places.sqlite database file.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can try to check and repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • When using iChat, what could be causing the person I am chatting with to see my daughter's name instead of my name?

    I had a regular chat buddy tell me that I was showing up in his chat window as Rosie (Last Name) instead of Michael (Last Name). I had noticed once or twice before when I had gone to Apple support to sign up for an Express Support call (where they call you at an appointed time) that it had Rosie's name instead of mine. I thought that maybe my daughter had called in for technical support or something.
    But after my chat buddy said he saw it on his chat window, I logged into the Manage your Apple ID site and sure enough it had the wrong first name assoicated with this Apple ID! So, I edited that back from my daughter's name to mine and submitted that change.
    Well, that chat buddy is still seeing me as Rosie, even though it all looks correct now at the manage Apple ID site.
    I'm not sure what to do. My daughter has her own Apple ID which is part of our MobileMe family plan. So, I guess in that sense there is some linkage between hers and mine. But that shouldn't create a problem should it? It's a unique username. I think they're only connected in a billing sense. And they soon won't be in iCloud.
    Can anybody tell me why this is happening?

    Hi,
    What I meant by "First Name" is the one at the top of the list as it were when the Family account was set up.
    (All the other sub-accounts tend to be regarded as Aliases)
    As @me.com names can now be linked to iCloud IDs  it may pay to look at separating the account out into different IDs in their own right.
    9:51 PM      Wednesday; February 22, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Can we use Aliases instead of member name in Calc Manager

    We migrated business rules to Calc Manager. After migration Calc Managers are not getting validated (stating the member is missing in the database). Later found out that in the script it has alias name instead of member name which was causing this error.
    example
    Member name = C001
    Alias = Texas
    in the script it is mentioned Texas = 5; (this statement throws an error while validating, stating Texas is not present in the outline, even though Texas is present in the Alias table as an alias for C001).
    Once I modify the script to C001 = 5; it gets validated without any issue.
    Does this mean in Calc Manager we cannot use Aliases unlike business rules and Calc Scripts?
    Please advice.

    The 'Defects Fixed' section of the release notes for 11.1.2 includes...
    "Calculation scripts validate inconsistently in Essbase and Calculation Manager (8800397)."
    ...which is pretty broad!
    Can you run the rules OK? If so, I'd just ignore the Calculation Manager validation message.

  • How to show the witholding tax name instead of the code in PLD

    Hi Guys,
    Is it possible to show the witholding tax name instead of the witholding tax code in the summary or end of report in the PLD(AR Invoice)?
    Thanks.
    Eric

    Hi Eric
    I have tried to get it directly from the table: Witholding Tax, field: WTaxName; but there's no way to relate that with the A/R Invoice document so it shows me a wrong WT Name.
    As this tables is not directly exposed/related to the document the best way is try to create a Formatted Search in order to get the description you want. Please note the WT is get from a table and if you have more than 1 type of WT it may not work in a End of Report as it does not have the capacity as repetitive area to read multiple lines.
    Paulo Calado
    SAP Business One Forums Team

  • We have a web.mail system at our university based on Outlook, it has worked fine until upgraded to 8.01 the attachments always comes in ashx format (instead of word , pp pdf or whatever and are hard to open. If I use Safari instead everything is ok

    We have web.mail system at our university based on Outlook, it has worked fine until upgraded to 8.01 the attachments always comes in ashx format (instead of word , pp pdf or whatever and are hard to open. If I use Safari instead everything is ok edit

    Outlook Web Access sends an illegal Content-Dispositon header to Firefox. This is no longer allowed in Firefox 8. Firefox 9 will have a workaround for this so that Microsoft has time to fix their software.<br>
    See http://support.mozilla.com/nl/questions/895024<br>
    https://support.mozilla.com/en-US/search?q=attachement.ashx<br>
    Bug 704989 - add workaround for broken Outlook Web App (OWA) attachment handling <br>

  • Ever seen this error message? You tried to use HTML or other restricted code. We, currently, do not allow HTML or other types of code in our message board posts or signatures. Try again with simple text only.

    Trying to load this site
    http://southcarolina.247sports.com/
    and it redirects me to this address
    http://media.247sports.com/Oops.html?aspxerrorpath=/
    and gives me the error message. "You tried to use HTML or other restricted code. We, currently, do not allow HTML or other types of code in our message board posts or signatures. Try again with simple text only. "
    Thanks for your help

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Can I use "Adobe X Pro" to debug the java code in adobe forms?

    HI,
    Can I use "Adobe X Pro" to debug the java code in adobe forms?, if not how do i debug the java code written in the adobe form.

    I have the adobe acrobat x evaluation version installed, please find the print shot attached, I have pressed CTRL+J in the preview mode, but nothing came up.
    Am I doing something wrong..

  • Database creation: use machine name instead of ip address.

    I am creating a new database using the Database Configuration Assistant. After the install, it tells me that the EM can be approached through http://192.168.198.128:1158/em. However, since the ip-address is dynamic, i'd prefer to refer to the machine name instead of the ip address. During the setup I could not see where to change this.
    Regards,
    Rick

    user10064100 wrote:
    Thanks for your replies, I will try that. Version info: 10.2.0, on a Windows Server 2k3. The server runs in a virtual machine, which is pretty much the root of the problem: it tends to change ip addresses when restarting it. I will now install the loopback adapter and see what happens.
    Edited by: user10064100 on 8-dec-2008 7:48Ah, a server on a virtual machine. Why didn't you say that in your initial posting? I would think that would be much different situation than the usual 'changing ip' configuration of placing a sandbox database on a DHCP desktop or laptop machine...
    I don't have any experience with VM's, so I'll leave that to those that do. At the least, I'd expect the loopback adapter to not necessarily be your solution. That's for the assumptions that I clearly stated in my first response. If those assumptions don't match your situation (and it is now clear that they don't) then you need consider that before taking any advice based on those assumptions.

  • We have recently converted all our forms into livecycle. Some of our executives would like to use them on an iPad. I have not been successful so far. Is there a way to do this?

    We have recently converted all our forms into livecycle. Some of our executives would like to use them on an iPad. I have not been successful so far. Is there a way to do this?

    You would have to use AEM Forms to take the XDP you designed and render the template as HTML5 for viewing on the iPad.

  • What is wrong with Firefox ---It will not pull up anything the way it used to --having to use exployer instead ---Help

    What is wrong with Firefox ---It will not pull up anything the way it used to --having to use exployer instead ---Help
    The catalog of our University will not pull up properly on Firefox but will on internet exployer Why?

    The #rdn# is a url variable that is pass to this form from
    another page. I put it in a hidden filed and originallly used it as
    from.rdn. That did not make a difference, so I just used rdn.
    The cfoutput to display the rdn, partnumberid,
    deliverynumber, totalrows, and row, all display properly. I even
    use those in the query anlayzer and the update works.
    I will remove the crparam and see if that makes any
    difference. This is very frustrating since there are no error
    messages and I am led to believe the code works.

  • How to use a Template in reports as in Forms ?

    Goal:
    I need to use reuse a common code in all of my reports.
    Current scenario:
    I need to display Report title, database name and report REP file name in the header of each report. So if I change at one place it should be reflected at all he places I refer this code.
    P.S. I have a table which stores report file name and title in report.
    Questions:
    1) Is there a way to know the REP file name in the report like we have in the form GET_FORM_PROPERTY ?
    (Because once I know the rep file name I can search in my table to fetch the description, as I don't want
    to hard-code the REP name anywhere in the code)
    2) Getting the database name is not a problem, I can always query v$database or v$instance to get the db name.
    2) Where can I put this code so that I can refer the same code in all the reports, like the way we do it in
    the forms (by subclassing an object or object group from Template or a common form to individual form).
    Thanks
    Mehar

    Thanks very much. Get_Report_name works.
    But I have an additional problem:
    The changes I make in the template, are not getting reflected in the report based on the template i.e. There is no more reference once I make a report based on the template unlike in forms where I can "keep the path" while subclassing any object from one form to another.
    Is it the default bahaviour of using the template ? Or do I need to do something else ?
    Thanks again,
    Mehar

  • Using open instead of file open causes Acrobat X11 to barf and stop working

    I get a Critical Error when I use Open instead of File Open.
    Faulting Application Path: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
    Problem Event Name: APPCRASH
    Application Name: Acrobat.exe
    Application Version: 11.0.9.29
    Application Timestamp: 5412b52e
    Fault Module Name: StackHash_9cd1
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Code: c00001a5
    Exception Offset: PCH_9A_FROM_ntdll+0x0003AAAC
    OS Version: 6.3.9600.2.0.0.256.48
    Locale ID: 1033
    Additional Information 1: 9cd1
    Additional Information 2: 9cd11aece74acb27712497bb36a41cb9
    Additional Information 3: 907e
    Additional Information 4: 907e2580c2bb8a6c100db3c807719959
    Bucket ID: 14715054b1814cb4d80f9c990e44ea23 (73554368215)

    You can use the DocOpen event.

Maybe you are looking for

  • Computer not responding...help I am out of Canada and don't know what to do, no backup, no disks...

    My computer has been off for a week and a half and worked just fine on July 4th before turning off. Turned it on last night, look like it started fine and like everything loaded, but then I tried to click on something and no response, or it would hav

  • Business object xi release tool

    Hi Does anybody know about oracle Business object tool ? where i can find institue in Mumbai ? Thanx in advance

  • Any performance considerations with FABridge?

    Hi, I've put together my first Flash / Ajax application using FABridge, which looks an exciting new technology. So far, my trials suggest I can create any number and type of Flash controls dynamically from Javascript......however, can anyone from Ado

  • Windows Media Player 9 can't open

    Hello, I have just downloaded Windows Media Player 9 for Mac OS X from the Media Player website. The download appears to be succesful, however it is on my desktop as a .bin file. When I double click on it, it won't open. How do I go about installing

  • Stub  and Skeleton

    what does it mean "Stub and Skeleton" No, i am not asking for dictionary meaning . but in terms of programming . what it means ? can you explicitly ( an example will be be good ) explain what does it mean in programming ? thanks for the time