Opening a UDF form

Hi all
i wish to open the Side form which shows the UDF fields for a given system form. question is how can i open the form through code?
once i've opened the form i wish to set the visibility of the UDF fields appearing in the UDF form.
question is how do i obtain the from's object in order to set the appearance of the UDF items within it?
appreciate the help
Yoav
Message was edited by:
        YECHIEL SCHUSSEIM

Hi Yoav,
If Not SBO_Application.Menus.item("6913").Checked Then 
     SBO_Application.SendKeys "^+U"
End If
6913 is user defined field menu item id.
you can see user defined form is opened everytime you open a certain form with that code samples in form_load event.
hope this can help you.
Regards,
Hyunil.

Similar Messages

  • How to know if a UDF form is opened else then using a TRY CATCH ?

    I'm looking for any way to find out if the UDF form is visible
    else then trying to open it in a try catch and if it's not sending a key.  This if very ugly, slow and not really my kind.
    I tried to iterate through all the forms in SBO_Application.Forms but it's not there.  All I see is the main form
    I just need to make sure the UDF form is visible when Inventory form is loaded so I can put a value in one of the UDF
    If there's a better way I'm buying it

    Hi Marc,
    Rather than putting your data in the UDF in the UDF side form, you can add a control to the main form (during the load event of the form) and bind this to the UDF through the DBDataSource that is already available on the main form. This means that you don't need to worry about whether the UDF form is open or not because you can always read or write to your UDF data from the main form.
    Alternatively, the UDF form TypeEx property is always the same as the main form but with a minus sign in front. Therefore, if you know the TypeEx and FormTypeCount of the main form then you can use the GetForm method of the Application object to get the UDF form.
    oForm = _sboApp.Forms.GetForm("-" + oMainForm.TypeEx, oMainForm.TypeCount);
    You'd still need a try/catch around this and if it raises an error then activate the 6913 menu to open the UDF form.
    Kind Regards,
    Owen

  • Obtaining UDF form type and ID

    Hi all
    i want to obtain the ID and Type of a UDF form which opens as a side form for a given SBO form. question is how can i obtain the ID and Type of the UDF form thourgh code?
    appreciate the help
    Yoav

    Hi Yechiel
    Trying with the following code:
    Get ID of Item    : pVal.ItemUID
    Get Type of Item: oForm.Items.Item(pVal.ItemUID).Type.ToString
    I hope useful for you!!
    Regards

  • "Open Interface Invoices" Form takes time to open!

    Hi Guys,
    In our production system, it takes 3 minutes to open "Open Interface Invoices" form (AP Manager>Invoices>Entry>Open Interface Invoices). So what should we do so as to avoid this.
    I was thinking to delete data from two tables (AP_INVOICES_INTERFACE & AP_INVOICE_LINES_INTERFACE) based on certain crieterions. Like all the records which have been successfully imported i.e. with status='PROCESSED' can be deleted. So, I can achieve this using two methods:
    1. Manually using SQL Delete statement. i.e.
    DELETE FROM AP_INVOICES_INTERFACE WHERE status='PROCESSED';
    DELETE FROM AP_INVOICE_LINES_INTERFACE
    WHERE invoice_id IN (SELECT invoice_id FROM AP_INVOICES_INTERFACE WHERE status='PROCESSED');
    2. Or I can use "Payables Open Interface Purge" Program.
    I ran this program for my specific source, and checked the count from tables but the result is the same. This means this program has not deleted any of the processed records from these two tables for the particular source.
    What can be the reason for this? Please suggest me on this.
    Thanks a lot!
    Regards,
    Sumir Chawla

    So I tested it out on Windows Pro Reader X 3GB and it opened right away. Then I put it down to 1GB and it took over a minute! Best bet is to get a faster machine! (or at least a memory upgrade)
    In the mean time, I had a look at your form and there were a lot of objects and subforms that didn't need to be there, so I cleaned it up and made one repeatable subform. It works a lot faster now even on a 1GB.
    You can edit the title of each entry in the scripting object myLists.
    Here you go:
    http://www.fieldeffecttechnologies.com/AdobeForums/PAR_v3.pdf
    Kyle

  • Error while opening a standard form in apps11i

    while opening a po form POXPOEPO thru form builder, error is showing that some objects are unable to load.
    how to rectify that can someone help it out

    Have a look at this Re: URGENT: Forms 6i error

  • Getting Error While Opening the Oracle Form 6i in 10g

    Hi All ,
    FRM-10102: Cannot attach PL/SQL library XXX. This library attachment will be lost if the module is saved.
    I am getting above error message while opening Oracle 6i Form in 10g.
    I get the following Alert message when I try to attach the library to my form -
    Attached library name
    S:\.........xxx.pll contains non-portable directory specification. Remove path? Yes/No?
    If I select 'No', the Form compiles and runs without any error.
    But if I select 'Yes', I get the following error message:
    FRM-40039: Cannot attach library xxx while opening form.
    All files (fmb, fmx, pll, plx) are on the same path. I detached and then re-attached the library but this didn't work for me?
    Help Appreciated.
    Thanks & Regards,
    Ram.

    use the shiped batch program frmplsqlconv.bat to convert all your forms/librarys from Forms 6i to 10g.
    you can call it in wizard mode from the start menu (e.g. OracleDeveloperSuite <OraHome> => Forms Developer => Forms Migration Assistant (GUI Mode) and follow the instructions step by step
    or you can call it by batch to convert all your forms/librarys. The batch file is found in
    <ORA10g_HOME>BIN\frmplsqlconv.bat
    =>
    frmplsqlconv.bat <formname>

  • Updating UDFs in the UDF form of a sales order

    I got the UDF form of a corresponding main sales order form.
    I am trying to set a value for one of the UDFs there, but I get a 'General Failure' exception (Simply trying to set the edittext's UDFItem.Value or UDFItem.String properties)
    I know I have the right form and item, since I can change the item's BackColor.
    The DBDataSource.GetValue works, so I can read the existing values.
    The DBDataSource.SetValue doesn't work, but I'm used to it
    Any ideas?

    Avi,
        We cant use Setvalue directly in Predefined for u better to use
    Frm.items.item("").Specific.Value= ""
    Regards,
    Anitha

  • Can not open PLLs on Forms Builder 10g

    Hi Folks,
    everytime I try to open an existing PLL-File via the Forms Builder FileOpen-Dialog I have got the message
        PDE-PLI018 Couln not find library
        Drive:\Path\LibName.pll
    Pressing the OK-Button returns to the FileOpen-Dialog. The selected FileType in the Dialog take effect to the filelist but nothing else.
    Note that the file exists and I select it from the Filelist!
    About Forms Window shows the following:
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
    Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.4.0     Production
    While converting from 6i to 10g it is unavoidable to convert forms and libraries, so please help me!
    PS: I can recompile forms with attached libraries if the PLX-Files (6i) are available, but the forms will not work with these PLX-Files.
    edited by ths:
    I tried to generate a new library. This works fine until I saved it. After naming the library and pressing the save button in the dialog the pll file was created and the same error message appears.
    I closed form builder and tried to reopen the library: same error.
    I generated another new library and save this by selecting the first new I generated. Jippee! I get the message that the file already exists! I selected "overwrite" and the file was overwritten. After that the same error appears.
    How can I (re)open PLL files? It is no solution to generate a new library overwriting the old one everytime some changes should made.
    Trying to build the library (Ctrl+T) produces another error:
        FRM-91507: Internal Error: Unable to generate library.
    Compiling (Ctrl-Shift-K) works fine.

    Hi Mark,
    there's no user except of me on the pc and server (I'm working via rdp-client on a virtual server), no server and no oc4j task or instance started. The one and only program that runs is forms builder. The error occurs if I just try to open a pll file via the file open dialog of forms builder.
    With my admins we found that forms builder creates a (temporary) file (e.g. s22o without extension with 827392 bytes) in c:\ but only if I'm the actual user. After I'm getting the permission to create and update files on c:\ forms builder was able to open pll files. Now we're trying to find out why this accurs only on my login. With other users we tried these file was created on F:\ which is the personal drive of the user. I'm only wondering about the fact that temporary files were not created in the TEMP folder defined by the TMP or TEMP environment variable.
    So we solved this unusual problem in an unusual way.

  • Unable to open java custom form in R12 instance

    Dear friends,
    I am unable to open java custom form from front end.
    Navigation as follows:
    SYSTEM ADMINISTRATOR --> UM_SHIPPING --> ORDERS LOOKUP.
    Can anyone please look into the issue please.
    The error as follows:
    Error page
    you have encountered an unexpected error. please contact the system administrator for assistance.
    Thanks,

    I am unable to open java custom form from front end.
    Navigation as follows:
    SYSTEM ADMINISTRATOR --> UM_SHIPPING --> ORDERS LOOKUP.Was this working before? If yes, any changes been done recently?
    Did you follow the steps in (What Setup is Required to Create Custom JSP Pages to Run on the Ebusiness Suite 11i and R12+? [ID 884200.1])?
    Can anyone please look into the issue please.
    The error as follows:
    Error page
    you have encountered an unexpected error. please contact the system administrator for assistance.Please check Apache log files for details about the error. Please also check if any errors are reported in the database log file.
    Thanks,
    Hussein

  • Right/best method to open and close form?

    When i click a button from FormA, it open FormC and it should be the same with button from FormB-used to open the same FormC but it doesn't.
    this happen when i previously open FormC from FormA before opening it in FormB.
    I use setvisible(true) to open form and setvisible(false) to close the form and this doesn't seem right..
    i use exactly the same method as shown in Creating Swing Clients for Business Components Tutorial
    anyone can help? i'm new with Java n Jdeveloper...
    Thank You..

    Fatima,
    this question is best answered in teh JDeveloper forum on OTN because this Forum is for Oracle Forms. You can start and hide forms in Java using setVisible(true|false), howvere, this doesn't release the hanlde to the data bound.
    In the HowTo setcion of the otn.oracle.com/products/jdev there exist a document "How Do I dynamically Change the Binding of a View Object to JClient Panel?"
    This explains how you work with RowSet Iterators to reuse forms.
    Frank

  • How to open a entity form in a new window using openEntityForm() method.

     How to open a entity form in a new window using openEntityForm() method.

    As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • Urgent: Problem opening a data form that uses a smart list

    Hi, we've got a problem with a data form that is quite unusual.
    The data form was working perfectly until yesterday when we put a smart list in it. The smart list is composed of 8 possible choices activated by the following member formula:
    IF (SML==1)
    ((BDG->BegBalance->&CurrYear)/12);
    ELSEIF (SML==2)
    ((INC_BDG->BegBalance)*("01A2"->ACT_FINAL));
    ELSEIF (SML==3)
    ACT_FINAL->&PreYear;
    ELSEIF (SML==4)
    (INC_ACT->&PreYear)*("01A2"->ACT_FINAL);
    ELSEIF (SML==5)
    ACT_FINAL;
    ELSEIF (SML==7)
    (INP_PER)*("01A2"->ACT_FINAL);
    ELSEIF (SML==8)
    INP_ASS;
    endif;
    Initially we tested the functioning of every different choice in the smart list and it was working properly. After a while we tried again to change the choices combination and we couldn't open the data form due to an error.
    It is quite strange because sometimes it work and sometimes it doesn't. In the data form (that is very large) there are many accounts and scenarios that are dynamic calc, in addition to the smart list formula; we tried to open the form two minutes ago converting the data storage type of a scenario from "Dynamic calc" into "Dynamic calc and Store", and it seems to work at the moment... does planning have a memory limit? Can someone suggest a solution (or help us find out the reason)?
    Bye

    Anton,
    new thread is one possibility, but the messsage box is not win message box, but SAP form, so I think you can clcik there without new thread too.
    Check this thread, hope it helps
    Re: Confirmation Dialog in my way

  • Error in opening the adobe form to create a PCR

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

  • Error while opening the ADOBE FORM via mail

    Hi to all,
    I have created a program to attached ADOBE FORM to mail.
    When I execute the program, it sends ADOBE FORM to my mail ID successfully.
    But when I open my mail and try to open attached ADOBE FORM, it gives error
    ADOBE READER COULD NOT OPEN u2018PDF FORM (1). PDFu2019 because it is either not a supported file type or because the file has been damaged ( for example, it was sent as an email attached and wasnu2019t correctly decoded).
    Please can any tell me, what the problem is and what the solution is for that?
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Aug 1, 2011 2:22 PM

    Thanks for reply,
    below is the code.
    data:
      l_fm_name         TYPE rs38l_fnam,
       l_formname   TYPE fpname VALUE 'ZTESTF1' ,
      fp_docparams      TYPE sfpdocparams,
      FP_FORMOUTPUT     TYPE FPFORMOUTPUT,
      fp_outputparams   TYPE sfpoutputparams.
    data:  I_ATT_CONTENT_HEX  type SOLIX_TAB.
    START-OF-SELECTION.
    data: st  TYPE  ZTABFM11.
    data: it type table of sflight.
    data: wa like LINE OF it.
    data: wa_st like LINE OF ST.
      fp_docparams-langu   =      'E'.
      fp_docparams-country =      'US'.
      fp_docparams-fillable =      'X'.
      fp_outputparams-nodialog = 'X'.
      fp_outputparams-preview =   'X'.
      fp_outputparams-device   =  'LP01'.
      fp_outputparams-getpdf  =   'X' .
      fp_outputparams-dest   =    'LP01'.
      fp_outputparams-reqimm  =   'X'.
      fp_outputparams-reqdel  =   'X' .
      fp_outputparams-xfpoutdev = 'LP01'.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = l_formname
        IMPORTING
          e_funcname = l_fm_name.
      E_INTERFACE_TYPE           =
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
    select * from sflight into TABLE it.
      loop at it into wa.
        wa_st-CARRID = wa-CARRID.
        wa_st-CONNID = wa-CONNID.
        wa_st-FLDATE = wa-FLDATE .
        wa_st-PLANETYPE   = wa-PLANETYPE.
        append wa_st to st.
        endloop.
      CALL FUNCTION l_fm_name
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
              st               = st
        IMPORTING
          /1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4
       CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        E_RESULT             = result
       EXCEPTIONS
         usage_error          = 1
         system_error         = 2
         internal_error       = 3
         OTHERS               = 4
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = FP_FORMOUTPUT-PDF
      APPEND_TO_TABLE       = ' '
    IMPORTING
      OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = I_ATT_CONTENT_HEX  .
    CLASS cl_bcs DEFINITION LOAD.
      DATA:
      lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
      lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject
      DATA:
      lt_message_body TYPE bcsy_text VALUE IS INITIAL,
      lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
      APPEND 'Dear,' TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Fill the details.'
      TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Thank You,' TO lt_message_body.
      lo_document = cl_document_bcs=>create_document(
      i_type = 'RAW'
      i_text = lt_message_body
      i_subject = 'flight details' ).
      DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
      TRY.
          lo_document->add_attachment(
          EXPORTING
          i_attachment_type = 'PDF'
          i_attachment_subject = 'flight details'
    I_ATTACHMENT_SIZE =
    I_ATTACHMENT_LANGUAGE = SPACE
    I_ATT_CONTENT_TEXT =
    I_ATTACHMENT_HEADER =
          I_ATT_CONTENT_HEX  = I_ATT_CONTENT_HEX  ).
        CATCH cx_document_bcs INTO lx_document_bcs.
      ENDTRY.
    Add attachment
    Pass the document to send request
      lo_send_request->set_document( lo_document ).
    Create sender
      DATA:
      lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
      l_send type ADR6-SMTP_ADDR value 'mail id '.
    lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
      lo_sender = cl_sapuser_bcs=>create( sy-uname ).
    Set sender
      lo_send_request->set_sender(
      EXPORTING
      i_sender = lo_sender ).
    Create recipient
      DATA:
      lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
      lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).
    Set recipient
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    Send email
      DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
      lo_send_request->send(
      EXPORTING
      i_with_error_screen = 'X'
      RECEIVING
      result = lv_sent_to_all ).
      COMMIT WORK.
      message 'Form sucessfuly send to person' type 'I'.
    plesase can any one, provide the soultion.
    i shall be thankful toy you for this.
    regards
    pavneet rana

  • "Access Denied" pop up error while opening adobe online form in IE8.

    "Access Denied" pop up error while opening adobe online form in IE8. I use crosslink to connect to client network and then open IE with App Tunnel. Tried to re-install Acrobat reader multiple times but issue still persist. Even tried to change the PDF properties (Edit-> Preference- General/Internet/Security Enhanced)

    Hello Adobe technical Team,
    I am struggling to fix the issue. Tried a lot of combinations to manipulate PDF preference, browser setting but failed to fix the issue. Can someone please look into the details and advise? Thanks in advance for any help.input.

Maybe you are looking for

  • How to catch snapshot event in Acrobat 9

    Hi all I scope is catch the snapshot event from acrobt and lanchuing photoshop and paste the snapshot. How I can catach the event? Thanks in advance Regards arul

  • Actually want to report that Add-On "Flash Video Downloader Suite or FVD Suite" has a built in search engine hijacker. Suggest you ban it.

    I installed FVD Suite because it sounded like it was a good all in one video downloader. WHen installing it asked me if I wanted to switch my search engine to theirs and I selected no. However, once installed it tried on several occasions to hijack m

  • Flash 8 / AS  for Games Book

    Hello, I will soon start developing a game in Flash (note: not necessarily a webgame - it should be a standalone, also). The game is an isometric managerial simulation, so i would need to learn more not only about isometric tiles, but also data handl

  • Clean up path

    Hello I am learning Illustrator CS4, and I tried out the clean up path facility. I deliberately left a few random  anchor points on the page, to see if they would get cleaned up. But when I clicked OK, to clean up path, I got a message saying No clea

  • Inside of camera lens dirty

    Does the apple story clean the inside of the sapphire lens on the iphone 5 rear camera? Also, it seems like theres a loose piece on my front camera, almost like a cresent moon shape that is close to covering that camera. Laslty, you can hear a faint