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

Similar Messages

  • How to know if my iphone 4s is open line and can use it anywhere or in any country?,

    how to know if my iphone 4s is open line and can use it anywhere or in any country?,like i bougth it in united arab emirates and if im in philippines i can still use it there?.

    If you did not purchase it from an authorized distributor, then there is no way to tell short of trying a different SIM. Even then, it may have been hacked to unlock it.
    That's a risk you take when you buy from the gray market.

  • How to know on which pages a particular list is being used?

    Hi
    So we have this site which has not been cleaned up for a while resulting in the creation of many lists many of which are not being used as well. I want to know that where all a particular list is being used i.e on which all pages so that if the list is not
    being used, I could delete it. Is there any simple way to do it.
    Please share your thoughts:)
    Thanks
    Supriya Sinha

    Hi Supriya,
    OOTB I think you can use SharePoint designer, but I would suggest  custom code to iterate to all pages, and get the lists that are associated with these pages.
    http://stackoverflow.com/questions/633633/sharepoint-how-can-i-find-all-the-pages-that-host-a-particular-web-part
    another one would be if those lists were never used and you can check for list with empty data.
    I would use Get-SPLists to get all of the lists to check for zero items.
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/15/use-windows-powershell-to-manage-lists-in-sharepoint-2010.aspx
     http://sharepointrelated.com/2011/11/28/get-all-sharepoint-lists-by-using-powershell/
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How to know if the pdf file is opened.

    Hi,
    on my web site I have many pages containing hundrend of url pointing to the pdf documents.
    The problem is how I can know that the pdf file was open or downloaded by user ( I used session for this task). I have to point out that I did not integrate in my page any javascript action on those documents.
    This point will help me to solve some historical access on the web site.
    Thank you

    Your best bet would be to create a filter that will handle access to pdf files. This filter would be bound to /*.pdf and can have access to the users HttpSession object so you are able to find out who requested this file and logic it how ever you wish.
    I Hope this helps
    -Richard Burton

  • How do I get a PDF form to show its content using Mac 10.9.3, Safari 7.0.4 and Reader XI?

    I am using my Mac 10.9.3 with Adobe Reader XI in my Safari 7.0.4 Browser.  I do not have any trouble viewing PDF statements with my bank or other places OTHER than at Ford Credit.  Each time I log into Ford Credit to view the statements and attempt to download them, all I get on the screen is their blank form with headings and titles---no content.  When this happened once before over a year ago with my old Mac computer, I found my answer online by making Adobe Reader my default reader instead of Preview.  At that time it worked.  This time, its not working.  I contacted Ford Credit and they said their online Account Manager performs better using Internet Explorer.  The only answer they had for me was that advice or to contact Adobe.  So here I am looking for answers.  Any help provided is already appreciated.

    I do not know what to do or what to say or what to type to get someone familiar with the Adobe Reader to respond to my plea for help.  I am a 55 year old (aging fast) woman who is taking care of a father-in-law with dementia and a mother-in-law with Stage 4 Breast Cancer so I am already at my wits end when trying to get a program to work on my computer.
    Again, I ask.  How do I get the Adobe Reader to show content on a PDF statement at Ford Credit when all other PDF statements on other accounts work fine?  Ford Credit says it is a problem with Adobe Reader and that I am to come here for the answers.  I have 'googled' and have looked for similar posts on the Adobe Reader Community forums but I haven't found the answer yet.  
    Posting "[moved to the Adobe Reader (desktop) forum]", which I have yet to find, probably doesn't exist, or posting "Duplicate of https://forums.adobe.com/thread/1491128" does not provide an answer when an answer could have been provided at the same time taken to post those notations.  I don't get it or understand it---not what I would have done if the roles were reversed.
    If you have any heart, or any form of courtesy, please respond with an actual, workable answer to what is probably a simple solution to my problem.  And, then maybe, the answer will help someone else in the future who may be struggling with the same situation and will find it in a 'google' search and won't waste any more of your valuable time.  Or theirs.
    Thanks.

  • How to automatically saved a pdf form into a network folder using a submit button

    Good evening to everyone,
    I'm more than a beginner on adobe development reason why I would like to apologize first if my questions are dumbs. :-(
    I would like to know if 'Adobe 9 Professional Extended' has the possibility to put some code into a submit button in order for the pdf form to be saved with a unique name and into a Network folder located into an Encryption Server where we handle our PII. Is it? Over the past two weeks I've been digging into the documentation but I'm unable to find something that will help me to accomplish our headquarters requirements.
    If there is no possibility, is there any programming language that adobe accepts in order to configure a piece of code that will store the file into a network folder? Perhaps VB or C-SHARP?
    Whatever feedback anyone can give, I deeply appreciate it.
    Thanks,

    Thanks for the reply Mr. Chaney!
    I do have more questions based on your recomendation.
    From my understanding, JavaScript or FormCalc will be my only options, right? If that's the case, how can a scripting language (client server side) allow me to transfer automatic saved files into a Network folder within my company intranet? I downloaded the Scripting Basic manual and all the scenarios and code are client server side such as, changing background color, add effects to a button and so on.
    I did find a command under FormCalc called "PUT" can I use this command to transfer a pdf file into a Virtual Directory folder? All the examples I saw were for XML files.
    Greetings,

  • How to know what ActiveX references are still open

    Okay, so I'm about the millionth person to post about this topic, but I feel like I know what I should be doing, but have hit a wall.  I have read through pretty much everything I could find in the forums about references and ActiveX.
    I am communicating with Excel via ActiveX, and everything works seemlessly, until I realized that if the user closes the Excel sheet (via an "exit" button on my FP), the "EXCEL.exe" process is still running.  I've read enough to know that this probably points to a reference that I have not closed.
    Problem is, I have poured over my code, and as far as I can tell, I have closed every reference, in the opposite order it was opened (as I read to do in a post earlier).
    Aside from casting references to int's to see what is still considered "active" (as I mentioned earlier, all the ones I can find are closed, so this doesn't help me), is there a way to determine which ActiveX references are still open?
    Even a way outside of LV?  A Microsoft utility even or ...well anything!  This is very annoying, and I know it should be quick and easy, I just have to know what is remaining open.
    Or, am I missing something else that might be keeping EXCEL.exe running?  (yes, I have an application quit and close the application reference)
    Thanks for any help

    Hi Will,
    As you said it yourself closing the same number of references as you open and using Application Quit should be enough to close down Excel.exe.
    Did you run your code in highlight execution to see how the behavior of your program changes when you hit the "Exit" button on your Front Panel?
    If you can post the minimum amount of code that reproduces the error, I will be more than happy to take a look at it.
    Best regards,
    Message Edited by Kalin T on 12-07-2006 03:11 PM
    Kalin T.
    National Instruments
    Attachments:
    activex_excel.jpg ‏16 KB

  • How we know whether a production order is open or clos

    Hi,
    Anybody can tell me how we can know that whether a production order is open or close?
    Thanks,
    Aparna

    Hi,
    In addition to 1st reply if your order status is TECO ,Clsed,Lcked  then your order is closed .In this status you can open this order for any use.
    TECO -Technically complete .
    Closed -closed for any use.
    Locked -Again same locked for any further process.
    Regards
    SANIL

  • How to know if a sent-email was opened or deleted? AnyThing in API??????

    Hi pal,
    Is there anyThing in API to know if a sent email has been opened or deleted by reciever?
    Asif

    Hi,
    Even i am having a similar problem..
    I want to track the emails sent out from my application.
    Whether the mails are read or not and if read for how long they are read???
    Can anyone give me an idea abt this.
    Thank u

  • How to know no of records(in Internal Table) modified after using Modify statement

    Hi Experts ,
    I am using statement Modify internal table transporting XYZ FIELD.
    I just wanted to know how many Records/Count (assuming more then 1 ) get updated just after successful execution of this command.
    Is there any system field exist?
    if yes please let me know?
    Warm Regards,
    Santosh

    Hello Santosh,
    Try like below and it works for me.
    Count will have the number rows changed.
    DATA: itab_mara TYPE STANDARD TABLE OF mara,
          itab_mara1 TYPE STANDARD TABLE OF mara,
          str_mara TYPE mara,
          str_mara1 TYPE mara,
          diff LIKE IREF-IIND,
          count TYPE int2.
    SELECT * FROM mara INTO TABLE itab_mara UP TO 10 ROWS.
      itab_mara1[] = itab_mara[].
      str_mara-lvorm = 'X'.
    MODIFY itab_mara FROM str_mara TRANSPORTING lvorm WHERE VPSTA = 'KVB'.
    LOOP AT itab_mara INTO str_mara.
      READ TABLE itab_mara1 INTO str_mara1 WITH KEY matnr = str_mara-matnr.
    CALL FUNCTION 'COMPARE_STRUCTURE_DATA'
      EXPORTING
        i_ddic_name       = 'MARA'
        i_rec_old         = str_mara
        i_rec_new         = str_mara1
       I_CHECK_MODE      = 'Y'
    IMPORTING
       E_IS_DIFF         = diff.
    IF diff = 'X'.
      count = count + 1.
    ENDIF.
    ENDLOOP.
    WRITE:/ count.
    Regards,
    Thanga

  • How to know if a file browser item is not null using javascript fucntion

    Hi
    <br><br>
    I tried to use javascript for validation. I have a file browser item named P55_FILE_NAME and I would like to know if this item is null or not before submit.
    <br>
    I wrote this function :<br><br>
    function validate_import(f_n){<br>
         if (trim(document.getElementByName(f_n).src) == "")<br>
         {<br>
         alert ("File name is empty.");<br>
         document.getElementByName(f_n).focus();<br>
         }<br>
         else{<br>
         doSubmit('SUBMIT');<br>
         }<br>
    } <br><br>
    When I press submit button I got an error, sounds like the src method does not exist in my input item. <br>
    Then, I looked my source page an I found this :<br><br>
    input type="file" name="p_t01" size="30"
    <br><br>
    there is know src method and the name is not P55_FILE_NAME and I don't want to use <b>p_t01</b> that will change.<br>
    <br>
    I need your help.<br>
    Benn

    Hello,
    The p_txx notation is the internal name the ApEx engine attaches to each page item. It starts with p_t01 (for the first item on page) and can end with p_t99 (hence, the max 99 items per page limit). You can see these names in your HTML source code.
    The bug in the File Browse item (fixed in version 2.2) is that the ID of the item is the internal name instead of the item name. Hence, in order to use DOM, you need to use this internal notation.
    If the File Browse item id is p_t01, you can null its content by using something like that (V2.0 notation) :
    html_GetElement('p_t01').value = '';I'm using the same, and similar code, for manipulating this type of item with no problems.
    Please document the use of this workaround, as when you'll upgrade your ApEx system, you will have to change this code back to the standard – item id equal item name.
    (Please follow Scott's advise, and keep your logic connected issues on the same thread. It will get you more quick and accurate help).
    Regards,
    Arie.

  • How to know if a socket connection is open ?

    Hi,
    I have a ftp class that opens a socket connection to a ftp server. Sometimes the connection is closed and I get an exception. There is any way to know if exists an open connection ?
    Thanks !

    From SDK v1.3.1 for abstract Class SocketImpl:
    Method connect
    protected abstract void connect(InetAddress address,
                                    int port)
                             throws IOException
        Connects this socket to the specified port number on the specified host.
    Parameters:
    address - the IP address of the remote host.port - the port number.Throws:
    IOException - if an I/O error occurs when attempting a connection.... So if it throws an exception on inception, it's NOT connected - NOT open, right? This is the class you've subclassed to create the socket connection? If not, which?

  • How to play sound when a form is opened

    Hi ,
    I do have a problem in playing sound, by getting values from a properties file.
    The property file has values
    tone1PitchkHz=1.2
    tone1DurationSec=0.1
    tone1SeparationSec=0.1
    tone1VolumePct=80Using these values I want to play a sound when I open a form.I tried few methods but not successful. Can anyone help

    Google is your friend.
    [http://www.cs.princeton.edu/introcs/15inout/StdAudio.java.html]
    [http://www.cs.princeton.edu/introcs/21function/Tone.java.html]
    db
    edit And what does this have to do with Swing anyway?
    Edited by: Darryl.Burke

  • How can I notify users if form is open

    I have a form which is stored on the network, the user then creates a shortcut to the form (to save email space) then emails the shortcut to a selected team to review and apply their electronic signature, what I would like to be able to do is is warn the team if the form is already opened prior to them trying to sign and save.
    Any suggestions would be gratefully received

    You could create a form action to save the form into initialization.
    Condition: When form "youform" has finished loading: Save the form.
    This save will fail if somebody else has this form opened.
    The save will happen in background and you should catch the error to show a proper error message to the user.

  • How can I change my user name? Someone else is using "phammm" my user name. At this point I cannot sign in with my email address and change my name. Help!

    When I try to access the user forum, I have this problem. I am trying to access the forum for a problem with Firefox. NOte the typo; my user name is phamm.

    hey...thanks for your post....ok I followed your instructions but seems this is what i had already done...
    so say when I turn my computer on
    I get
    MAC OS X
    Louise xOldsurnamex
    Login user: Louise xnewsurnamex
    Password-----------
    So I have already changed the login name and it is the only one showing in accounts (and is admin)
    What i want to change is the name above...I am unsure how to describe it? Basically the name of my computer???
    Errr is this poss? Do you know what i am describing?
    Thanx Louise

Maybe you are looking for