Using vba in Oracle Forms 6i

Hello
I'm working with Oracle Forms 6i and I need to check if a certain folder exists before I make an action, I think there's no way to do it with Oracle Forms only, so I tough doing it with vba.
Is there some controller that allow me to use vba in Oracle Forms? Or maybe I can do this another way.
Thanks

You can use this piece of code to check if a directory exists:
declare
  l_hostcommand  varchar2(1000);
  l_dir          varchar2(200) := 'f:\oracle';
begin
  l_hostcommand := 'cmd /c if not exist '||l_dir||' exit 100';
  host(l_hostcommand, no_screen);
  if form_success then
    message('Directory found');
  else
    message('Directory not found');
  end if;     
end;   If you have no drive mapping, just use UNC (\\server\oracle).

Similar Messages

  • How to use css in oracle forms

    Hello,       I am using oracle forms 11g with weblogic server 10.3.5 at windows 7.I have to use CSS in oracle forms.i have tried to search it but no profit.please some one else tell me that how can use css in oracle forms. Thnak You regards aaditya

    Hi
    As Francois pointed out Oracle forms has nothing to do with html based technology. The way you can get the equivalent effect of creating consistancy in the way your objects are displayed is by creating a set of items you want and alter their apperance and behaviour and place them into object libraries (one library should do the trick).  From there you subclass all of you forms items off these libraries.
    Regards
    Quintin

  • Using jfreechart with oracle forms 11g

    Hi everybody,
    I'm using jfreechart with oracle forms 11g to continue having graphs in my application since i'm migrating from forms 6i. I've already got it working and it's great. Just have one problem left. I don't know how to change the axis labels. In Bar charts, it comes with "Values" in y axis and "Category" in x axis by default. I wanted to change that or make it dissapear. Anyone knows how to?

    I've never used the jFreeChart, but according to their website you can use the "setLabel" method to set the label for an axis. Check out Axis (JFreeChart Class Library) for more information.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Supress Message using Personlization in Oracle Forms

    All,
    Is there a way to supress the message using Personlization in Oracle Forms 11i.
    Thanks,

    Hi;
    Please check below thread which could be helpful
    Forms Personalization Document
    Re: Forms Personalization Document
    Re: Form Personalization
    Regard
    Helios

  • Can we use WebUtil with Oracle Forms 6i

    Can any one tell me if we can use WebUtil with Oracle Forms 6i..I have 11.5.9 instance of oracle apps and i want to use some features of WebUtil to customize one of seeded Oracle Form.
    Any pointers in this regard are quiet welcome.
    Thanks,

    Strictly speaking no...however you could "backport" the webutil code and in theory you could get some of the functionality to work - this is not supported in the context of oracleForms although Oracle Applications may have their own specific solution/certification of this.
    Regards
    Grant Ronald

  • Where to find and how to use JDAPI with oracle forms

    Hi All
    I want to use JDAPI for oracle forms, plz can any one suggest that where i can find the required jar for JDAPI, provide me if any links r there for downloading JDAPI.
    Thanks in Advance

    Hi Torsten Kleiber
    I am interested in changing forms buttons in our existing forms .I was trying to find if it was possible.Going thru your post I realised it is possible to change properties in existing forms .
    i have specific questions with JDAPI will i be able to change my buttons in a form to Iconic buttons.
    Could you kindly send me the code of your class in the abovementioned post (I have created a simple class to modify some forms properties.)
    I would like to have alook at it i am a Novice in java but looking at your source code may be able to give myself a head start .(I am well versed pl/sql forms and reports NO JAVA idea)
    Two while trying out the oracle demo to create a form by jdapi I was able to create a class and was unable to execute it .What do i need to install to execute it. I have forms 10 installtion with Jinitiator 1.3 installed
    DO i need to install Jdeveloper or JDK i think either of this is required. I shall be highly be obliged if u can clear my queries or any one else in the forum may wish to add to 2cents to my infinetly minimal knowledge of java

  • How to use LDAP with Oracle forms 10g on Oracle application server

    Hi,
    I need some help on this. I have developed oracle forms 10g on application server 9iAS. The client want to use the existing LDAP authentication to the software we wrote. I do not know how I could configure to use the existing LDAP authentication . If anyone know how would I use the existing LDAP on different server to use when they logon to our menu in 10g to validate the user. Do I need to add any varibales in formweb.cfg or any other method. Please help.
    Thanks
    Luksh

    I am not quite sure if this works out of the box. According to an Oracle FAQ:
    4.2 Can I use LDAP to authenticate Forms Services?
    Not directly. However, Oracle Login Server is able to authenticate against a LDAP directory and thus a Forms application can take advantage of this in a SSO environment. But you cannot use access control information stored in a LDAP directory with Forms.

  • In which trigger can i use go_item() in oracle forms 6i?

    Hi,
        I have a problem with go_item.
    I tried executing go_item() in triggers like key_next_item, pre_text_item, post_text_item & when_validate_item.
    But none of them seemed to be working.
    I searched for other possibilities in the site, where i found a solution of using trigger ' when_timer_expired ' with ' when_validate_item ' ,
    but when i tried to create trigger, i did not find that trigger (when_timer_expired)  in the list at all.
    I'm using oracle form builder 6i.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.
    A trigger with go_item() must be created when tab is pressed.
    In which trigger can i use go_item() ??
    Thank You.

    from help:
    Restricted Built-in Subprograms
    Restricted Built-ins affect navigation in your form, either external screen navigation, or internal navigation. You can call these Built-ins only from triggers while no internal navigation is occurring.
    Restricted Built-ins cannot be called from the Pre and Post triggers, which fire when Oracle Forms is navigating from object to another.
    Restricted Built-ins can be called from the When triggers that are specific to interface items, such as When-Button-Pressed or When-Checkbox-Changed. Restricted Built-ins can also be called from any of the When-New-"object"-Instance triggers and from key triggers.
    Unrestricted Built-ins do not affect logical or physical navigation and can be called from any trigger.
    The Built-in descriptions include a heading, Built-In Type, that indicates if the Built-in is restricted or unrestricted.

  • How to use Javascript in oracle forms

    Hello Experts,               I am new in Oracle forms using weblogic 10.3.5 with oracle forms 11g at windows 7.I have need to run a javascript code block inside my oracle form.Please suggest me that how can i do this.Actually I have need to validate my item field alike for email address for this I have to use Java script code. thank You regrads aaditya.

    Hi
    As Francois pointed out Oracle forms has nothing to do with html based technology. The way you can get the equivalent effect of creating consistancy in the way your objects are displayed is by creating a set of items you want and alter their apperance and behaviour and place them into object libraries (one library should do the trick).  From there you subclass all of you forms items off these libraries.
    Regards
    Quintin

  • How to use BLOB in Oracle Forms 10g?

    Hi
    I defined a column in a table with the type BLOB,
    then I used it at the form with a data block.
    Now how can I let the user to insert his photo in this column?
    If you don't know the answer please put any web links that may helps me

    Hi Omkar,
    Please check the following code.
    DECLARE
      repid REPORT_OBJECT;
      v_rep VARCHAR2(100);
      rep_status VARCHAR2(20);
      plid ParamList;
    BEGIN
      plid := Get_parameter_List('tmp');
      IF NOT Id_Null(plid) THEN
      Destroy_parameter_List( plid );
      END IF;
      plid := Create_parameter_List('tmp');
      add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
      Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
      repid := FIND_REPORT_OBJECT('POL_REP');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
      v_rep := RUN_REPORT_OBJECT(repid,plid);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
      WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
      LOOP
      rep_status := report_object_status(v_rep);
      END LOOP;
      WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
      '||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
      '&paramform=no');
    END;
    I am used to Start the Report sever   'Rwserver Server=prod_Report_Server Start'
    OracleAS Report Services
    Version :-   10.1.2.0.2
    Name    :-   prod_report_server
    Status  :-   Server is Shutting down
    Jobs in Queue  0
    Active Engines  0
    I got the Following Error when I trying to run the Report
    FRM-41211: Integration error:SSL failure running another product
    Thanks and Regards,
    Faziludeen

  • Is it possible to use DVT with Oracle Forms 11g?

    Hi,
    I have posted my question on Oracle Forms forum but I didn't get answere regarding dvt usage in Oracle Forms.
    Now I try it here.
    Oracle Forms 11g and charts / graphs
    ====
    one of our customers has a forms 6i applications including oracle graphics and is thinking about upgrade to forms 11g.
    Oracle graphics has been desupported with 6i and with 9i Oracle BI beans has been recommended.
    Forms 10g is the terminal version for Oracle BI beans too (http://www.oracle.com/technetwork/middleware/bbi-beans/overview/oraclebibeanssod2008-129560.pdf).
    What's the recommended technology for graphs/charts in Forms 11g?
    Is it ADF DVT?
    If yes, are there examples how to call them from Forms 11g?
    =====
    regards
    Peter

    Hello Shay,
    thank you very much for the link.
    I wonder if there any plans from Oracle to provide and support a DVT wrapper in next versions of Oracle Forms 11g
    As the customer project is planned for Q2/2011 we still have some time and hope for this :-)
    regards
    Peter

  • Using DDE with Oracle Forms for uploading Excel data

    Hi There,
    I have used DDE in Forms to upload data from Excel.
    The code which I have implemented is as follows:
    DECLARE
    iApplication pls_integer;
    iConv pls_integer;
    v2Buffer varchar2(100);
    v2text varchar2(100);
    nLength number;
    nTransactionId number;
    /* these varrays are defined in a package specification*/
    vExcelProduct p_upload_functions.prd_no:=p_upload_functions.prd_no('1');
    vExcelVpc p_upload_functions.vpc:=p_upload_functions.vpc('1');
    BEGIN
    /*Open an DDE Server application*/
    iApplication:= DDE.App_Begin('C:/excel.exe ‘||v2fileName,DDE.App_Mode_Minimized);
    iConv:=DDE.Initiate('EXCEL',v2filename);
    BEGIN
    /* first row of the sheet used for title . So loop is started from 2*/
    /* Reading a row*/
    FOR I IN 2..10000
    LOOP
    /* Reading columns of a particular row*/
         FOR J IN 1..n / * n be the number of columns in excel sheet */
         LOOP
    /* generate the cell no of excel sheet from where data will
    be fetched- R is used for row no and C is foe column no*/
         v2text:='R'||I||'C'||J||':'||'R'||I||'C'||J;
    /* Store the value in variable */
    dde.request(iConv,v2text,v2Buffer,dde.cf_text,1000);
    /*Stores values in the varrays for a row*/
    IF j=1 THEN
    /* for first column*/
    nLength:=length(v2Buffer);
    vExcelOrg(I-1):=To_Number(substr(v2Buffer,1,nLength-2));
         /* for second column */
    ELSIF j=2 THEN
    nLength:=length(v2Buffer);
    vExcelProduct(I-1):=substr(v2Buffer,1,nLength-2);
    END IF;
    END LOOP;
    /*Exit the loop when it encounters an empty row*/
    IF vExcelProduct(I-1) IS NULL AND vExcelOrg(I-1) IS NULL THEN
    EXIT;
    END IF;
    /* Otherwise extending the varray*/
    vExcelProduct.extend;
    vExcelOrg.extend;
    /* Reading the next row*/
    END LOOP;
    /* Now close the DDE application */
    DDE.app_end(iApplication);
    DDE.terminate(iConv);
    EXCEPTION
         WHEN Others THEN
         DDE.app_end(iApplication);
    DDE.terminate(iConv);
    RAISE Form_Trigger_Failure;
    END;
    I am facing a problem, I will appreciate if you can give some insights to help.
    We have been having problem logging in to application when there are a number of EXCEL processes running (17-18) on the server. Users that have already logged in have no problem, but new login will get "FRM-92101 There was a failure in the Forms Server during startup". The Forms Server itself is running fine. After we killed a few EXCEL processes, new users will be able to login.
    Thanks and regards,
    Mandeep

    this is a trial method and right now i am trying to read only the first cell of the excel sheet and return that value and show it in the UI when the user presses the button but this code is not returning any value.
    METHOD read_excel.
      INCLUDE ole2incl.
      DATA: filename(128) TYPE c,
                excel TYPE ole2_object,
                cell TYPE ole2_object,
                workbook TYPE ole2_object,
               pfile TYPE localfile VALUE
               'C:\Documents and Settings\I047323\Desktop\new.xls',
                name TYPE string.
      CREATE OBJECT excel 'EXCEL.APPLICATION'.
      SET PROPERTY OF excel 'VISIBLE' = 0.
      CALL METHOD OF excel 'WORKBOOKS' = workbook.
      CALL METHOD OF workbook 'OPEN'
        EXPORTING  #1       = pfile.
        CALL METHOD OF excel  'CELLS' = cell
          EXPORTING
            #1      = 1
            #2      = 1
        GET PROPERTY OF cell 'VALUE' = value.
      CALL METHOD OF workbook 'SAVE'.
      CALL METHOD OF workbook 'CLOSE'.
      CALL METHOD OF excel 'QUIT'.
      FREE OBJECT excel.
    ENDMETHOD.
    Edited by: neelima v on Jan 14, 2008 4:06 PM

  • Using graphics in oracle forms 10g

    i've read everything in this thread:
    http://download.oracle.com/docs/cd/B12166_01/web/B10469_01/repgrph.htm
    but i cannot run graphics.
    there is the next error:
    OG-01603: Unable to create Pl/SQL Development Environment context.
    do you know how to prevent this error?
    i did:
    *install oracle developer suite 6i on application server (different home)
    *configure linux application server to work with graphics 6i
    *compile og.pll
    *compile form
    best regards, Teodor

    you have to do the migration one time. Better now than in the future. One day a forms patch will say: Graphics is now obsolete, please migrate.
    To run a 6i graphics service on a 10g platform is (please believe me) the badest way to run your old graphics in the new world.
    its like toothache. you can eliminate them through eating 10 aspirins each day. But you know, that you have to go one day to the dentist...

  • JUNIT in Oracle Forms 6i

    Hi
    We are using Oracle Forms 6i to develop Oracle Applications form extensions.
    Wanted to know if we use JUnit in Oracle Forms for testing?
    Thanks
    Rahul

    Hi there
    Thanks for the response.
    I was thinking of Forms Data Loader to use as an option for unit testing in Oracle Forms since it does capture the events like button submit , but I dont think it does any verification of data like JUnit.
    Please let me know what do you think of same.
    Thanks
    Rahul

  • How to call .BAT file in Oracle Forms

    Hi All,
    I am using Oracle Forms 6i. We have a .Bat script which moves file from our local directory to the server.
    I want to invoke this .Bat script to be called when I click on a button in the form.
    Appreciate your help here.
    Thanks,
    Madhu K.

    Hi
    I use this in oracle forms 6i: first i assign this path to a variable:
    DECLARE
    v_path   VARCHAR2(1000);
    BEGIN
    v_path:= 'C:\file_name.bat'  then I use the host command:
    HOST( 'cmd /c start' || v_path , no_screen); 
    END;Hope this helps...
    Regards,
    Abdetu...

Maybe you are looking for

  • How to add a custom field to the "Projects" page "Group by" data menu list

    Hi, I'm deploying Project Online and I want to group projects by a custom field on the "Projects" page. Currently I can see options for group by Project Name, Start, Finish, % complete etc. I would like to group by a custom field of programme name wh

  • Is there any way around this?

    Is it possible to pass an argument from main to an inner class without wrapping it up in a final String array of length 1?     public static void main(String[] args) {         final String[] filename = new String[1];         if(args.length != 1){    

  • Restrict no of rows to be displayed

    Hi experts, i had 32000 rows in a table when i give select * from tab_name; it rans out i can view only the last few rows is there any possibility to view it page by page? waiting for u r ideas...

  • Print Microsoft Word page range

    Is there a way for me to only print from page 11 to page 14 using the following script? $objWord = New-Object -comobject Word.Application $objDoc = $objWord.Documents.Open("c:\test.docx") $objDoc.PrintOut() $a = $objWord.Quit()

  • New fields for Attributes Data Tab  in Org Model

    Hi, Guru's I want to add/remove a new fields for Org model --->Attributes data tab Diivision Currency region dist.chnl like that I want to add another new XXXX and respected values How it would be done. Regards CR Gupta