To find the view link in the attribute definition

Hi, I am using Jdev 10.1.3.2 and ADFBC. I have two master/detail view objects which have view link defined between them. Now I am trying to do deep copy, but I don't want to hard code the view link accessor name in the code. Here is the part of the code to get the list of attributes:
ParentVORow newRow = (ParentVORow)parentVO.createRow();
StructureDef def = newRow.getStructureDef();
AttributeDef[] attrs = def.getAttributeDefs();
Now view link accessor is in attrs, but how can I tell which attribute in attrs is a view link accessor without comparing to the attribute name?
Thanks!

Please see section "25.3.4.1 Determining the Attribute Kind at Runtime" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html for more information on this.

Similar Messages

  • How to get the view link definition from the view link accessor

    Hi,
    I am using Jdev 10.1.3 and ADF BC. I am trying to do deep copy in a master/details view, after the new child record is created, I want to update the foreign key attribute. I know I can get the list of attribute definitions from the row in the view object, which include the view link accessors, I am wondering if I can get the view link definition from the view link accessors, so that I can get the source and destination attribute names.
    Thanks!

    Hi,
    you should get this through
    ViewObject vo = this.findViewObject("LocationsView1");
    int indx = vo.getAttributeIndexOf("DepartmentsView");
    ViewAttributeDefImpl vAttrDefImpl = (ViewAttributeDefImpl) vo.getAttributeDef(indx);
    ViewLinkDefImpl vdefImpl = (ViewLinkDefImpl) vAttrDefImpl.findViewLinkDefImpl();
    Note that this code starts from the ApplicationModuleImpl class, which is why I used this.findViewObject().
    Frank

  • I was doing some thing on my mac and the normal link to the applications folder from the bottom right hand corner disappeared, I cant find it anywhere, Can you help me?

    I was doing some thing on my mac and the normal link to the applications folder from the bottom right hand corner disappeared, I cant find it anywhere, Can you help me?

    Simple process. If an iPhone go to the Apple Store and not Verizon
    the phone from Verizon will be a refurbished device and not new unless under the 14 day worry free guarantee
    good luck

  • View link between calculated attributes

    Hi all,
    I'm having a problem with a view link. See, I'm linking two view objects on attributes that are calculated. The two view objects are result of sql query (not EO based) - plus, this attribute is present in the SQL query and in the db table for both view object.
    The SQL query is like, for both view object :
    select to_char(DATE_FO, 'dd/MM/yyyy), a, b, from ...
    And, as I said, I made a view link on these attributes. The cardinality is 1 to *.
    When testing the ApplicationModule, I'm getting
    (oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. SELECT ....... ) QRSLT WHERE DATETOCHAR = :Bind_ToCharGdaCrahDateCrahDdMm
    ----- Level 1: Detail 0 -----
    (java.sql.SQLException) ORA-00904: "DATETOCHAR" : identificateur non valide
    DATETOCHAR is the alias of the calcultated attribute in detail vo.
    Please help ! Also I've been reading Steve's article : urlhttp://radio.weblogs.com/0118231/2003/11/13.html[url] ; what is jbo.viewlink.consistent property exactly ?
    Regards
    Luc

    Hi again,
    ok I found it ... I needed to add an alias in the SQL query and override the default sql where clause in the view link. Something weird btw, because the alias in the sql query seems to be not bind to the alias property in the attribute properties... and it add another attribute. But it works fine.
    Therefore, if Steve muench might explain jbo.viewlink.consistent property, I'm stil interested in knowing that :)
    Luc

  • HT2693 Where d i go if the vendor of an app has no webpage and the support link in the app store points to a nonexisting webpage?

    Where d i go if the vendor of an app has no webpage and the support link in the app store points to a nonexisting webpage?
    The app does not work and i paid 12$ for it
    How do i get either supportor my money back
    Thanks
    Juerg

    Try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via the Store > View My Account (Store > View My Apple ID on iTunes 11) menu option and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that app and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    Some people have had a problem with the 'report a problem' link (it's been taking people to this site on a browser instead of showing a form in iTunes) - if it does that to you then try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.

  • Calling a method in the view controller from the component controller

    Hi
    Is there anyway to call a method in the view implementation from the component controller??
    Thanks
    jack

    Thanks for all your replies. I want this kind of a functionality because Im trying to invove a DC (Child DC) from a Parent DC such that the Child DC's view is displayed onto the view container of the Parent DC. I have embedded using 'interface view of a component instance' in the Parent Window and am able to create the component and set usage though the onPlugDefault of the Child View.
    But I observe that when i make a call from the parent, the flow is like this:
    1. The wdDoInit of the Child Component Controller gets triggered first.
    2. Then the wdDoInit of the Child's <b>VIEW</b> gets triggered
    3. and <b>THEN</b> the onPlugDefault of the Child Component Interface View
    What I had actually wanted was to Fire onPlugDefault where Im calling a method LoadData(), after which the Child DC's view must be triggered so it can display the fetched data.
    What is actually happening is the view gets displayed, but no data is displayed in the view.
    Right now I have just given a work around where Im triggering <b>LoadData()</b> of the <b>COmponent COntroller</b> from the <b>wdDoInit</b> of the <b>VIEW</b>.
    Is there a better way to do this? I find it strange that I have to load the Data from the view.
    Thanks
    Jack

  • Need to get the download link of the software

    Hi team,
    I will be getting the available patches which is released by Microsoft, from that I would be filtering the patches which I would like to use for my system an application but the reference link only takes to the information of the article rather than providing
    me the download link, can you kindly help me or suggest a way how to get the download link of the article.
    eg:microsot.com/ kb/981574#
    for this article how do I find the download link

    Download the one that is relevant to your system and your region
    https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=33154
    Ninety-nine per cent of politicians give the rest a bad name.

  • Enhance the view "InboxSearch" in the cpmpoent "ICCMP_INBOX/InboxSearch"

    Dear Expert,
    I need to enhance the view "InboxSearch" in the cpmpoent "ICCMP_INBOX/InboxSearch" with new field for example: Affected employee (Partner number and Partner Function both as F4 Search.
    Could you give a step by step description, how to do this?
    As far I know I should:
    1. Extend the Structure: CRMST_AUINBOX_SEARCH with needed field
    2. Add field to the UI
    But I am not sure how to move foreward. Some threads are mentioning the Badi: CRM_IC_INBOX_BADI.
    Thank you very much in advance for your help.
    Best regards
    Ahmed Hadi

    Ahmed,
    Apologies for delay replying, SDN was unavailable when I tried to reply yesterday.
    Our team does not shy away from developing SAP CRM to meet our requirements, but the Agent Inbox is very complicated and very difficult to enhance, so it's not something we've done many changes with.
    If the request is a 'nice to have' then I would advise the business that the change would require a large amount of development and testing (it is very easy to reduce Inbox search performance and/or not return the correct results). 
    Most changes to the Inbox can be accomplished through the BADI you've mentioned and using either the BEFORE_SEARCH or AFTER_SEARCH methods.  However, with your requirements I suspect you will need to enhance the context of the Inbox to bring in the two new fields (created using the Easy Enhancement Workbench).  You'll need to take a Z copy of CL_ICCMP_IN_INBOXSEARCH_CN00 in order to include getters and setters for your new fields along with any lookup help attributes.
    I'm sure there are many ways to skin your cat, but I'm sure you'll need to use the Inbox BADI.  I'm not a developer though, so I may be totally wrong in what I've said here.
    Hope this helps, all the best and good luck with your project,
    Andrew Griffin.

  • Have a nice day. I can't open the books linked to the Adobe ID. Always the overallocation says. But some of the books I downloaded two times. Still, it gives a warning in the form of more installations.

    Have a nice day. I can't open the books linked to the Adobe ID. Always the overallocation says. But some of the books I downloaded two times. Still, it gives a warning in the form of more installations.

    I think you should ask in the Digital Editions forum, Adobe Digital Editions

  • How Can I Remove the Home Link on the Main Page

    I am using PT 8.49 and I am creating a custom page where the only options I'd like to show on the page are my custom menu option and "Sign out" at the top right. I'd like to remove the "Home" link on the top right menu because I am doing the selection for them. I don't want them to be able to go back to the Home menu once they've entered my custom page. I have everything working the way I'd like except that I cannot get rid of the "Home" link. Can anyone help with that?
    I am also using a template in portal called HOMEPAGE_DESIGNER_TEMPLATE as this causes the page to display without the left menu, as I want it to be.
    Thanks for your help!

    Restore the default home page
    * https://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page#w_restore-the-default-home-page
    Now, set a single web site as your home page
    * https://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page#w_set-a-single-web-site-as-your-home-page
    Check and tell if its working.

  • The Help Link from the Application Pages Does not Work for Peoplesoft Campus Solutions 9.0

    Hi everyone.
    I have a problem, I have been trying to set up the Help Link from the Application Pages for Peoplesoft Campus Solutions 9.0 according to the instructions given in the Document: http://docs.oracle.com/cd/E17566_01/epm91pbr0/eng/psbooks/EnablingtheHelpLinkfromApplicationPages.pdf ,  (referenced in the Doc ID 1289101.1, E-PB: How to Set Up the Context Sensitive Help with Hosted PeopleBooks using Universal Linking).
    I follow the instructions of that document carefully:
    I go to: PeopleTools -> Web Profile -> Web Profile Configuration
        2. Then I choose the Web Profile: "Development".
        3. Then Change the value for the Help URL field by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5 , the ctx parameter selected is the one that correspond to  the Campus Solutions (hrcs90r5) according to the Product Line Code Table (ULinkID) especified in the mentioned document.
        4. Stop the Web Domain and Clear cache.
        5. Start the Web Domain again.
    After setting up the Web Profile Configuration I test the help links, thas is why I click in the Help link in any Peoplesoft CS 9.0 Application Page (modify a person), but the next error message appears: "We're sorry, the topic you requested was not found.".
    I tried many combinations with the ctx parameters URL but it does not work yet. 
    I did the same test, but this time using the Help URL field with a HRMS ctx parameter by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hcm92pbr5 , and It works fine !!!
    According to the previous test you realize that It works with HRMS ctx parameter but not with Campus Solutions 9.0 ctx parameter,  Does anybody know what else can I do ? Am I doing anything wrong or missing? or maybe the Oracle's ctx parameter for Campus Solutions URL It is broken simply.
    Thanks for you help and feedback.

    2799444 - The page you are testing with appears to be a Workforce Administration page. Is that correct?
    The CS PeopleBooks would only work for CS pages, e.g.: try navigating to Main Menu > Campus Community > Personal Information > Add/Update a Person
    Also, you can use multiple ctx parameters:
    E.g.: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5&ctx=hcm92pbr5&ctx=pt852pbh2
    This way the help would work for the HR related pages like Workforce Administration, Campus Solutions pages like Campus Community and also PeopleTools pages like Web Profile Configuration. Hope this clarifies your question. Thanks!

  • Is there a way to remove my facebook contacts from my phone contacts list?  I had an iphone 4 and it was easy to shut off from teh contacts through the groups link at the top left, but the iphone 5s does not have this feature nor can i figure it out throu

    Is there a way to remove my facebook contacts from my phone contacts list?  I had an iphone 4 and it was easy to shut off from teh contacts through the groups link at the top left, but the iphone 5s does not have this feature nor can i figure it out through the settings feature or anything else....HELP please as it is annoying to see all of these contacts!

    Hello ymprice91277, let's solve this mystery! To unlink the Facebook contacts go to Settings, Facebook, turn off contacts.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • Why do I not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task?

    We are trying to use workflows to review and edit pdf files in sharepoint 2010. We are having a couple of issues and am hoping someone has the answer.....
    1)  When myself and coworkers click on the pdf document in the library, we get the check out option as expected.  However when we click on the document
    link in a workflow task (on the sharepoint site), the pdf opens as a temporary file and we do not get the check out option.  Why does this happen????? 
    2)  The same thing happens when we click on the document link in the workflow task email;   HOWEVER,  one of our co-workers does get the
    check out option when clicking on the link in the email task.  Why would she get the checkout option using the email and not when clicking on the link in the task list on the sharepoint site ????  We have compared our internet settings and adobe
    settings to ours and found no differences.
    We are using Sharepoint 2010, Windows 7, IE8, Adobe Reader X or XI.  Some of us have Adobe Pro X and have the same issues.

    Hi,
    According to your post, my understanding is that you could not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task.
    I try to reproduce the issue, however, no matter when I click the pdf type document in the library or click on the pdf document link in the workflow task email, it download the pdf doucment and then I can open it.
    It will be better if you can descript how you
    get the check out option as expected when you click on the pdf document in the library.
    Then I upload a
    word type document to the library, no matter when I click the word type document in the library or click on the word document link in the workflow task email, I can open the word document directly and get the check out option as expected.
    I recommend to use the other type docuemts to check whether the check out option works.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Display image from the save link in the field

    Hi all,
    I have a image link that saved in a column and will like this picture to be displayed once user is click on the image link in the tabular format.
    However, now I am facing the problem to perform query of the record because one of the field type is image or ole. However, if I changed the image link to normal text item. I am able to perform query search on the record. My question is, can I click on the record whenever I want to see the image from the tabular form ? I prefer tabular form as I can see a lot of records in one sort. But for the image display, I will like user to clock on the specific link in order to open up the image.
    Will this possible ?
    Thanks
    Lim

    If you are saving the image path in table not the image then why don't you use the READ_IMAGE_FILE built-in (see forms help).
    What i mean is hide the actual item which is having the image location. Just create one image item from toolbar (non-database) and create one extra button in the same block to display the image then use the READ_IMAGE_FILE built-in as below in WHEN-BUTTON-PRESS-TRIGGER...
    READ_IMAGE_FILE(:path_item_name,NULL,'image_item_name');
    Preferred way would be to save the image in database then query in your form using database image.
    -Ammad

  • Why do I not get the checkout option when clicking on the document link in the SharePoint workflow task?

    We are trying to use workflows to review and edit pdf files in sharepoint 2010. We are having a couple of issues and am hoping someone has the answer.....
    1)  When myself and coworkers click on the pdf document in the library, we get the check out option as expected.  However when we click on the document link in a workflow task (on the sharepoint site), the pdf opens as a temporary file and we do not get the check out option.  Why does this happen????? 
    2)  The same thing happens when we click on the document link in the workflow task email;   HOWEVER,  one of our co-workers does get the check out option when clicking on the link in the email task.  Why would she get the checkout option using the email and not when clicking on the link in the task list on the sharepoint site ????  We have compared our internet settings and adobe settings to ours and found no differences.
    We are using Sharepoint 2010, Windows 7, IE8, Adobe Reader X or XI.  Some of us have Adobe Pro X and have the same issues.

    No the person who can check out using the link in the email has the same permissions as me.  We have looked at all kinds of settings, profile etc and nothing evident can be determined to explain the reason.  However, one difference we did notice is that this person does not have a default web browser set and thus when clicking on items to open, it always pops up a dialog box asking which program to use to open it with.  This person chooses Adobe Reader and it opens on the Sharepoint server as it should and she gets the checkout option in a dialog box just like clicking on the document in the library.  My theory is that this step of choosing the program to open with is interrupting the typical way a pdf file is handled when clicking on URL links to the document, which is…. it is opened as temporary internet file rather than on the Sharepoint server.   Hopefully someone can figure this out ☺

Maybe you are looking for