Prgrmatic viewlink setting for hgrid is working for one level and not remai

Hi All,
I have create 2 VO objects dynamicaly and created 2 VL's dynamically .I have a static HGrid.and iam setting viewlinks dynamically.It is working for 1 level but not another leve..For Example.. Grid id displaying projects to Tasks but not tasks to subtasks.
here is my code
public void createViewLink(){
OADBTransaction dbTransaction=getOADBTransaction();
OAViewObject obj = (OAViewObject)this.findViewObject("TestProjects1VO1");
OAViewObject obj1 = (OAViewObject)this.findViewObject("TestTasks1VO1");
AttributeDef[] prjLinkAttrs = new AttributeDef[] { obj.findAttributeDef("ProjectId") };
AttributeDef[] taskLinkAttrs = new AttributeDef[] { obj1.findAttributeDef("ProjectId") };
ViewLink vl = createViewLinkBetweenViewObjects("TestPrjToTestTasksVL","TestPrjToTasksAcc",
obj,prjLinkAttrs,obj1,taskLinkAttrs,null);
//OAViewObject obj3 = (OAViewObject)this.findViewObject("TestTasks1VO1");
OAViewObject obj2 = (OAViewObject)this.findViewObject("TestRecTasks1VO1");
AttributeDef[] taskAttrs = new AttributeDef[] { obj1.findAttributeDef("TaskId") };
AttributeDef[] parentTaskAttrs = new AttributeDef[] { obj2.findAttributeDef("ParentTaskId") };
ViewLink vl1 = createViewLinkBetweenViewObjects("TaskToTestTasksVL","TaskToTasksAcc",
obj1,taskAttrs,obj2,parentTaskAttrs,null);
OAHGridBean hgrid=(OAHGridBean)webBean.findChildRecursive("HGridRN");
OAHGridHierarchyBean hgridHierarchy = (OAHGridHierarchyBean)hgrid.findChildRecursive("TreeRN");
OATreeLevelBean treeChild = (OATreeLevelBean)hgridHierarchy.findChildRecursive("TreeRN");
OAWebBean nodeDef1 = (OAWebBean)treeChild.findChildRecursive("nodeDef1");
nodeDef1.setViewUsageName("TestProjects1VO1");
nodeDef1.setViewAttributeName("ProjectName");
OATreeChildBean childNode1 = (OATreeChildBean)treeChild.findChildRecursive("childNode1");
childNode1.setAttributeValue(VIEW_LINK_NAME,"TestPrjToTestTasksVL");
childNode1.setAttributeValue(VL_ACCESSOR_NAME_ATTR,"TestPrjToTasksAcc");
OAWebBean nodeDef2 = (OAWebBean)childNode1.findIndexedChild(childNode1,"nodeDef2");
nodeDef2.setAttributeValue(VIEW_USAGE_NAME, "TestTasks1VO1");
nodeDef2.setAttributeValue(VIEW_ATTRIBUTE_NAME,"TaskName");
%%%%%%%%%%%%%%%Till Here grid is getting data%%%%%%%%%%%%
This node is not getting data............i.e sub tasks are not getting data
OATreeChildBean childNode2 = (OATreeChildBean)childNode1.findIndexedChildRecursive("childNode2");
childNode2.setAttributeValue(VIEW_LINK_NAME,"TaskToTestTasksVL1");
childNode2.setAttributeValue(VL_ACCESSOR_NAME_ATTR,"TaskToTasksAcc");
OAWebBean nodeDef3 = (OAWebBean)childNode2.findIndexedChild(childNode2,"nodeDef3");
nodeDef3.setAttributeValue(VIEW_USAGE_NAME, "TestRecTasks1VO1");
nodeDef3.setAttributeValue(VIEW_ATTRIBUTE_NAME,"TaskName");
Please help me .. ihave spent my whole daya on this issue.
Thanks
Soujanya

Sure Sumit.
OADBTransaction dbTransaction=getOADBTransaction();
OAViewObject obj = (OAViewObject)this.findViewObject("TestProjects1VO1");
OAViewObject obj1 = (OAViewObject)this.findViewObject("TestTasks1VO1");
OAViewObject obj2 = (OAViewObject)this.findViewObject("TestRecTasks1VO1");
// OAViewObject obj3 = (OAViewObject)this.findViewObject("RecTasks1VO1");
AttributeDef[] prjLinkAttrs = new AttributeDef[] { obj.findAttributeDef("ProjectId") };
AttributeDef[] taskLinkAttrs = new AttributeDef[] { obj1.findAttributeDef("ProjectId") };
ViewLink vl = createViewLinkBetweenViewObjects("TestPrjToTestTasksVL","TestPrjToTasksAcc",
obj,prjLinkAttrs,obj1,taskLinkAttrs,null);
AttributeDef[] taskAttrs = new AttributeDef[] { obj1.findAttributeDef("TaskId") };
AttributeDef[] parentTaskAttrs = new AttributeDef[] { obj2.findAttributeDef("ParentTaskId") };
*************This cide was missing ...********************************
/* Retrieve the first row of the master rowset */
Row firstDept = obj.first();
/* Get iterator over details collection via the view link accessor attribute */
RowSetIterator empsInDeptRowSet = (RowSetIterator)firstDept.getAttribute("TestPrjToTasksAcc");
/* Get view object created by the framework to handle view link traversal */
ViewObject viewObjectForAccessorRowSet = empsInDeptRowSet.getRowSet().getViewObject();
/* Now, create the 2nd-level detail between this view object, and reports */
*************This cide was missing ...********************************
ViewLink vl1 = createViewLinkBetweenViewObjects("TaskToTestTasksVL","TaskToTasksAcc",
viewObjectForAccessorRowSet ,taskAttrs,obj2,parentTaskAttrs,null);
I the above vl1 i gave obj1 before .. that was the difference...BAsically using the accessor ... if we give as source for next levevl .. it worked.
Both ViewLinks were separate and now there is a link ............ :)
Now iam facing problem for recursion ......... :)
Soujanya

Similar Messages

  • Auto To working for one material and not working for other material

    Hi,
    Hope everybody is doing fine.
    I have configured the auto TO. Its working fine for one material and not working for the other material. I checked the material master and wm 1,2 views have the same fileds / values. What could be wrong?
    I didn't setup the back ground processing job. Is that is affecting it?
    thanks for any help.
    regrads,
    KHAN

    Thnaks,
    You are right but then what could be wrong? Its working for one material and not working for otehr material? Any clue?
    Appreciate your time charlie

  • GL security works for one report and not for other report.

    Hi everybody,
    We have setup GL security and for our discoverer reports we are calling
    APPS.GL_SECURITY_PKG.VALIDATE_ACCESS( sl.SET_OF_BOOKS_ID,gl.CODE_COMBINATION_ID ) = 'TRUE' in the query.
    Now among 3 reports, 2 are working fine but one report is not showing any data if i use the above condition.
    Hint: That particular report is based on a Materialized view.
    Any ideas??
    Thank you
    --Kumar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Rod,
    Thanks for your reply but when i try to use the where
    condition in the folder in Admin, its not recognizing the Apps.GL_SECURITY_PKG.VALIDATE_ACCESS....
    Any Suggestion on this?
    Thank you
    --Kumar                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • c:set works in one page and not another.. rediculous problem

    Hi all,
    im having one hell of a strange problem..
    i have this bit of code on one page..
    profile_body.jsp
    <jsp:useBean id="user" scope="request" beanName="com.insaini.publogs.business.UserBean" type="com.insaini.publogs.business.ProfileInterface" />
    <jsp:setProperty name="user" property="user" value="<%=request.getRemoteUser()%>" />
    <c:set value="${user.profile}" var="profile" />and i have this in my editProfile_body.jsp
    <jsp:useBean id="location" scope="request" beanName="com.insaini.publogs.business.LocationBean" type="com.insaini.publogs.struts.listeners.LocationListener" />
    <jsp:useBean id="org" scope="request" beanName="com.insaini.publogs.business.OrganizationBean" type="com.insaini.publogs.struts.listeners.OrganizationListener" />
    <jsp:useBean id="user" scope="request" beanName="com.insaini.publogs.business.UserBean" type="com.insaini.publogs.business.ProfileInterface" />
    <jsp:setProperty name="user" property="user" value="<%=request.getRemoteUser()%>" />
    <c:set value="${user.profile}" var="profile" />the profile_body.jsp loads fine.. but the editProfile_body.jsp does not load at all and its throwing this error..
    An error occurred at line: 17 in the jsp file: /jsp/includes/editProfile_body.jsp
    Generated servlet error:
    org.apache cannot be resolved or is not a field
    where line 17 points to
    <jsp:setProperty name="user" property="user" value="<%=request.getRemoteUser()%>" />
    this makes absolutely no sense since this exact same line works in the profile_body.jsp..
    any ideas?

    I think the problem is that you have an object in scope that has the name "org". Then, somewhere in the Java Code generated by the offending jsp:setProperty tag, there is a line that looks like:
    xxx = org.apache...
    What ends up happening is Java is looking in the object you have named org for a public (or otherwise visible) member named apache, and not finding it.
    This is a naming conflict, and gets resolved by renaming the <jsp:useBean id="org" object to something else (preferrably something other name org, com, net, or any other package name your system might have).

  • XML Query works on one database and not working on others with errLPX-00241

    I have one query as below
    SELECT EXTRACTVALUE
    (VALUE (xml_node),
    '/inspectionActivityArtifact/ns2:landfillTypes/ns2:type[position()=1]',
    'xmlns:ns2="http://dwm.sw.xmlNamespace/InspectionActivity"'
    ) AS TEST
    FROM artifacts a,TABLE (XMLSEQUENCE ((XMLTYPE (NVL (artifact_data, '<empty></empty>'))))) xml_node
    this works well on other databases but not working on one database. Everything is same configuration and OS and everything.
    I can work on other XML parsing which is working fine but not this query.
    Any idea ?
    Viral Dave

    post versions and patch levels for both databases eg 10.2.0.1.0 and the error message you are getting.

  • PO approval hierarchy working on one user and not on other

    Hi all,
    I am using an approval hierarchy with one preparer and one approver for Purchase order and requisition.
    User A is preparer and User B approver.
    Requisition hierarchy is doing fine but the Purchase Order Hierarchy gives this error on forewarding the PO..:: " PO Approval Top Process : Error, Wait for Concurrent Programme"
    If i assign a different user to this Preparer, the process works fine.
    What am i doing worng or what issue am i over looking.
    Thanks in Advance.

    Found the solution.
    Apperently on this installation, my preset named RegularExport should be found with name [RegularExport].
    Strange that this works on on installation.

  • I have 2 ipad 2s.  On the newer one I can log in and update to IOS 5 with no problem.  On the older one I get the message "Your Apple ID has been disabled."  Why does it work on one ipad and not on the other?

    I have 2 ipad 2s.  On the newer one I could log in and update to IOS 5 withno problem.  On the older one I get the message "Your Apple ID has been disabled." No other explanation.  Why can I log in on one ipad and I'm disabled on the other?

    Well, I spoke too soon.  Yes, I'm using the same account on both iPads, but I just changed my password for the umpteenth time and now I get the disabled message on both iPads.  Just yesterday I was able to upgrade one to IOS 5 but got the error message on the other.  I'm getting more confused by the minute.

  • Why does wireless work for one laptop and not the other?

    I have two laptops:
    1) MacBook: 10.4.8, Airport Exteme (Firmware 1.0.46)
    2) G4: 10.3.9, Airport Extreme (405.1 (3.90.0.p18)
    I have the two machines sitting right next to each other in my apartment. Machine #1 has full wireless signal strength. Machine #2 barely has any wireless signal. Neither is running Interference Robustness. Any ideas why one would work and the other would not, or suggestions as to how to debug this problem?
    I have tried stopping and restarting the Airport Extreme card on machine #2. I have also tried power cycling machine #2. This does not fix the problem.
    A little more history: for a long time I was having problems with machine #2 dropping the wireless connection. As part of trying to work around these problems I turned on Interference Robustness on machine #2. This fixed the dropping signal problem, but left me with weak signal strength. I shut off Interference Robustnes but ever since then the signal has still been weak on machine #2.
    Mac Mini Duo 1.66 GHz, 2 GB   Mac OS X (10.4.6)  

    The base station uses a single channel which all clients must use to connect.
    Have you checked the antenna connection into the card? Many people are surprised about how far the wire is actually supposed to be pushed into the card. Compare the connection with the photos in KB 108039, Properly attaching the antenna on an AirPort Extreme Card.

  • Send email works for one user and not another ?!

    Hi there
    Am Apex Newbie and am developing in-house helpdesk / ticket / call logging / issue tracker type system ..
    Am putting final bells and whistles on app like sending email on raising of a problem. This is being done via Apex_Mail using new Send Email page process attached to a button.
    I.e it's not being done via UTL_SMTP explicitly in a trigger or anything.
    Here's the problem for userA the sending of email works perfectly for userB it doesn't work .. does anyone have any suggestions as to what may be wrong ?
    I thought I read somewhere that UTL_SMTP wasn't granted publicly in Apex and had to be explicitly given to individual users but I may well be mistaken.
    Any help / suggestions gratefully received .. all I can think of doing is logging onto Apex Admin and looking at the mail queue and see if that will give me any clue but Apex Admin is not really my bag per se ?!
    Thanks in advance
    Wiggywig

    Hi,
    Can you see any error from Apex logs?
    Check mail queue and mail log
    http://download.oracle.com/docs/cd/E17556_01/doc/admin.40/e15521/adm_mg_service_set.htm#sthref348
    What email address you use in From field?
    Somehow I think this relates more to SMTP server policy about sender than Apex.
    Regards,
    Jari

  • I have a MAC desktop, an iPhone and an iPad.  I have my email set up to go to all 3, because I use them for all different purposes.  How can I cut down on the duplication of emails.  I want to delete them for one spot and not have them go to the other 2.

    If I delete emails from my phone, why do they still go to my iPad and desktop and vice versa?   What's the solution to this, other than not getting the emails in 3 places?

    I think the best solution would to just sync all email accounts and turn on and off which accounts you want on a device by going to Settings>Mail/Contacts/Calendars>name of e-mail account>toggle Mail On/Off switch.
    I do not own multiple iDevices (maybe one day I will), try that and see if it works.

  • I just bought a cit 200 for my other house. It works on one computer and not another

    Anyone have a CIT200 Linksys Skype phone?  I've narrowed the problem down to one computer.  When using on another computer it worked, the computer recognized the hardware.  On the other computer, it doesn't recognize the hardware.  Have loaded and reloaded the driver innumerable times using different usb ports etc.  Could there be a virus.  I've seen that before with hardware.  Any ideas?  Help!!!

    could be your computer's firewall is preventing the proper installation of your CIT200.  try disabling and reinstalling the drivers again.
    "Don't fix it if it ain't broken."

  • Possible to use Time Capsule as back up for one computer and not another?

    Here is what I want to do. I want to use this as a router wireless router for wi-fi. I have a mac so I want my data to be backed up automatically. now my brother also has a laptop and want him to use the wifi, but i dont want him to access any of my backed up files. is this possible? what are the steps? he has a pc thanks.

    Hi Bob,
    Thanks for the warm welcome.
    Yes, I did some research on the echolife and I don't think it has WDS functionality available. I do have another 3Com router that I'm thinking of firing up again. I know it has WDS functionality. The question is, would the Time Capsule be compatible with it in order to extend the network? I am not keen to shell out for another Apple base station if at all possible.
    Regards,
    /Brian

  • How can I fix my iSight settings when it works on one account and not the other?

    iSight continually crashes third party applications. I've checked another account on my MBP, and iSight works on different accounts. What settings can I troubleshoot on the account?
    Thank you!

    Although the documentation says you can copy Time Machine backups in the Finder, it's very slow and sometimes doesn't work at all.
    Launch Disk Utility, open the built-in help, and search for the term "Duplicate." Follow the instructions. All existing data on the destination volume will be erased. That shouldn't be a problem, because you don't want to mix backup and non-backup data on the same drive anyway. Turn Time Machine OFF in its preference pane while copying the volume.

  • IMessage works in one network and not another...

    Since I installed it I couldn't get iMessage Beta to work on my Mac at home. When I used it at work today, it worked perfectly.  But now I'm back home and can't get it to work.  Factime isn't working either.  What's going on?

    Hi,
    In System Preferences <> Network > Advanced Button > DNS tab add the DNS server 8.8.8.8 (it's a Google Public one)
    It seems some DNS servers are not working well with this.
    10:36 PM      Tuesday; February 28, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Events working on one server and not the other

    We have a development and a production server for LC. I have events working on the development server that accept parameters.
    The services were deployed to the production server and the following error occured:
    2010-05-04 09:14:04,203 ERROR [STDERR] May 4, 2010 9:14:04 AM com.adobe.idp.scheduler.callback.ServiceCallbackHandler execute
    SEVERE: Exception thrown while calling back a DSC componentINVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
    2010-05-04 09:14:04,203 INFO  [org.quartz.core.JobRunShell] Job Asynchronous.SWR.RAAC.RequestSendEmail:12729788401870.18563775243350922 threw a JobExecutionException:
    org.quartz.JobExecutionException: java.lang.Exception: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
    [See nested exception: java.lang.Exception: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. ]
        at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:102)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
    Caused by: java.lang.Exception: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
        at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:101)
        ... 2 more
    Caused by: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
        at org.apache.xerces.dom.CoreDocumentImpl.createElement(Unknown Source)
        at com.adobe.idp.event.xml.XMLGenerator.createElement(XMLGenerator.java:500)
        at com.adobe.idp.event.xml.XMLGenerator.createEventDataDocument(XMLGenerator.java:293)
        at com.adobe.idp.event.content.EventContent.createEventDataXML(EventContent.java:173)
    I took the xml from the production service and ran it through the development server, it worked fine.
    Any idea as to where to start the troubleshooting?
    Cheers,

    It would seem that when the LCA we created to be pushed to production, the event template XSD did not get rolled up. So when the LCA was deployed, there was no definition for the event.
    What would cause this? Do you have to select another option when creating the LCA? Do you have to re-define the template after the LCA is deployed?
    Further information would be greatly appreciated.

Maybe you are looking for

  • Background job for auto lock user

    Dear Friends, Which background job i have to be schedule for auto locking user after every 30 days if then are not logged for last 30 days. Thanks, Regards, Sachin

  • Hyper-V host registration in Active Directory.

    Hi everybody, I have question regarding hyper-v nodes registration in active directory. As in the original TechNet documentation Microsoft (https://technet.microsoft.com/en-us/library/dn550728.aspx) stated: "...The management network must have connec

  • Newbie question on color/contrast

    Hi I placed some advertisments into a black-and-white (greyscale) newspaper. The ads were previously scanned images and I received them as high-resolution .JPG's. I don't have access to the original files. When they printed, some of the ads were not

  • Installing Web Premium CS4 Student Edition on Laptop After Windows 7 Upgrade Question

    I hope that this hasn't been asked before but my question is the following: I want to upgrade my laptop computer from Windows XP to Windows 7.  But I hear that all programs get uninstalled after installing Windows 7 on a Windows XP machine.  I would

  • Dreamweaver CS6 crashes in Lion

    I've had Lion 10.7.4 recently installed, and Dreamweaver CS6 now crashes when I try to open an existing index.html file that opened fine in Snow Leopard 10.6.8. Nothing has changed on this file.