Query regarding Form Object

Dear All,
In my Add On, I have many forms and I am using only one form object for all the forms. Is it permissible or I have to use different form objects for each form. When I am navigating from One form to other I am getting error as Invalid Form. In one case I am opening another(child) form from the parent form, but when I close the child form and click anything on the parent form I am getting error as Invalid Form. Please help me.
Regards,
Noor hussain
Edited by: noor_023 on Feb 25, 2010 10:41 AM

Hi,
the error "Invalid Form" refers to the attempt to take a reference to a not existing form, like this:
oForm = oSboApplication.Forms.Item("ThisFormUIDNotExists")
Or probably you use e not correct reference to a form in order to reach an item, like this:
' oForm is not set properly
oItem = oForm.Items.Item("TheItemUID")
Please, post relevant code if this not help you.
Regards.
Carmine

Similar Messages

  • Query regarding Authority object

    Hello Friends;
    I just wanna know why we check authorization on selection screen and What do u mean by authority objects?, Who creates It? What is the purpose behind creating it?? What transactions are there relating authority objects in SAP??
    And one more query is there
    See when we call any function module there are several parameters that it contains such as importing ,exporting, tables and exceptions ?? What is the exact use of exception parameters in that? How to handle those exception ...Is it before calling that function module or after ?? What is the syntax for it??
    Regards;
    Parag

    Exception are like errors so to use that in the FM we use raise command .
    Authorization is required ,assume u in Quality department and you are trying to execute a SD dept report which is as per rules not allowed so for that in abap we use Authorization object .
    Use this program for understanding DEMO_AUTHORITY_CHECK
    Transaction SU21 .
    PLease reward if useful.

  • Query regarding Forms Personalization

    Hi ,
    I have a requirement to execute the following code in a WHEN-NEW-FORM-INSTANCE trigger to update the WHERE clause of the Item Category flexfield in the Purchasing module.
    Normally I would have executed this code from within the trigger. How can I replicate it using Forms Personalization, I mean what type of Action do I need to define which will execute this code directly or indirectly.
    FND_KEY_FLEX.UPDATE_DEFINITION( BLOCK=>'LINES',
    FIELD=>'ITEM_CATEGORY',
    ENABLED=>'N'
    WHERE_CLAUSE=>' ( NVL(DISABLE_DATE, SYSDATE + 1) > SYSDATE AND category_id =
    644)'
    I also tried to create a stored procedure without luck as fnd_key_flex is defined in a library attached to the form, so get error creating the procedure.
    Thank You
    Shankar.

    Hi,
    I guess I will need to achieve this using CUSTOm.pll. But, I have a query !
    The KFF is defined using fnd_key_flex.define(block=>'LINES',
    field=>'ITEM_CATEGORY',
    id=>'CATEGORY_ID',
    code=>'MCAT',
    appl_short_name=>'INV',
    num=> ':po_startup_values.structure_id',
              required => 'Y',
              validate => 'FULL',
    usedbflds=>'Y',
              autopick=> 'Y',
              qbe_in=> 'Y',
    SELECT_COMB_FROM_VIEW=>'MTL_CATEGORIES_VL',
              COLUMN=> 'DESCRIPTION \\\"' || NAME_IN('PARAMETER.DESCRIPTION') || '\\\"(240)',
    WHERE_CLAUSE=>' ( NVL(DISABLE_DATE, SYSDATE + 1) > SYSDATE )',
    WHERE_CLAUSE_MSG=> 'APPL=PO;NAME=PO_RI_INVALID_CATEGORY_ID');
    where it selects from mtl_categories_v.
    Tha Dev Guide mentions that we can update the WHERE_CLAUSE using for eg.
    FND_KEY_FLEX.UPDATE_DEFINITION( BLOCK=>'LINES',
    FIELD=>'ITEM_CATEGORY',
    ENABLED=>'N'
    WHERE_CLAUSE=>' ( NVL(DISABLE_DATE, SYSDATE + 1) > SYSDATE AND
    category_id = 644)'
    But, there is no option to change the source view itself. How do I change that ? I cannot see a parameter SELECT_COMB_FROM_VIEW for the FND_KEY_FLEX.UPDATE_DEFINITION !!
    Can I write the FND_KEY_FLEX.DEFINE again in CUSTOM.pll using my custom view instead ? Will it override the default definition ?
    Any suggestions or alternative ways would be appreciated.
    Thanks
    Shankar
    Edited by: user565538 on Mar 27, 2009 3:46 AM

  • Query regarding form names

    What are the form names for goods reciept ,
    Goods sent , Billing and what are th corresponding transaction codes to check the form print preview ?
    I have already checked in  TNAPR table but i didnt get.
    can anybody help me out?

    Hi Mohammed,
    the entries in TNAPR comes from the values maintained in NACE transaction .
    To find any SAP standard SAPScripts and SMARTFORMS, you need to check NACE transaction.
    BR,
    Preema
    *Pls award all helpful answers

  • Query regarding Schema objects

    Hi All,
    I would like to know,
    is it possible to retrieve the Which Schema objects (Procedures/Packages/Functions) are using same table for Eg: "EMP" in all the schemas in any one of the instances (Eg : DEV/Test/PROD) ?
    If possible , could you please let me know the process.

    966949 wrote:
    Hi All,
    I would like to know,
    is it possible to retrieve the Which Schema objects (Procedures/Packages/Functions) are using same table for Eg: "EMP" in all the schemas in any one of the instances (Eg : DEV/Test/PROD) ?
    If possible , could you please let me know the process.Check DBA_DEPENDENCIES (but separately for all 3 environments)
    Also, a crude way would be to scan DBA_SOURCE and check where all the table is used.

  • A query regarding synchronised functions, using shared object

    Hi all.
    I have this little query, regarding the functions that are synchronised, based on accessing the lock to the object, which is being used for synchronizing.
    Ok, I will clear myself with the following example :
    class First
    int a;
    static int b;
    public void func_one()
    synchronized((Integer) a)
    { // function logic
    } // End of func_one
    public void func_two()
    synchronized((Integer) b)
    { / function logic
    } // End of func_two
    public static void func_three()
    synchronized((Integer) a)
    { // function logic
    } // End of func_three, WHICH IS ACTUALLY NOT ALLOWED,
    // just written here for completeness.
    public static void func_four()
    synchronized((Integer) b)
    { / function logic
    } // End of func_four
    First obj1 = new First();
    First obj2 = new First();
    Note that the four functions are different on the following criteria :
    a) Whether the function is static or non-static.
    b) Whether the object on which synchronization is based is a static, or a non-static member of the class.
    Now, first my-thoughts; kindly correct me if I am wrong :
    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisation, since in case obj1 and obj2 happen to call the func_one at the same time, obj1 will obtain lock for obj1.a; and obj2 will obtain lock to obj2.a; and both can go inside the supposed-to-be-synchronized-function-but-actually-is-not merrily.
    Kindly correct me I am wrong anywhere in the above.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation.
    Kindly correct me I am wrong anywhere in the above.
    c) In case 3, we have a static function , synchronized on a non-static object. However, Java does not allow functions of this type, so we may safely move forward.
    d) In case 4, we have a static function, synchronized on a static object.
    Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a. However, since obj1.a and obj2.a are the same, thus we will indeed obtain sychronisation. But we are only partly done for this case.
    First, Kindly correct me I am wrong anywhere in the above.
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".
    Another query : so far we have been assuming that the only objects contending for the synchronized function are obj1, and obj2, in a single thread. Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.a; and again obj1 trying to obtain lock for obj1.a, which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed. Thus, effectively, our synchronisation is broken.
    Or am I being dumb ?
    Looking forward to replies..
    Ashutosh

    a) In case 1, we have a non-static function, synchronized on a non-static object. Thus, effectively, there is no-synchronisationThere is no synchronization between distinct First objects, but that's what you specified. Apart from the coding bug noted below, there would be synchronization between different threads using the same instance of First.
    b) In case 2, we have a non-static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.obj1/2 don't call methods or try to obtain locks. The two different threads do that. And you mean First.b, not obj1.b and obj2.b, but see also below.
    d) In case 4, we have a static function, synchronized on a static object. Here, again if obj1, and obj2 happen to call the function at the same time, obj1 will try to obtain lock for obj1.a; while obj2 will try to obtain lock for obj2.a.Again, obj1/2 don't call methods or try to obtain locks. The two different threads do that. And again, you mean First.b. obj1.b and obj2.b are the same as First.b. Does that make it clearer?
    Now, I have a query : what happens if the call is made in a classically static manner, i.e. using the statement "First.func_four;".That's what happens in any case whether you write obj1.func_four(), obj2.func)four(), or First.func_four(). All these are identical when func_four(0 is static.
    Now, consider this, suppose we have the same reference obj1, in two threads, and the call "obj1.func_four;" happens to occur at the same time from each of these threads. Thus, we have obj1 rying to obtain lock for obj1.aNo we don't, we have a thread trying to obtain the lock on First.b.
    and again obj1 trying to obtain lock for obj1.aYou mean obj2 and First.b, but obj2 doesn't obtain the lock, the thread does.
    which are the same locks. So, if obj1.a of the first thread obtains the lock, then it will enter the function no-doubt, but the call from the second thread will also succeed.Of course it won't. Your reasoning here makes zero sense..Once First.b is locked it is locked. End of story.
    Thus, effectively, our synchronisation is broken.No it isn't. The second thread will wait on the same First.b object that the first thread has locked.
    However in any case you have a much bigger problem here. You're autoboxing your local 'int' variable to a possibly brand-new Integer object every call, so there may be no synchronization at all.
    You need:
    Object a = new Object();
    static Object b = new Object();

  • Query regarding the fields details in particular form for all the users in

    Dear All,
                  I have one query regarding the fields details in particular form for all the users in company.
    Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce   4.Total   5. Location.
    While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including  above 4 fieds .
    Now my question is how to set the User choice fiels for the particular form that are common to all users.
    Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........

    You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
    This is a manual job and you have do do it with every user login.
    Alternately, you can try out this link that explains
    [How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]

  • Query regarding Insurance of the objects in plant

    Dear Sir,
                In my Implemenatation project i have the query regarding the insurance of the fleet object(Transporting Vechle) and Life insurance.
         As th eprocedure is when the object's insurance is finished the Note is sent by the respective department head to MD and finance department.Later it is aproved by MD and request is forwarded to finance dept and later the  finance dept issue the cheque to the insurance Company.
                      even During Breakdown(Accident) of the Vechile the Note is sent and same procedure is followed as above please let me know the standard SAP Procedure that i have to use in SAP so that Transaction would be Easy for me and my client.
    Quick Asnwer/Valuable answer will be awarded  good point s
    hope the answer will reached very soon
    Regards
    Girish

    Hi,
    This should work:
    select table_name, owner from dba_tab_cols
      where table_name = 'EMP'
      and column_name = 'JOB'
      and column_id != 3;//Johan

  • How to get windows form object of a MMC snapin node using MMC automation object model

    Hello,
    I am using automation object model for an existing mmc file and just trying to traverse all nodes of it. And i am able to do so.
    My query is : how can i get the access of windows form object of a particular node . Windows form is present in result pane of a node, i want to get access of that so that i can perform some automation on that form.
    http://msdn.microsoft.com/en-us/library/aa815049(v=vs.85).aspx
    I found that if OCX control is in result view of any node, then "view object -> control object property" returns
    the automation interface supplied by the control in the result view. 
    However, if result view is HTML view then how to get the automation interface of that result
    view.
    Thanks in advance,
    Sumit

    Hi Sumit,
    I read the link you provide above. It seems that when you want to achieve your target by using MMC automation
    object model, you need to use codes. Based on the programming language, if use VB, I suggest you post the question in
    VB Forum. If you want to use C#, may post in
    C# Forum.
    In addition, there is an answered question, may help you to find the correct forum.
    MMC development forum?
    http://social.microsoft.com/Forums/en-US/3796a8e9-674e-4da0-a40e-4e4b69575c8e/mmc-development-forum?forum=whatforum
    Since, it’s more related to development. We may can’t provide some more detailed information. Thanks for your
    understanding.
    Hope this helps.
    Best regards,
    Justin Gu

  • How to run recordset SQL query in FORM DATA event

    How can I run recordset SQL query in FORM DATA event upon clicking on Add button in the document?

    Hi Slamet,
    When you receive a form data event you have a class containing inside it a ObjectKeys xml info regarding the object added/modified,...
    With the objects keys you can then use the DI API method called GetByKeys to obtain the DI Object.
    There is some information about it in the SDK Help file, mainly in the "FormDataEvent" class definition:
    <i>The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object. You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.</i>
    Pay attention you don't have this information in the Before=True event of the Add as it is not yet in the database.
    Hope it helps
    Trinidad.

  • How to build sql query for view object at run time

    Hi,
    I have a LOV on my form that is created from a view object.
    View object is read-only and is created from a SQL query.
    SQL query consists of few input parameters and table joins.
    My scenario is such that if input parameters are passed, i have to join extra tables, otherwise, only one table can fetch the results I need.
    Can anyone please suggest, how I can solve this? I want to build the query for view object at run time based on the values passed to input parameters.
    Thanks
    Srikanth Addanki

    As I understand you want to change the query at run time.
    If this is what you want, you can use setQuery Method then use executeQuery.
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14022/oracle/jbo/server/ViewObjectImpl.html#setQuery_java_lang_String_

  • JPA query by entity/object ?

    I am trying to write an abstract API which dynamically assigns any Entity Class that needs to be persisted and retrieved using the Entity Manager.
    Saving into the database is not a problem, I just do entityManager.save(Class) and it works for any class that needs to be persisted.
    However, when querying for the object based upon the attributes, I want to avoid naming particular attributes and want to use the Entity class's attributes against itself for querying.
    For example, the client program will say something like this to query by name and age of a Person:
    -------calling (client) program: ---
    Person p = << get from UI, not saved yet, no Id but has all other attributes like name and age etc. >>
    List<Person> persons = dao.getAllThatMatch(p);
    --- end client Program --
    --- DAO class ---
    List<T> getAllThatMatch(T t) {  //note that expectation is that returned is a list of Object which is the same as the querying object
    List<T> entityList = em.someFinderMethod(t);
    //the someFinderMethod method should automatically query for all Person objects that match the attributes provided by the object of Person supplied as criteria
    //NOTE: there is no attribute mentioned extensively like name, age etc.
    return entityList ;
    -- end DAO class --
    Edited by: user7626479 on Feb 6, 2013 3:55 PM
    Edited by: user7626479 on Feb 6, 2013 3:55 PM

    Query by example is not included in the JPA standard, but it is possible to do with EclipseLink.
    See http://wiki.eclipse.org/EclipseLink/Examples/JPA/ORMQueries#Query_By_Example
    for how to use query by example with native EclipseLink queries. To execute a native query through JPA, you will need to call createQuery(DatabaseQuery query) on the org.eclipse.persistence.jpa;JpaEntityManager obtained from the javax.persistence.EntityManager instance by calling getDelegate() or unwrap.
    Best Regards,
    Chris

  • Form objects in email not working

    Hi All,
    I have designed a JSP which is sending survey form in an email to my clients in which I have put some form objects like radio button, text area, and a submit button. Few of my clients receive email with destorted form, or they are not able to press submit button, or form objects don't appear at all only the titles are displayed.
    Can someone suggest changes in code to overcome all these problems.
    Thanks
    Manu

    Few of my clients So there is at least one client receives your survey well... So the problem is not with your code... it will be aat the client who receives your mail, maybe something needed to support at the Mail client like the "text/html" content-type. if you use JavaMail, or whatever, insure that you set the content type for the survey to be "text/html", so the mail client be able to recognize the Objects!
    Regards,
    Mohammed Saleem

  • Query Builder Form Hide

    Hi Guys,
    I am working on a requirement for manage attachment functionality. But I am facing one issue in one scenario.
    From Manage attachment screen, User clicks on Search From Repository and in search page there are some default or hidden fields. Like where author is match with the login user and etc. For Expanded form there is no issue. All the hidden fields are not coming and search result is coming fine. But if user changes to Query Builder Form and manually modify the query then user can see all the content.
    So I want to stop the user to show the Query Builder form by which he/she could not modify the query and search. Is there any process by which we can hide the Query Builder Form?
    I have seen one Jonathan blog: https://jonathanhult.com/blog/2012/06/remove-fields-from-query-builder-search-form/
    But I would like to full hide the form.
    Thanks in advance.
    Regards,
    Santanu

    Hi Guys,
    As part of the above solution  (DisabledSearchFormTypes=queryBuilder), the query builder form will never appear. Which is not a good practice.
    Because for development this is very useful.
    My intention was to stop the user access Query builder Form only in Manage attachment screen.
    So I have created one custom component which will override the resource : query_page_menus_setup and check the xIdcProfile value.
    If IdcProfile is PSFTProfile or EBSProfile then it will not appear.
    <$exec rsAppendNewRow("PageMenusData")$>
    <$PageMenusData.nodeId = "QUERY_BUILDER_FORM"$>
    <$PageMenusData.parentId = "SEARCH_FORMS"$>
    <$PageMenusData.label = "wwQueryBuilderActionLabel"$>
    <$PageMenusData.type = "item"$>
    <$if #active.dpDisplayLabel like ("EBSProfile|PSFTProfile")$> 
    <$else$>
    <$PageMenusData.href = "javascript:switchQueryForm('queryBuilder')"$>
    <$endif$>
    I think this is really good.

  • Problems viewing PDFs with form objects

    I have a document I can't view correctly in Acrobat Reader XI. The document includes some form objects like radia buttons and check boxes. When I view the document in Adobe Reader, i only get square boxes. If I use Foxit Reader, I can se the objects normally. I have taken a screendump from the same PDF document, one using Acrobat Reader and the other using Foxit Reader. As you can see, there is a big difference.
    The screendump above is from Adobe Reader XI
    And this creendump is from Foxit Reader.
    Why cant Acrobat display the form objects? It looks like a font problem. I have tried to install asian font pack. Is there any other font packs that could solve this problem?
    Best regards
    René

    How were these forms created?  I have seen (in this forum) similar cases when forms were created in some none-standard ways.
    See if the attached test document shows correctly in Reader XI.

Maybe you are looking for

  • How do I restrict F4 help?

    Hello experts, I want to restrict F4 help so that only 3 valid values will be shown when users press F4 on my parameter. How do I do that? Again, thanks a lot guys and have a nice day!

  • TS4268 I need help getting my face time and imessage to work.

    I need help getting my face time and imessage to work. It is saying wating for activation. I just got my iphone 5 2 days ago. I have reset it from the phone and from itunes on the computer, made sure I'm attached to wifi.

  • Error executing procedure in package

    If someone can help me, i'd greatly appreciate it! I created a package (see code below) in the Portal Navigator and I'm getting the following error when i try to execute the procedure: ORA-06550: line 2, column 16: PLS-00201: identifier 'CURSOR' must

  • AirPort Extreme constantly having to be restarted.

    So here's my issue: My modem works just fine, however I'm constantly having to restart my base station several times a day. Everything works just fine, then I'll lose my internet connection but still be connected to the base station. The base station

  • So,Is it called "manually manage music"?

    I use my itunes and i tick "manually manage music''  in the index of my iphone,and it works fine,I could drag the music I want. But it is strange when i plug my iphone to another computer,the tick is gone,and of course I can't Add/remove music. When