Form -  Available Database Columns

I deleted a column from the list of database columns in a form.How do I get one back or if I have added more columns in the database, how do I refresh this list to show all avaiable columns.
Thanks

Hi,
You should add a new column for the deleted columns with the same name as of the database table field(click on FORM + at top of all fields in the form),and also if new field is added you should give the same name as of the field on the form.It will not be refreshed once if the fields are added after once you have selected the table in "table/views" section.
Hope it helps.
rahul

Similar Messages

  • Passing IR Values to Form via Link Column

    I am fairly new to APEX and was wondering if there was a way to pass more than the 3 allotted values in the Link Column of an Interactive Report.
    My report is generated from a query that pulls from several tables. My link column navigates to a form that edits attributes from one of the queried tables. I want to display all the associated values from the same row in the report, but the link column seems to only allow 3 items to be passed to the next page. I can currently fetch all row values that belong to the table the form was created for, but I don't know how to get the others.

    Hi,
    Instead of passing a number of values through link which in turn passes through URL, you could use Automatic Row Fetch process on load of your
    form page to fetch the values of all form items.
    Moreover, you have limitation on the data passed through URL.
    For using the Automatic Row Fetch process you have to do following:
    1) On your form page create a hidden item to hold the primary key value you pass through your link on Interactive Report.
    2) Change the Source Type of each item on your form to Database Column.
    3) Change the Source value or expression to name of your database column whose value the item will hold.
    4) Create a Automatic Row Fetch process Process Point as On Load - After Header.
    Refer: http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/app_comp.htm#CEGCHJGJ
    See the Populating Forms section below.
    Hope it helps!
    Regards,
    Kiran

  • Checking whether data exists in a BLOB type database column in Forms 6i

    I am developing an application regarding inventory of a plant's spare parts. I am storing photo (.bmp) of spares in the database in a column of BLOB type. Once user punches spare's code, form displays spares data on screen using EXECUTE_QUERY. At this stage I want to check whether picture (.bmp) data was found in BLOB type database column or not. I want to take action accordingly. How to check this. If it would be a numeric column, I would have checked NULL but NULL does not work with BLOB type coloumns.
    Pl. help.
    Thanks in anticipation.

    Did you look in the database documentation? The DBMS_LOB package has the method you need: getlength().
    This was more of a database question than a Forms question, so you'd probably have more luck with these types of questions on one of the other forums, like the database or SQL forums.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Is there anyway to tell what is the database column behind the form field (

    Is there anyway to tell what is the database column behind the form field (in Oracle financials).

    If you are lucky, it can be simple, but if you are unlucky, it can be very complicated.
    Using Help > Diagnostics > Examine when in the field will give you the name of the field.
    Help > Diagnostics > Examine (Block: SYSTEM / Field: LAST_QUERY) will give you the query for the last block queried, which may or may not be the block you want, depending on how the form is defined (ie Master Detail relationships). If this is for the correct block and the field name is one of the columns returned by the query, then that is probably your answer.
    If the Last Query is not for the correct block, using Help > Record History will give you the table or view that the block is based on (only where there is already a record in the block).
    If the field name matches a column name in the table or view, then that is probably where it comes from. If there is no matching column name in the table or view, then the field is probably not queried directly from the database as part of the main query - it is probably populated by logic in the form, like the POST-QUERY trigger on the block. This means you need to open the form in Forms Builder to find what is populating your field (Program > Find and Replace PL/SQL is very handy for this).

  • Order By Clause on Non-Database Column using Forms

    How to Sort by using Order by Clause on Non-Database Column using Forms6i

    Eugene,
    What is the error message/ number you are seeing? If you run "select name from tblperson order by name" do you still get an error?

  • How do I null out an item based on a database column before display?

    I am using Apex 3.2
    I have an item that is based on database column. My customer wants me to "blank out" the item before it is displayed so the user will have to enter a new value in place of the one that is in the database.
    I have tried using a "before region" calculation to set the item to NULL. I can see the value getting set in the debug after the row fetch has occurred, but when the item is displayed, it contains the value from the database, not my calculated valuie.
    I also tried using an unsourced text field and then doing an after submit calculation to set the value of the database column item from there, but no luck that way either.
    Also tried clearing the item cache, but I think that happens way too early.
    There must be a simple way to do this..
    Any suggestion?

    No problem user486652 (name?),
    Yes, the $s function is one of ApEx's built-in's - see the ApEx documentation under API Reference, Javascript API's, and you'll find a wealth of built-in functions that do all sorts of things. For Javascript in general, take a look at www.w3schools.com for some really good tutorial and reference material - I use it constantly.
    Ok, so you want to set the browser field to empty after the page loads. Since this is a page event, it isn't something that will fire for a form field element so you don't want the code there. In ApEx 3.2, edit the attributes for the page, and you'll see a setting called "HTML Body Attribute". You'll see a helpful bullet note below the setting saying this is the place to add onload events. The proper syntax will be:
    onload="$s('P2_REMEDY_TICKET', '');"Once ApEx puts everything together and the page renders, this code will tell the browser to run that $s function after the page loads.
    But be aware - if you take a look at the help for that setting, you'll see that it mentions that this will only work if your page template includes the #ONLOAD# substitution string. Not sure if all ApEx-supplied page templates already have #ONLOAD#, but every one I've used does. If your code still doesn't work, check your page tempate. In the Definition region, under Header, you should see a body tag with something like:
    <body #ONLOAD#>...
    ...If that's there, your page template supports the HTML Body Attribute. If your body tag doesn't have an #ONLOAD#, add it.
    Hope this helps,
    John
    If you find this information useful, please mark the post "helpful" or "correct" so that others may benefit as well.*

  • Report canceled with message 'No forms available',

    We are stumped. 
    I created a simple ABAP HR report using the PNP logical database.  It pulls benefits info and master data for displaying on the screen.   (Associates Eligible for FMLA)   No ALV grid, just a simple write to the screen. 
    The job runs fine in in the background as well as foreground in DEV, QAS, and STA .
    But now that the program is in PRD, when we run it in BACKGROUND, the job CANCELS after 10 minutes.  
    The spool lists the message 'No forms available', several dozen times, and then 'No memory for cua processer'.
    Oddly, the program runs fine in forground.
    Any clues how I can get this program to run in background?

    Job log Messages:
    12:48:38    Job started
    12:48:38    Step 001 started (program ZPRCR_DISABILBITY_ELIGIBLE)
    12:48:50    No forms available
    12:57:47    No forms available
    12:57:48    No memory for cua processor
    12:57:49    Job canceled
    I looked at the code and there are no ABAP 'check' statements, nor reference to sy-mandt. 
    There is code in the 'at selection-screen' section that puts out a warning if the program is ran in foreground without a date.
      if pn-begda is initial and sy-batch is initial.
        message e000(zpa) with 'Please enter a run date'.
      endif.  
    Other than that, the program runs fine in foreground in PRD, but cancels in background.  The same code runs fine in foreground and background in all our other clients.    Our BASIS group is stumped too.
    Thanks
    Doug

  • Forms 6i Database Tables

    Hi there: I have installed Forms 6i Database Tables and I am able to save and retrieve forms to and from the database. Any of you have the catalog of these Forms Tables? Do you the names of the tables storing blocks, canvas, items, etc?
    In Forms4.5 it is very easy because I have a table for blocks and for many other items of the form, but it seems to be hidden in forms 6i.
    Any help would be greatly appreciated.
    Regards

    I don't think there is any description of the tables other than what you can get from the CREATE TABLE scripts.
    PS. Are you sure you still want to go the route of storing the Forms in the database. Be advised that this feature was dropped from later versions. So if you're ever going to upgrade to a later version you will have to extract all of them from the database anyhow.
    PS2. If you want to "analyze" the Forms, I personally use the Forms to XML conversion available in Forms 10gR1, 10gR2 (and perhaps 9i). This converts your FMB to a very readable XML file which you can use for analysis. It could be an option to convert the 6i FMB file to XML with a newer version of Oracle Forms. Be sure that the batch file does not save the existing FMB as it would upgrade it to a new file format and you could not open it with Forms 6i any more. Take a backup first.

  • Pre populate an item with source type="Database Column"

    Hello gurus,
    How can I pre populate an item with source used "Always, replacing any..." and source type="Database Column"?
    I have a form that creates/updates rows in a table and when creating a new row I want to populate some of the fields based on some parameters from the previous page. How can I achieve this?
    I tried adding a conditional process when PK is null and populate the expected fields, but in the browser they are not shown with those values, even if I look into the session I can see that they have the values assigned in the process ?!?!?!
    Thanks in advance,
    Florin

    Florin,
    Use the Default Value item attribute. In you case, set the Default Value Type to Static Text with Session State Substitutions and enter your item using the &P1_ITEM_NAME. syntax in the Default value text box.
    Thanks,
    - Scott -

  • How to access a non-database column in a report?

    Hi all,
    I would like to populate a column in my report, which is not based (in Oracle Forms, it is a "non-database item").
    But I don't know how to access it. Let's say the alias of the column is "column", I tried to do it with #column#, but it's not valid.
    Does anyone know a solution here?
    Thanks a lot,
    Dovik

    Dovik
    Where do you need to access the column value ? Are other columns of the report accessible from where you are trying to access the value of this 'non database' column ?
    varad

  • Non Database Column to Grid Control

    Hi,
    How do I add a Non database column to a Grid Control which is
    based on a Rowset. I want the similar functionality of a
    multirow Block in D2K Forms, which is based on a Database query
    and to which another item is added which is non Database item
    and it is also displayed as any another item in the same
    multirow block. The updatable and queryable property for this
    item is set to false.
    How do I get similar functionality in JDeveloper using InfoSwing
    GridControl. Thanx in advance.
    --- Ravi
    null

    The GridControl does not have built-in support for this
    functionality. However, the GridControl source code is provided
    so you can extend the control to provide this functionality.
    In 3.0, the Oracle Business Components for Java will provide the
    ability to create objects that can mix db and non-db attributes.
    The GridControl can then be bound to this object to provide the
    functionality you seek.
    - PSW
    Ravindra Channe (guest) wrote:
    : Hi,
    : How do I add a Non database column to a Grid Control which is
    : based on a Rowset. I want the similar functionality of a
    : multirow Block in D2K Forms, which is based on a Database query
    : and to which another item is added which is non Database item
    : and it is also displayed as any another item in the same
    : multirow block. The updatable and queryable property for this
    : item is set to false.
    : How do I get similar functionality in JDeveloper using
    InfoSwing
    : GridControl. Thanx in advance.
    : --- Ravi
    null

  • Inserting date into database column automatically

    This may be a silly question. But how to add a date(system date) in to the database column automatically when a user submit a form.???
    thanks
    san

    Hi,
    Use default values?
    SQL>create table t
    2  (
    3  a number,
    4  constraint def_val_b b date default sysdate
    5  );
    Table created.
    SQL>insert into t (a) values (1);
    1 row created.
    SQL>select * from t;
             A B
             1 22/11/05
    1 row selected.Regards,
    Yoann.

  • Order of numeric string of database column

    I have database column that has varchar2 type. I tried to sort it in order but It would not work. It behaves like this.
    1 10 11 15 2 20 3 30....
    What I want is this
    1 2 3 10 11 15 20 30 ....
    I tried format mask but it does not help.
    Please help.

    written before the post immediately above
    I'm not sure what you mean by that. It's an oracle function, so check the docs for your version to see if it's available. Otherwise:
    CREATE OR REPLACE FUNCTION isnum(p IN VARCHAR2) RETURN VARCHAR2 IS
      x NUMBER;
    BEGIN
      x := To_Number(p);
      RETURN 'Y';
    EXCEPTION
      WHEN Value_Error THEN
        RETURN 'N';
    END;
    WITH data AS(
      SELECT 'a' AS col1 FROM dual UNION ALL
      SELECT '11' AS col1 FROM dual UNION ALL
      SELECT 'd' AS col1 FROM dual UNION ALL
      SELECT '1' AS col1 FROM dual UNION ALL
      SELECT '2' AS col1 FROM dual UNION ALL
      SELECT 'b' AS col1 FROM dual UNION ALL
      SELECT '10' AS col1 FROM dual UNION ALL
      SELECT '12' AS col1 FROM dual
    SELECT col1
    FROM data
    ORDER BY
      CASE isnum(col1) WHEN 'Y' THEN 'b' ELSE 'a' END,
      CASE isnum(col1) WHEN 'Y' THEN To_Number(col1) END,
      CASE isnum(col1) WHEN 'N' THEN col1 END
    ;

  • Select List Defaults -- w/ Database Column

    I've checked the forums, but I'm still stuck on this.
    So I have a form that keeps track of meetings and contains a select list item of persons who could have organized the meeting. This select list is linked to a database column. I would like this to default to the logged-in-user when a new meeting is created.
    Unfortunately, whatever I try (defaults, computations, etc.), I cannot seem to be able to change the selected name. If source is set to database column and always use source, will it override and prior attempts to change the value of the select list?

    Wahhhh.....okay, it took me two days to come up with a solution to this. Marc, that was exactly the way I thought it should be. I had as the default attribute a PL/SQL function body that looked like:
    select person_id into :P27_LEAD_ID from person where username = :APP_USER;
    But that never worked. I still have no idea why. Anyway, I ended up using in SQL query to fill a hidden box and then referenced the box in the default using:
    &P27_LEAD_DEFAULT.
    Even leaving it as a PL/SQL expression and referencing it as :P27_LEAD_DEFAULT didn't work. =/
    Thanks for your help,
    Jonathan

  • Spaces in database column names

    Hi folks!
    Does anyone know if there is some way to reference Micosoft Access
    database columns that contain spaces using Forte and ODBC?
    I know it's like trying to use a jet plane to go down to the high street, but
    we want to extend a (large) in-house system with a good Forte front-end.
    I am aware that there are utilities available to rename entities within
    Access databases, but if there is an easy way to do this in Forte we'd
    prefer to go that way.
    Cheers,
    Duncan Kinnear,
    McCarthy and Associates, Email: [email protected]
    PO Box 764, McLean Towers, Phone: +64 6 834 3360
    Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
    Providing Integrated Software to the Meat Processing Industry for over 10 years
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Duncan,
    Just put the column in double quotes.
    Example:
    sql SELECT
    ,ipool.id
    ,asgn."Assignment Date"
    ,asgn.router
    ,asgn."Order Number"
    FROM assigned_ips addr
    ,assignments asgn
    WHERE
    addr.id = asgn.Assigned_IP
    AND asgn.master_ip = mpool.id
    AND mpool.ip_pool = ipool.id
    AND ipool.ncc = ncc.id
    ORDER BY addr.id
    on session accessDbSession
    At 09:31 AM 6/17/99 +1200, you wrote:
    Hi folks!
    Does anyone know if there is some way to reference Micosoft Access
    database columns that contain spaces using Forte and ODBC?
    I know it's like trying to use a jet plane to go down to the high street,but
    we want to extend a (large) in-house system with a good Forte front-end.
    I am aware that there are utilities available to rename entities within
    Access databases, but if there is an easy way to do this in Forte we'd
    prefer to go that way.
    Cheers,
    Duncan Kinnear,
    McCarthy and Associates, Email: [email protected]
    PO Box 764, McLean Towers, Phone: +64 6 834 3360
    Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
    Providing Integrated Software to the Meat Processing Industry for over 10years
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Maybe you are looking for