Forms API Programing....

Dear All,
I am Oracle forms developer and still working with forms 6i. I am in the middle of upgrading my oracle application using C API. Can someone guide me how to import a custom color palette using C API program? I have the palette ready and and it works fine if I import it to any form manually. But I want to get it done by c API program in order to save time. Please help.......
I have posted this problem few days ago too but no reply. Oracle Forms product manager,,,,,,please help!
Regards,
A Rehman

How does forms relate to SQL and PL/SQL which this forum is?
Perhaps you want to ask in the Forms forum:
Forms

Similar Messages

  • Forms API for migration tool

    This is about some information mentioned in Oracle documentation 'Migrating SQL* Forms 3.0 Applications to Internet Computing' - Oracle Technical White Paper, March 2000. Here on Page 25, they are explaining about custom built migration tool. They are saying that Oracle Forms publishes an API to internal structure of FMB file. With this API one can read and create an FMB file with the help of some C application.
    I am not getting what this API is and how I can use this in some program. Also what C application is supposed to do? Will it have functionality to make changes in existing FMB file with this application?
    We are migrating Forms 3.0 to Forms 6. So if anybody has developed such a custom built migration application, please guide me regarding the steps I can proceed.
    Thanks
    Manjusha

    I set the path in the config files correctly.
    I use no particular option on the command line. Should I ? (I tried some of them, with no success).
    Should I link separately from the compiling in order to use special link options ?
    Is there a forum for Forms API programming ?

  • How to use d2kwutil for calling win-api programs in form 6i

    I WANT TO USE d2kwutil for calling win-api programs in form 6i.
    PLEASE GIVE ME IT'S SOLUTION.

    D2kwutil comes with a Demo Form WAPIDEMO - you can run this to see every function demonstrated. You can even run a function using the demo form and copy the syntax required directly into your own form -------------------------
    yes in have got that WAPIDEMO from web and run successfully but
    i can not do those codes in my owdn form.Because i do not get those apis like
    win_app_session in form 6i.
    Again i could not understand how that form runs without connecting to database.
    Please describe the solution.

  • Connect to Database from FORMS API  - Forms 6i

    Hi,
    We have a requirement of connecting to a Database from the Forms API. I have written few Forms API from the header files provided by ORACLE. But all of those doesnt require to connect to the database.
    Now, i have a requirement to connect to a database and query from a table and so on. I hope many of this forum users would have developed many such programs.
    Please mail me or post a reply to this thread if you have any sample program of the same from where i can take it up.
    Thanks in advance

    Thanks Sirotic.
    We are using only 6.0.8.14.1. So as per your reply i dont have the jar file at my end.
    However with the existing C API's i am not sure whether i can achieve my requirement.
    Let me explain my exact requirment.
    1) Connect to a DB
    2) Execute a Select Query to a table and fetch few values and store in a Variable
    3) Assign the value to a Trigger of a ITEM.
    Is it possible to achieve this through the existing C API or through the Java API you have suggested us. Its better if you can forward any C API stuff for this, as production environment(s) are running with 6.0.8.14.1
    Please confirm on this
    Thank you in advance.

  • API Programming error (CS_CHARGE_DETAILS_PVT.Create_Charge_Details): &TEXT.

    Hi All,
    In Service Request no. 2744824, customer is 'WAYNE COUNTY (NORTH CAROLINA)'/Number  1605753/ Account 375554. However, serial no. BC512T0008 is attached with  'WAYNE COUNTY (NORTH CAROLINA)'/Number  32522/ Account 375554 in Installed Base.
    Due to this, debrief lines are not submitted and error is coming as 'API Programming error (CS_CHARGE_DETAILS_PVT.Create_Charge_Details): &TEXT.'
    I have checked for Doc ID 753240.1 and customer  'WAYNE COUNTY (NORTH CAROLINA)' with party number  1605753, but party number 32522 is attached with this customer and no customer is there for party number 1605753.
    What should be done in this case to submit debrief lines with no error. Find attached screenshots for this.
    I have tried by entering party number 1605753 in the customer standard form, but no result came for this.
    SR has been created with this party number only, maybe this was attached with customer earlier.
    What can be done now?
    Thanks & Regards,
    Gaurav Joshi.

    However, I cannot find the API in the etrm.
    I have checked the package from backend and couldnt find the issue.I can find it.
    R12:
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=CS_CHARGE_DETAILS_PUB&c_owner=APPS&c_type=PACKAGE
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=CS_CHARGE_DETAILS_PUB&c_owner=APPS&c_type=PACKAGE%20BODY
    11i:
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=CS_CHARGE_DETAILS_PUB&c_owner=APPS&c_type=PACKAGE
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=CS_CHARGE_DETAILS_PUB&c_owner=APPS&c_type=PACKAGE%20BODY
    Thanks,
    Hussein

  • How to use one forms fields, program units in another form.

    The whole proceessing and update is happening in one main form.
    Main form has all the fields and a reprocess button which re-creates records if they have error. Record name is the primary key.
    I have another small form, which just shows the list of record names in the system. I want a reprocess button next to each record name so that user will be able to just select any record name and press reprocess button to recreate any record data.
    There are a lot of fields in main form and program units , which are used by the reprocess button.
    Any suggestions like how to go for it?

    You can either pass all the relevant data from the Small Form to the Larger form and make it reprocess the data or you can move the Program Units to a PL/SQL Library (.pll) and attach the library to your smaller form where you can call the program units. Either option requires changes to the Larger form to enable it to process a record passed to the form as a parameter or to externalize the Forms Program Units to a library.
    Personaly, I would recommend you move the Program Units to a Library. This would enable you to use the processes in any form (that has the library attached).
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • When I try to use the Submit Form button on the Interactive PDF I created (IN Design CS6) I get this message. "There is no value in form field 'Program.' Please put in it before proceeding. What can I do to fix this and make the Submit button work?

    When I try to use the Submit Form button on the Interactive PDF I created (In Design CS6), I get this message:
    There is no value in form field "Program." Please put in it before proceeding.
    How can I fix this and make the Submit Form button work?

    Are you running modified software on your phone?  This error seems to be common if the firmware has been modified and you're trying to restore the phone again. 

  • How to find ADOBE form driver program

    Hi,
    How to find out ADOBE form driver program. I have form name and interface name. I want to know driver program.
    Thanks
    Ramesh

    Hi,
    You can the following two ways.
    1)Go to your Interface or the Form which you have created -> Use Display object list to see form and Print program that are linked to that Interface.
    2) You can use NACE transaction->
    Select the application type, and Click Output Types->
    Choose the Output type and Click on Processing Routines
    Here you can find the Driver program and and the Corresponding PDF Form.
    Regards,
    Amit.

  • Possible memory leak in forms api 6i

    There appears to be a bug in forms 6i.
    I am getting an error at the following snippet of code. The Name prints fine and the whole code runs great if i comment out free(v_value), but obviously i would not want to do that.
    I am using MS VC++ 6.0 compiler,
    The error is::
    HEAP[xephr.exe]: Invalid Address specified to RtlFreeHeap( 3540000, 364fc08 )
    This means that i am trying to free the memory which has already been freed, meaning thereby that api has already freed the memory associated with name. But then why should the api function d2fobgt_GetTextProp free the memory allocated for name as i am supposed to free it.
    Now that appears to be a bug.
    Please suggest...
    Here is that relevant code snippet...
    text* name;
    if (d2fobgt_GetTextProp(ctx, p_obj, prop_num, &name)==D2FS_SUCCESS)
    printf("\nName=%s\n", name); /* prints the name properly*/
    if ( v_value!=NULL )
    free(v_value); /* Raises error, Invalid Address specified to RtlFreeHeap, the error disappears if i
    comment out the free(value) line. */

    Hello :)
    I read your message cause i look for a answer to a big problem i encountered while trying sample code from Oracle Forms API : it's impossible to create the Forms API Context, the d2fctxcr_Create() function always return D2FS_FAIL.
    As your problem seem to be happened after this call, i wonder you can create the context without errors.
    Here the code I used, so perhaps you can see my error (I compile under VC6) :
    int main (int argc, char *argv[])
    d2fctxa ctx_attr;
    d2fctx *ctx;
    d2fstatus status;
    /* Create Forms API context */
    ctx_attr.mask_d2fctxa = 0;
    if ( (status=d2fctxcr_Create(&ctx, &ctx_attr)) != D2FS_SUCCESS )
    fprintf(stderr, "Error creating Forms API context (%d)\n",status);
    exit(1); /* ALWAYS GO THERE */

  • Problem Exporting / Importing print forms with program RSTXSCRP

    Hi!
    there is problem Exporting / Importing print forms with program RSTXSCRP.
    when I transfer print form from one SAP system to other, logo image and some text is missing... what could be the reason?
    Maybe there is other way to transfer print forms between SAP systems without using program RSTXSCRP?
    Will reward,
    Mindaugas

    Hi,
    when you transfer print forms from one sap system to another, logos are not transfered automatically. these are actually .bmp files which need to be existing in every client. then only when you run your print program logo can be seen in your print output. hence logos need to be created explicitly in every client where you want to run your print program.
    thanks,
    sksingh

  • We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC

    We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC
    Our users use a form template to create other adobe forms with calculated fields, signature fields (using digital signatures)
    , and buttons. Will we be able to continue developing these forms if we upgrade to Acrobat DC?

    Hi Alex ,
    In general ,you would not have any issues and problems moving to Acrobat DC .It has a different user interface and with more enhanced features .
    You would be able to develop the kind of forms you are referring to .
    You could refer to the following document to get more information about Acrobat DC .
    FAQ | Adobe Acrobat DC
    If in case you are referring to any particular issue or problem or if you face any regarding Acrobat DC ,we are always here to help you with that .
    Please feel free to write us back .
    Regards
    Sukrit Dhingra

  • Oracle.forms api

    I need the oracle.forms api for javabeans development, but i am unable to find it.
    I have the JDAPI api, thats not what i want.
    ( I have searched oracle.forms api & documentation on google but i am unable to find them.
    the link : http://www.oracle.com/technology/documentation/oracle9i_arch_901.html
    contains a lot of documentation files, but i am not sure these are the ones that i need.
    some of the files there are over 200 mb. before dowloading such heavy files, i want to be sure that they are the ones i need!!!)
    I want to use the following packages / classes :-
    oracle.forms.handler.IHandler
    oracle.forms.ui.*
    oracle.forms.properties.ID
    I want to find out more about the above mentioned packages, and i thought that javadocs / api would be the most comprehensive help that i can get.
    I have downloaded a few javabeans that were close to my requirement, and was going through the java source codes, thats where i encountered these classes / packages.
    I amd using forms 9i. and Jdeveloper 9i

    You should ask the experts in the forms forum (Forms
    Timo

  • Forms API, does set font size work?

    i call code as below:
    num = 8;
    d2fitms_font_siz(ctx, itm1, num);                    
    num = -1;
    d2fitmg_font_siz(ctx, itm1, &num);
    printf("num = %d ", num);     
    which verifies that the font size was, in fact, set to 8. however when i open my canvas in the layout editor, it appears as zero. all other changes to itm1 seem to work properly.
    do i need to set anything else, or is there a place i can check to see if this feature is broken?
    thanks,
    -james

    /* Copyright (c) Oracle Corporation 1996.  All Rights Reserved. */
       NAME
        D2FFNT.H -- Dev2K Forms API FoNT declarations
       DESCRIPTION
        Contains the public declarations for the Forms API FoNT support
       PUBLIC FUNCTIONS
        d2ffntcr_Create          - Cover for d2fobcr_Create
        d2ffntde_Destroy         - Cover for d2fobde_Destroy
        d2ffntdu_Duplicate       - Cover for d2fobdu_Duplicate
        d2ffntex_Extract         - Extract font info from object into font object
        d2ffntap_Applyl          - Apply font info from font object into object
        d2ffntg?_Get*Prop        - Cover for d2fobg?_Get*Prop
        d2ffnts?_Set*Prop        - Cover for d2fobs?_Set*Prop
        d2ffnthp_HasProp         - Cover for d2fobhp_HasProp
    #ifndef D2FFNT
    #define D2FFNT
    #ifndef ORATYPES
    # include <oratypes.h>
    #endif
    #ifndef D2FPRIV
    # include <d2fpriv.h>
    # endif
    /* C++ Support */
    #ifdef __cplusplus
    extern "C"
    #endif
    ** Object: Coordinate Info
    ** d2ffntex_Extract - Extract the font object from an object that
    **                    has font properties associated with it.  The
    **                    vat_typ argument is one of the D2FC_VATY_*
    **                    constants.  The font object must already have
    **                    been created.
    ** d2ffntap_Apply   - Apply the contents of the font object to the
    **                    specified object.  This is a shortcut to
    **                    setting the individual font properties one-
    **                    by-one.
    ORA_RETTYPE(d2fstatus) d2ffntcr_Create( d2fctx *pd2fctx, d2ffnt **ppd2ffnt );
    ORA_RETTYPE(d2fstatus) d2ffntde_Destroy( d2fctx *pd2fctx, d2ffnt *pd2ffnt );
    ORA_RETTYPE(d2fstatus) d2ffntdu_Duplicate( d2fctx *pd2fctx,
                                               d2ffnt *pd2ffnt_src,
                                               d2ffnt **ppd2ffnt_dst );
    ORA_RETTYPE(d2fstatus) d2ffntex_Extract( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                             d2fob *pd2fob, number vat_typ );
    ORA_RETTYPE(d2fstatus) d2ffntap_Apply( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                           d2fob *pd2fob, number vat_typ );
    ORA_RETTYPE(d2fstatus) d2ffntgb_GetBoolProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                 ub2 pnum, boolean *pprp );
    ORA_RETTYPE(d2fstatus) d2ffntgn_GetNumProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, number *pprp );
    ORA_RETTYPE(d2fstatus) d2ffntgt_GetTextProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                 ub2 pnum, text **pprp );
    ORA_RETTYPE(d2fstatus) d2ffntgo_GetObjProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, dvoid **pprp );
    ORA_RETTYPE(d2fstatus) d2ffntgp_GetBlobProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, dvoid **pprp );
    ORA_RETTYPE(d2fstatus) d2ffntsb_SetBoolProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                 ub2 pnum, boolean prp );
    ORA_RETTYPE(d2fstatus) d2ffntsn_SetNumProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, number prp );
    ORA_RETTYPE(d2fstatus) d2ffntst_SetTextProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                 ub2 pnum, text *prp );
    ORA_RETTYPE(d2fstatus) d2ffntso_SetObjProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, dvoid *prp );
    ORA_RETTYPE(d2fstatus) d2ffntsp_SetBlobProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                                ub2 pnum, dvoid *prp );
    ORA_RETTYPE(d2fstatus) d2ffnthp_HasProp( d2fctx *pd2fctx, d2ffnt *pd2ffnt,
                                             ub2 pnum );
    /* Begin convenience macros  */
    #define d2ffntg_font_nam(ctx,obj,val) \
               d2ffntgt_GetTextProp(ctx,obj,D2FP_FONT_NAM,val)
    #define d2ffntg_font_siz(ctx,obj,val) \
               d2ffntgn_GetNumProp(ctx,obj,D2FP_FONT_SIZ,val)
    #define d2ffntg_font_spcing(ctx,obj,val) \
               d2ffntgn_GetNumProp(ctx,obj,D2FP_FONT_SPCING,val)
    #define d2ffntg_font_sty(ctx,obj,val) \
               d2ffntgn_GetNumProp(ctx,obj,D2FP_FONT_STY,val)
    #define d2ffntg_font_wght(ctx,obj,val) \
               d2ffntgn_GetNumProp(ctx,obj,D2FP_FONT_WGHT,val)
    #define d2ffnts_font_nam(ctx,obj,val) \
               d2ffntst_SetTextProp(ctx,obj,D2FP_FONT_NAM,val)
    #define d2ffnts_font_siz(ctx,obj,val) \
               d2ffntsn_SetNumProp(ctx,obj,D2FP_FONT_SIZ,val)
    #define d2ffnts_font_spcing(ctx,obj,val) \
               d2ffntsn_SetNumProp(ctx,obj,D2FP_FONT_SPCING,val)
    #define d2ffnts_font_sty(ctx,obj,val) \
               d2ffntsn_SetNumProp(ctx,obj,D2FP_FONT_STY,val)
    #define d2ffnts_font_wght(ctx,obj,val) \
               d2ffntsn_SetNumProp(ctx,obj,D2FP_FONT_WGHT,val)
    /* End convenience macros  */
    /* C++ Support */
    #ifdef __cplusplus
    #endif
    #endif /* D2FFNT */

  • New Form 24 Program from April 2008

    Hi Experts
    In Service.sap.com/hrin page and in the Note 1067264 ( New Program for Form 24Q e-File generation) It is given that from April2008 we need to use new Program for Creating F24 but when i execute the transaction it is simply the old one(Creating TEMSE)
    Can you please advise us what should be the HRSP and SAP note Applied Before june payroll or Before F24 creation?
    Also let us know What is the Program to be used for F24 of 2008-2009 Financial year, Is TEMSE generation continuous this year also?
    Points will be awarded for answers.
    Regards
    S.K

    Hi,
    I believe you are still using the transaction pc00_m40_f24. kindly use the transaction pc00_m40_f24q. This is the new form 24q program. Before running this program you will have execute the challan mapping utility. For this you will be using the transaction pc00_m40_cmap. Kindly go through notes 1066572  and 1067264 for the details.
    Regards,
    Santosh

  • Sapscript calling forms from program

    Hi experts
    I need to write a form in a program to get values.
    Here is my code. But i cant seem to succesfully compile it. Need help. I want to take
    ernam from sapscript and send name and lastname back. Can u please fill the function.
    Also i have an error says  itcyy is not a structure ?
    thanks.
    REPORT  ZME23N_SAPSCR_FM.
    tables : user_Addr.
    form get_Values TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    *READ TABLE IN_PAR WITH KEY 'ERNAM'.
    *data firstname like user_addr-name_first.
    *select single * from user_Addr
    *where bname = ernam.
    *firstname = user_Addr-name_first.
    *lastname = user_addr-name_last.
    endform.

    You can use the PERFORM command to call an ABAP subroutine
    (form) from
    any program, subject to the normal ABAP runtime
    authorization
    checking. You can use such calls to subroutines for
    carrying out
    calculations, for obtaining data from the database that is
    needed at
    display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed
    when a
    document is formatted for display or printing.
    Communication between a
    subroutine that you call and the document is by way of
    symbols whose
    values are set in the subroutine.
    The system does not execute the PERFORM command within
    SAPscript
    replace modules, such as TEXT_SYMBOL_REPLACE or
    TEXT_INCLUDE_REPLACE.
    The replace modules can only replace symbol values or
    resolve include
    texts, but not interpret SAPscript control commands.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of
    the four
    SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must
    therefore be
    character strings.
    The ABAP subroutine called via the command line stated
    above must be
    defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING...
    are now
    stored in the internal table IN_TAB . Note that the system
    passes the
    values as character string to the subroutine, since the
    field Feld
    VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR
    80). See the
    example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the
    CHANGING
    parameters in the PERFORM statement. These parameters are
    local text
    symbols, that is, character fields. See the example below
    on how to
    return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in
    the ABAP
    program QCJPERFO is called. Then the simple barcode
    contained there
    ('First page', 'Next page', 'Last page') is printed as
    local variable
    symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY 'PAGE'.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'NEXTPAGE'.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY 'BARCODE'.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = '|'. "First page
    ELSE.
    OUT_PAR-VALUE = '||'. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = 'L'. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.

Maybe you are looking for

  • Windows 7 XP mode looses password

    XP mode has reset/forgot my logon details. I had previously removed the password in the virtual pc control panel and enabled guest account and had used xpmode for a month with no problems. One day when i booted it up it asked me to log on which was s

  • How do I get rid of "This is embarassing" message that is now default when opening Firefox. H

    How can I get rid of this tab the message refers to and the error message?

  • Enable unicode support

    I have nokia 6500 slide model phone. How I can enable unicode support for reading "jar" file in regional language, especilly in malayalam language

  • My samsung galaxy s4 mini can`t open photos or group texts

    Hey there, I have data access over mobile network turned on. Whenever I am included in a group text, or if someone sends me a photo, I can't open it. The message says, "Message size: 1 KB." says when the message will expire, and provides a "download"

  • RE:  Essbase Report Scripts

    Hi all i really thanks for your support ... Here is my question I need a Essbase report script which in essence is a basic query where we would say all lev 0 cost centers excluding the some of the rollup points. i.e i need to delete some level 0 memb