I need one helps  please

I need one helps I am implementing a tree of navigation of km with java vestibule and have a problem, when I request to him to this that orders with respect to a metadata or reality with any criterion this always takes the folders and it orders them and later it takes the Links and you order them, and the truth that I need that it does not make that distinction single that orders by the metadata that does not take in whatever if it is Link or folder
here the code goes that I am using to see if to somebody something is happened to him:
import bean.NavigationTree;
import com.sapportals.htmlb.TreeNode;
import com.sapportals.htmlb.enum.ResourceType;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.JSPDynPage;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sapportals.portal.prt.component.IPortalComponentContext;
import com.sapportals.portal.prt.component.IPortalComponentProfile;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentResponse;
import com.sapportals.portal.prt.component.IPortalComponentURI;
import com.sapportals.portal.prt.session.IUserContext;
import com.sapportals.portal.security.usermanagement.IUser;
import com.sapportals.wcm.repository.ICollection;
import com.sapportals.wcm.repository.IProperty;
import com.sapportals.wcm.repository.IPropertyName;
import com.sapportals.wcm.repository.IResource;
import com.sapportals.wcm.repository.IResourceList;
import com.sapportals.wcm.repository.PropertyName;
import com.sapportals.wcm.repository.ResourceContext;
import com.sapportals.wcm.repository.ResourceException;
import com.sapportals.wcm.repository.ResourceFactory;
import com.sapportals.wcm.repository.ResourcePropertyComparator;
import com.sapportals.wcm.repository.enum.OrderType;
import com.sapportals.wcm.util.uri.RID;
//import com.sapportals.wcm.util.usermanagement.WPUMFactory;
Title:        Navigation in KM repository with DynPage and JSP<br>
Description:  Basic navigation.<br>
Copyright:    Copyright (c) 2006<br>
Company:      AGILE<br>
@author Juan Solar
public class Neo extends PageProcessorComponent {
     public DynPage getPage() {
          return new NeoDynPage();
     public class NeoDynPage extends JSPDynPage {
          public String pathInitial = "/documents/eo";
          public String pathDocument = "";
          private String kmNavigation = "";
          private String kmViewDoc = "";
          //          private String pictFolder = "/irj/portalapps/com.sap.portal.pcm.admin.plainfolder_converter/images/folder.gif";
          public IPortalComponentRequest request;
          public IPortalComponentResponse response;
          public IPortalComponentProfile profile;
          private NavigationTree treeBean;
          private IUser user;
          private IResourceList reslist;
          private int nodeCount;
          String TITLE = "TOrder";
          String NAMESPACE = "http://sapportals.com/xmlns/cm";
          String selectedTitle = "";
          public void doInitialization() throws PageException {
               request = (IPortalComponentRequest) this.getRequest();
               response = (IPortalComponentResponse) this.getResponse();
               treeBean = new NavigationTree();
               IPortalComponentContext myContext = request.getComponentContext();
               profile = myContext.getProfile();
               IPortalComponentURI componentURI =
                    request.createPortalComponentURI();
               componentURI.setContextName("com.sap.km.cm.navigation");
               kmNavigation = componentURI.toString();
               componentURI.setContextName("com.sap.km.cm.docs");
               selectedTitle = "";
               kmViewDoc = componentURI.toString();
               nodeCount = 0;
               try {
                    //               pathInitial = profile.getProperty("pathInitial");
                    //                    user = WPUMFactory.getUserFactory().getEP5User(request.getUser());
                    user = getPortalUser(request);
                    ResourceContext ctxt = new ResourceContext(user);
                    RID rid = RID.getRID(pathInitial);
                    IResource resource =ResourceFactory.getInstance().getResource(rid, ctxt);
                    ICollection collection = (ICollection) resource;
                    reslist = collection.getChildren();
               } catch (Exception e) {
                    response.write(e.getMessage());
          public void doProcessAfterInput() throws PageException {
          public void doProcessBeforeOutput() throws PageException {
               TreeNode root = new TreeNode("rootNode", "root");
               //               List tmp=(List)root;
               //               Collections.sort(tmp);
               root.setOpen(true);
               try {
                    add_node(reslist, root);
               } catch (ResourceException e) {
                    e.printStackTrace();
               treeBean.setOutput("");
               treeBean.setTree(root);
               // set bean in servlet request - it will be used by the jsp afterwards
               request.getServletRequest().setAttribute("neoTreeBean", treeBean);
               this.setJspName("neotree.jsp");
          private String getSelectedTitle() {
               return selectedTitle;
          //          public String getSelectedTitle(){
          //          Esta es una funcion alternativa para porder cambiar el criterio de ordenamiento del recurso lista
          private void sortResouceList(IResourceList resourceList,String orderBy)     throws Exception {
               //create property names to index properties
               IPropertyName iPropSort = new PropertyName("http://sapportals.com/xmlns/cm", orderBy);
               //             create a comparator to order the resource list
               ResourcePropertyComparator rRPC =new ResourcePropertyComparator(iPropSort, true);
               //           order the resource list
               resourceList.sort(rRPC);
          private String getPropertyValue(IPropertyName iname,IResource resource)throws ResourceException {
               String value = "";
               //               String namespace = "http://com.sap.netweaver.bc.rf.sample/xmlns/sample";
               //               String name = "Order";
               //               IPropertyName propertyName = new PropertyName(namespace, name);
               IProperty property = resource.getProperty(iname); //propertyName
               if (property != null) {
                    // property exists
                    value = property.getValueAsString();
               } else {
                    // property is not set for this resource
               return value;
@param reslist      IResourceList
@param root         TreeNode
          private void add_node(IResourceList list, TreeNode parentNode)
               throws ResourceException {
               //new add_node().doit();
               String title;
               String name;
               String label;
               String path;
               IResourceList tmpreslist;
               ICollection tmpcollection;
               IPropertyName iProperty;
               try {
                    sortResouceList(list,"displayname"); //, "Order"
               } catch (Exception e) {
                    e.printStackTrace();
               boolean first = true;
               for (int i = 0; i < list.size(); i++) {
                    IResource tmpres = list.get(i);
                    String     rType= tmpres.getResourceType();
                    iProperty =     new PropertyName("http://sapportals.com/xmlns/cm", "displayname");//, "Order"
                    try {
                         name = tmpres.getName();
                         title = tmpres.getDisplayName();
                         title = (title.equals("") || title == null) ? name : title;
                         path = tmpres.getAccessRID().getPath();
                         if (tmpres.isCollection() && !tmpres.isHidden()) {
                              tmpcollection = (ICollection) tmpres;
//                              if (tmpcollection.getChildren().size() > 0) {
                                   TreeNode node =     new TreeNode(Integer.toString(nodeCount++),title,parentNode);
                                   node.setTooltip(name);     //
//                                   if (order==null || (order!=null && order.equals(""))) {
//                                        label = "<a class=urLnk href=\"javascript:nada();\" onclick=\"alert('";
//                                        label ="Folder "node.getText()+" has not set the Order Metadata!! ";               // path;
//                                        label += "');\">" + node.getText() + "</a>";
//                                        node.setText(label);
//                                   } else{
                                        tmpreslist = tmpcollection.getChildren();
                                        add_node(tmpreslist, node);
                         } else {
                              if (first) {
                                   label =     "<a class=urLnk href=\"javascript:nada();\" onclick=\"goNavigate('";
                                   label += path;
                                   label += "');\">" + parentNode.getText() + "</a>";
                                   parentNode.setText(label);
                                   first = false;
                              TreeNode node =     new TreeNode(Integer.toString(nodeCount++),title,parentNode);
                              node.setTooltip(name);     //
                              label ="<a class=urLnk href=\"javascript:nada();\" onclick=\"goNavigate('";
                              label += path;
                              label += "');\">" + node.getText() + "</a>";
                              node.setText(label);
                    } catch (Exception ex) {
                         IPortalComponentResponse response = (IPortalComponentResponse) this.getResponse();
          //          href=\"javascript:void(0)          "<a target=\"itoptarget\"                     href=\""kmViewDocpath+"\"          
Returns the IUser object.<br><     
@param request
@return user
          public IUser getPortalUser(IPortalComponentRequest request) {
               //               user = WPUMFactory.getServiceUserFactory().getServiceUser("service_user_id");
               IUserContext uc = request.getUser();
               user = (IUser) uc.getUser();
               return user;

Click here for information. If you can't get the answers emailed to you for some reason(the email may take a few hours to arrive), contact the iTunes Store staff via the link in that article.
(87419)

Similar Messages

  • Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute then turn on wifi on iMac before it can reconnect. Need some help please.

    Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
    Already gone through troubleshooting guide a zillion times. Thanks.

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    In the article Resolve iOS update and restore errors this is what it says about error 14:
    Check your USB connections
    Related errors: 13, 14, 1600, 1601, 1602, 1603, 1604, 1611, 1643-1650, 2000, 2001, 2002, 2005, 2006, 2009, 4005, 4013, 4014, or “invalid response."
    If the USB connection between your device and computer is interrupted, you may be unable to update or restore.
    To narrow down the issue, you can also change up your hardware:
    Use the USB cable that came with your device, or a different Apple USB cable.
    Plug your cable into a different USB port directly on your computer. Don't plug it into your keyboard.
    Try a different computer.
    If necessary, resolve any further issues with the USB connection, then with your security software.
    If you're still seeing the error message, check for hardware issues by following the next section.

  • Please help i started my project video format 720HD resolution 12x720 rate 25p at last when i finish and burn to dvd the edges are cut off any one help please i am really in trouble

    please help i started my project with  video format 720HD, resolution 12x720, rate 25p.  at last when i finish and burn to dvd the edges are cut off and my logo cut off the screeen aswell any one help please i am really in trouble. thanks

    Sorry, but I don't know anything about that app.
    I did go to their Web site and I see they have a support link. Perhaps you can get help there or in their forum.
    If you are OK with a DVD with a basic menu, you could try the Share>DVD option in FCP.
    Good luck.
    Russ

  • Hi! I got movies on my external hard drive that are AVI kind and won't play on my macbook pro? need some help please!!

    Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.

    Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player.  It may supply the codec it needs.
    Not sure why you wouldn't be able to play straight avi files though in quicktime.

  • HT1199 I need your help, PLEASE. How can to fix "NO MOUNTABLE FILE SYSTEM" error of my back up hard drive on Mountain Lion OS?

    I need your help, PLEASE. How can to fix "NO MOUNTABLE FILE SYSTEM" error of my back up hard drive on Mountain Lion OS?

    Did you format the drive for Mac use before you tried to use it as a backup drive?
    Are you using Time Machine on the drive? You can't view the contents of its backup database and the only way to access the info is directly from the Time Machine app.

  • I changed my email for my apple account online and now i can't log into itunes on my iphone 5 can any one help please?

    i changed my email for my apple account online and now i can't log into itunes on my iphone 5 can any one help please?

    Sign out of your Apple ID on the device and sign in with the new credentials.

  • Hi, I have installed boot camp with wins xp home but i can't get on line with it. can only one help please.

    Hi, I have installed boot camp with wins xp home but i can't get on line with it. can only one help please.

    Please close this thread, I have managed to get a hold of a DVD including all the drivers, so I suppose that will work, if not one way then another.
    Thank you for the quick answers.

  • I need serious help please.. We do translations of schoolbooks, I looked for an over-type function but were unable to find, we are working in indesign CS 5. it takes up allot of time to delete text and type in the new language.

    I need serious help please.. We do translations of schoolbooks, I looked for an over-type function but were unable to find, we are working in indesign CS 5. it takes up allot of time to delete text and type in the new language.

    Argh that's frustrating! I never noticed that key did not work in InDesign.
    A bit of research and it turns out the MS Office has this as an option in their software. But I cannot find an option in InDesign preferences to make this work.
    However, somethings are not listed in the shortcuts and preferences and are hidden triggers in InDesign which can be accessed through a script.
    I'm not saying it's possible to activate the Insert Key through a script, but it's plausible that it can be activated.
    Maybe ask on the scripting forum? InDesign Scripting
    I know this may be a possibility as with InDesign's earlier versions of PDF export to interactive documents there previously was no way to export interactive pdfs as single pages if in Spreads.
    But the option to toggle this setting was scriptable.

  • HT201328 Hey, i bought an iphone from online shop and its locked by orange france, i contact them to unlock it but they refused, they said that we regret to inform you that we'r not able to unlock second hand phones? I need your help please.

    Hey, i bought an iphone from online shop as a used phone and its locked by orange france, i contact them to unlock it but they refused, they said that we regret to inform you that we'r not able to unlock second hand phones? I need your help please. Its not fair , apple should figure it out
    Regards,
    Orange

    This is no different with any carrier locked phone. Getting a carrier locked phone officially unlocked is the responsibility of the carrier, not the cell phone manufacturer. A cell phone manufacture cannot unlock a carrier locked phone without the carrier's authorization.
    An iPhone sold as officially unlocked when new can be used by others as a second hand phone, and the same with any carrier locked iPhone that can be unlocked by the carrier, and many carriers offer it.

  • HT4623 I. Tried many time to install my apple to update software but can't fix I need your help please and Thanks.

    How i fix and software update i was tried but cant i need your help please and thanks.

    "but cant"
    That doesnt tell us anything useful. You need to post EXACTLY what you did and EXACTLY what happened, including any error messages.

  • Need Urgent help please? I need to restore from a previous iphone backup.

    Oops, I admit it - I messed up but need help please?? I received a replacement iphone today. My broken iphone OS and my itunes had the latest software updates and I did a full backup before going to the store to get the rerplacement. However, when I got home with the replacement iphone and plugged it in, it asked if I wanted to update the OS on it. I made the mistake of saying yes. It then made a backup of the empty factory settings from the new replacement and restored from that rahter than the backup I made before going to the store. Yes I know I should have said no and just did the restore which would have resotred my previous backup that I made before going to the store. Then after everything would be allright I could have told it to update the OS.
    You can slap my in the face or I will do it myslef for making such a stupid mistake. All ready did the "I should have had a V" thing to my forehead.
    After seeing the restore was fromthe factory settings rather than my earlier good backup, I went into my documents and drilled down to the mobile sync backup and saw that one of the three folders (with giberish as a title) has a lot of information with the date and time I did the backup before going to the store.
    Could I possibly delete the later (factory setting backup) folder and then do a restore to get my good backup onto the iphone? I didn't do that yet in fear that it might mess something else up on the iphone and I wanted to check with you experts here first for guidance and assistance, PLEASE?
    I'll be anxiously awaiting any help you can give!
    Thank you!!

    rwmac22 wrote:
    Hopt and OneOrangeTree, Thank you both very much for replying!!
    It took me a long time to get back to the dissucison group because I tried both of your suggestions which therfore had to do about 4 restores. They take quite a while (about 50 minutes each actually). Your help got me half way there and is very apprecaited! I did manage (with your excellent help) to get most of my backup put onto the replaced iphone. the photos, music, and videos didn't get put over. I think I can move those back over by making sure they are selected in the seperate tabbed screens for the iphone. However, I can't get to those screens because every time I connect the iphone now, it brings up the "set up your phone screen". The one with the "an iphone has been previously synced with this compter" setup as new phone or restore from ....
    Well I did the resotre from 3 times and that page still comes up when I plug in the iphone. Yes, I did close itunes, reboot the PC, and powered off the iphone and then brouhgt it back up before connecting (all several times), but itunes still takes me to the same "setup iphone screen".
    Can you help me to get it to the standard iphone screen and there I will make sure the selected items are checked and do a sync.
    Please know I do appreicate your kind assistance so far and hope someone can get me the rest of the way!
    The "Backup" do not store your Applications, Music, Video's. It saves your settings, your application preferences, etc.

  • I am the biggest "Newb" on this site,  and I really need some help please..

    Ok, the short of it.... I started training on Database programming about 2 weeks ago. I still don't really know a thing, or even understand the concepts. Now, my boss wants me to fix a bug in Oracle, and I haven't a clue. The ONLY help I've gotten was a link to this forum, and a speech about how I need to help myself. I told him I have the same chance of fixing anything, as monkeys typing hamlet. Anyone up for a challenge?
    When I go to Application System, then Application Entry and enter the password a dialog box appears.... "FRM-40039: Cannot attatch library Empower while opening from APPUSRAPP."
    That's what I have to fix. I have no clue. I don't even really know how to click around in this program. Please help, someone.
    UPDATE: I've been told that everyone's pretty much going to be a jerk to me for asking this, and I'm currently searching old threads and can't find a way to delete this one I posted. So, you could just ignore the post, or jump in and be the internet tough-guy and tell me what I already know.... I'm a newb.
    Edited by: user11033020 on Apr 14, 2009 11:41 AM

    As this appears to be a Forms error (the error begins with FRM) you might get a better response by posting this in the Forms forum:
    Forms
    The Community Feedback forum isn't meant for product-related questions (as it says in the title).
    Still, you should consider searching Metalink as well. If you've paid for support, you have every right to use it.

  • Hi I am trying to set my Iphone 5 from I cloud and its saying the last back up is incomplete. Any one Help please

    Hi guys,
    I backed up my phone on i cloud and now I am trying to set up my new Iphone 5 from the i cloud. I have got all my data and some very important numbers in the last back up.
    Now when I try to back up from the i cloud it is saying back up incomplete. PLease guys I need some help in order to restore the data back on to my phone.
    Many thanks.

    If you get the error "Backup not successful" and you've tried deleting the last backup and trying to back up manually without luck, try the following test:   Go to...
    Settings>iCloud>Storage & Backup>manage Storage, tap your device name in the Backups section, then look under Backup options.  Turn off all apps from backup and then do a manual backup.  If that doesn't work, then this post will not help.  If the backup works, then go back to the app list and turn some on and try another backup.  If successful, keep repeating these steps.  If it fails at some point, then try to zero in on the one app that seems to make the backup fail.  (I had this problem and found one app failing, probably due to a corrupt data file.)
    This process will take time, but if a backup works with no app data being used but clearly fails with the original settings, then somewhere in the mix of apps is a "bad" one.

  • I need your help, please. I can't get my photostream synchronized

    Dear friends, I need your help again!!!
    My photostream from my computer, windows vista, is not updating the pictures on my photostream in neither one of my IOS devices.
    I'm sure that the photostream in both IOS are turned on. In my computer it is also turned on.
    For example, I tranferred some pictures from a normal file to the photostream in the computer and I expected that them went also to my
    iphone and ipad, but it not occurred.
    Please, do you have some advise for me?
    Thanks in advance.

    first i would try a simple restart of your computer and your iPad and see if they show up after they reboot. Also which folder are you putting them in? on windows there will be a seperate folder in the photostream folder that will show upload/uploads you will want to make sure they are in there. Also here are some basics about photostream to make sure you are meeting all the requirements and are not over your limit, http://support.apple.com/kb/HT4486

Maybe you are looking for

  • How can I delete Mac files from my windows boot?

    My OS is corrupt and I'm trying to reinstall Maverik, but ran out of space. Is there a way to delete Mac files from my Windows BootCamp?

  • Receiver server definition for file adapter

    Hi, I am trying to create a scenario where the data from SAP system goes to XI through ABAP proxy and has to write the data in the file. My Question... In the Integration directory my sender system is ABAP Proxy and receiver system is File adapter. W

  • Displaying images in jlabel, jpanel

    Hi all, below is my snippet: public void actionPerformed(ActionEvent e)         lblImage.setIcon(new ImageIcon("c:/test"+cnt+".jpg";));         cnt++;         if(cnt==6)             cnt=1;                        repaint();     }this actionPerformed()

  • IOS 4.2.1 tethering gone.

    Hi there, I have following issue: Internet tethering options and internet tethering itself is gone on my iPhone 3G under iOS 4.2.1. * iPhone is NOT Jailbroken, never, ever, was. * iPhone is officially unlocked. * My carrier officially supports tether

  • Virtual Char - How Can I access report variable in COMMPUT method

    I want to acess the Variables of a query in the COMPUTE method of a BADI for implementing a viratual characteristics. Can some one let me know how this can be done. Thanks Amit