Problem with Getting Community ID with MyPortalModel

Hi,
I tried to use the code in the samplePEI under UISourceCode( ExPageActions) to retrieve the pageID and community ID. The code is as follow:
if(_asCurrentSpace.GetModelExists(MyPortalModel.STR_MVC_CLASS_NAME)){
MyPortalModel model = (MyPortalModel) asCurrentSpace.GetModel(MyPortalModel.STRMVC_CLASS_NAME);
iitem_id = model.GetPageID();
iextra_id = model.GetCommunityID();
The problem is that I get strange ids. For example my home page would get pageid=0 communityid = -999. And a community page with incorrect pageid and community id. Can anybody find what's wrong with that, or is there another way to retrieve the ids?
Thanks heaps.
Joshua

Thanks for your help. I find out that some invalid numbers could be blocked. By when I have a modified community home page. It gives the correct community page, say 220 and an INVALID page id 118. For all community home page the page id should be 0 rite?
Thanks
Joshua

Similar Messages

  • Backup completed with status "communications failure with client" error

    Hi
    Getting error while taking filesystem backup of client in oracle secure backup.
    We have administrator server & media server on same server.
    We want to take backup of filesystem/rman backup of client host...but unable to communicate.
    following steps have done
    1.install oracle secure backup client on host
    2. add host in administrator domain server
    3.check connectivity from administrator server to client host but getting following error
    [root@isgmmlds06 ~]# obtool pingh isgmmlds250.insolutionsglobal.local
    Error: can't connect to NDMP server on isgmmlds250.insolutionsglobal.local (address isgmmlds250.insolutionsglobal.local) - timeout waiting for connection status message
    isgmmlds250.insolutionsglobal.local (address isgmmlds250.insolutionsglobal.local): Oracle Secure Backup services are available
    also tried to take filesystem backup but getting following error
    2011/09/28.19:50:49 Job created.
    2011/09/28.19:50:49 Dispatching job to run on administrative server.
    2011/09/28.19:53:59 Backup completed with status "communications failure with client".
    2011/09/28.19:53:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.20:09:55 Dispatching job to run on administrative server.
    2011/09/28.20:09:59 Backup completed with status "communications failure with client".
    2011/09/28.20:09:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.20:25:55 Dispatching job to run on administrative server.
    2011/09/28.20:25:59 Backup completed with status "communications failure with client".
    2011/09/28.20:25:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.20:41:55 Dispatching job to run on administrative server.
    2011/09/28.20:41:59 Backup completed with status "communications failure with client".
    2011/09/28.20:41:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.20:57:55 Dispatching job to run on administrative server.
    2011/09/28.20:57:59 Backup completed with status "communications failure with client".
    2011/09/28.20:57:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.21:13:55 Dispatching job to run on administrative server.
    2011/09/28.21:13:59 Backup completed with status "communications failure with client".
    2011/09/28.21:13:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    2011/09/28.21:29:55 Dispatching job to run on administrative server.
    2011/09/28.21:29:59 Backup completed with status "communications failure with client".
    2011/09/28.21:29:59 (Diagnostic data: 0x20008F06/21, dev_delay 0, data_delay 900, fail, data_err.)
    Note : we are able to take filesystem/rman backup of same server where administrator domain & media server is installed.
    please revert.
    Regards
    shd

    output for pingh
    from administartor server
    [root@isgmmlds06 ~]# obtool pingh isgmmlds250.insolutionsglobal.local
    isgmmlds250.insolutionsglobal.local (address isgmmlds250.insolutionsglobal.local): Oracle Secure Backup and NDMP services are available
    and from cllient server
    [root@isgmmlds250 ~]# obtool pingh isgmmlds06
    isgmmlds06 (address isgmmlds06): Oracle Secure Backup and NDMP services are available
    Error: can't connect to Oracle Secure Backup service daemon on isgmmlds06 (address 169.254.95.120) - operation timed out

  • Getting Communication error with the external tax system(VERTEX_MS0018)

    Hi All,
    I am a new SAP HCM self learner. I am practicing it on company's sandbox system. When I am trying to create a company and saving the address, it is returning Communication error with the external tax system(VERTEX_MS0018). I have already tried to solve is issue by going thru previous related to same issue like
    Communication error with the external tax system (VERTEX_MS0018) ...Urgent
    but coudn't solve the issue.
    Please help. Is this issue coming as I am using a training environment? any alternate approach?

    Hi Ravi,
    To disable the connection to Vertex:
    Goto tcode  SPRO > Cross Application Components > Transaction Tax Engine >
    Technical Settings> Define External Tax System
    Here an RFC would be defined. Remove it and try again.
    Also in SPRO > Cross Application Components > Tax Determination based on Jurisdiction Codes > External Tax Jurisdiction > Activate External Tax Jurisdiction.
    Remove the entry 'V' here.
    Regards,
    Srikishan

  • Problem in getting Time info with webLogic using Oracle Thin Driver

    We have a servlet to store/retrieve date/time data from an Oracle 9i db using use the Oracle thin driver. Everyting is ok when run on JSDK2.1 servlet container or Tomcat. But when run under WebLogic 8.1, we have problem with time portion info, it is lost. After debuging, we found under WebLogic, the returned object type is a java.sql.Date which by definition has no time info, while in other servlet containers, it is a java.sql.Timestamp. Storing date/time data in a Date column is ok under WebLogic because we see the time portion data in the db table. We did not set anything about database/jdbc in WebLogic.
    It would be greatly appreciated if someone can explain what effect WebLogic has on a servlet that has its own jdbc connection or how WebLogic could change data type from a jdbc sql statement.

    That's a function of the JDBC driver, not the J2EE app server.
    Sounds like maybe you're using the WebLogic 8.1 driver when you deploy with WL instead of the Oracle driver. You certainly can deploy with the Oracle driver. Go into the WL config manager and set it up to use the ojdbc14.jar instead.
    %

  • Problem in getting current row with JTree

    Following is the code. It doesn't show the currently selected row, it shows the previously selected row:
    treeEqType.addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node =
    (DefaultMutableTreeNode)treeEqType.getLastSelectedPathComponent();
    JUIteratorBinding iter = panelBinding.findIterBinding("AllIter");
    AllRow row = (AllRow)iter.getCurrentRow();
    System.out.println(row.getName());
    Aamir

    Have a look here: TransactionModified on VO.findByKey()
    It's an unrelated problem, but the code fragment may be what you're looking for.

  • Problem in getting jdbc connection with oracle for win 98

    This is my code given below
    import java.sql.*;
    public class Oconnection
    Connection conn;
    Statement st;
    PreparedStatement pst,pstissue,pstret,pstbook;
    public Oconnection()
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","system","manager");
    catch(Exception ex)
    System.out.println(ex.getMessage());
    ex.printStackTrace();
    public static void main(String args[])
    new Oconnection();
    *****************************************************8
    Error
    C:\Library>java Oconnection
    Io exception: The Network Adapter could not establish the connection
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:324)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:266)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at Oconnection.<init>(Oconnection.java:17)
    at Oconnection.main(Oconnection.java:39)
    I am using Oracle for win95 or i think it is oarcleforwin98 .
    The sid of my database i found through query given was orcl, what changes should i do in the code so that it works.
    should i use another driver coz i am using latest driver from oracle.com which is for oracle 8i. if a need a driver change where can i download it from please help me

    http://forum.java.sun.com/thread.jsp?thread=291584&forum=48&message=1305045

  • MAC 10.5.7 download problems - just get a file with gibberish after downloading software for my Visor Platinum. Any ideas? (MAC is new to me, Visor is not)

    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

    Hello jnrms and welcome to the Palm forums.
    If I recall correcrly, you are trying to download Palm Desktop 4.2.1 Rev A for Mac OS X.  That installer uses the old Stuff It file compression utility, which no longer works on Mac OS X.
    You'll want to download, install, and use Palm Desktop 4.2.1 Rev D for Mac OS X.  You can download it here.
    Alan G
    Post relates to: Treo 755p (Sprint)

  • Communication error with Epson Stylus C63 with Airport Express

    I have a brandnew iMac running 10.5.2. Set up my Airport Express and got the wifi to work in the house. Now I am dealing with remote printing. Printer is plugged into the port on the Airport Express, I see it in the Printer tab of Aiport Utility, I see it in the printer dialogue... but whenever I print I get "communication error with printer". I have unplugged the Airport Express, restarted computers, to no avail.
    What am I missing?? Thanks in advance for any tips.
    -Joanna

    I solved this problem! After lots of searching I ended up at http://discussions.apple.com/thread.jspa?messageID=5692363 Printer setup utility in Leopard which gave the tip to reset the printing system... I did, and then somehow the Epson printer showed up as a Bonjour printer (which I had tried to do in the Airport utility but it would not let me because the name was too short or something strange like that). PageSender Fax showed up also and I just printed a document remotely...
    Hope this helps someone else.

  • Playback and Render Errors - communication error with child process failed

    Tried a reinstall, does not fix the issue, will get the gray screen with text:  communication error with child process failed
    This happens during playback (About 30% of the frames or so) as well as when rendering an output.
    On PC.

    So I updated my nvidea drivers to the latest and greatest (GeForce 327.23). I also reinstalled SpeedGrade CC (which is quite the pain, btw! why can't we keep a local .exe file? Have to download every time you want to resintall ... even if only ten minutes apart!)
    Still the issue seems to persist.
    The footage is from the BlackMagic Pocket Cinema Camera. It worked fine about a month ago when I was working on some footage from the same line of cameras.
    Intel Core i7-3610QM CPU @ 2.30GHz
    16GB RAM
    Win7 Ultimate
    Geforce GTX 670M
    GPU Engine Specs:
    336 coresCUDA Cores
    598 MHzGraphics Clock (MHz)
    33.5Texture Fill Rate (billion/sec)
    Memory Specs:
    1500Memory Clock
    GDDR5Memory Interface
    192bitMemory Interface Width
    72.0Memory Bandwidth (GB/sec)
    Anyone have any suggestions?

  • My Thinkpad edge e330 gets very hot with xubuntu 12.10

    Hi,
    I own a Thinkpad edge e330. IT is perfect for my use. And I love it alot. but it has some problem. it gets very hot with xubuntu 12.10.
    the temperatur goes up to 70 after using it in 30 min. even when it is not hot in the room. I think it is very strange and 70 is very high for a Intel computer.
    Can anybody here tell me how to make the temperatur come down? thanks!

    For sure that isn't normal temperature. I have E330, i3-3110M, Ubuntu 12.10/13.04: temps stay around 40-45 celcius in idle/low load.
    - what about the temperatures on Windows? If they're high too, I'd really suggest some vent dusting too...
    - what BIOS settings do you mean?
    Check that the CPU frequency scaling is working (wouldn't expect the problem to be about this though, but you never know...):
    cat /proc/cpuinfo | grep -i "cpu mhz"
    TLP power management might also fix this issue, but regardless of the issue I recommend to install it (easy to install via PPA): http://www.webupd8.org/2013/04/improve-power-usage-battery-life-in.html
    I'd also try updating to Xubuntu 13.04... there is always something new and this could be a bug.

  • I know many have this issue but i can't find a solution to the problem. i get message saying insuffisiant disk space in the volume iPhoto library and i have plenty of space available. i have the new macbook pro with retina display.

    I know many have this issue but i can't find a solution to the problem. i get message saying insuffisiant disk space in the volume iPhoto library and i have plenty of space available. i have the new macbook pro with retina display. i have never seen this message before and i have 2 other macbooks and have had many other also. i am assuming this is a problem with the new macbook retina. does anyone know the exact fix to this issue? i have seen many sugestions to try to fix this issue but none have solved the issue for anyone that i can find in the Apple Support Community. thank for looking into this in advance.
    ******A true apple fan********

    Actually your suggestions are the ones that i have tried. i have seen that you have tried to help others with this issue and the only one that i could find that said they found the problem said that it was an ilife update issue and it fixed it and i have no available updates. i know it has to do with something in photo stream because it happens when i create a new library and it is loading the photos but i get the message before i reach the maximum 1000 photos. so i've tried updating, new library(first backing up photos and then deleting them from iPhoto), reinstalling OSX many times, running disc utilities. I called Apple the first day i had this issue and i was the first person to call them for support with the retina display and i actually had it escalated to a senior advisor and we thought we fixed the problem but we did not. i am pretty fluent in dealing with troubleshooting these type of issues and this is the first time i'm reaching out to the community. i figured now that the retina has been out some time now that there would be an obvious answer to this issue. thanks for the quick reply.
    Bebers5

  • Problem With Receiver Communication (File Adapter)

    Hi,
    My SAP XI Version is 3.0 with Service Pack 7,I have a strange problem,
    I have a flat file coming from Unix system,I need to convert this into  XML and put a copy in the Archive mode and send the XML file,getting it converted into flat file format send it to the receiver.Here I have to do the content Conversion,So,I have done content conversion while configuring Sender and Receiver Communication Channel.
    I am using NFS as Transport Proctocol.So, everthing was fine when i run the scenario,after activating.The Sender communication Channel is Archiving the files.But I am unable to see any file with receiver communication channel.
    So,for this I have checked up with Adapter monitoring in Runtime Workbench. In my File Adapter My Sender as well as Receiver Communication Channels are in Green.They are mentioning that Sender Communction is sucessful and
    RECEIVER COMMUNICATION IS Sucessful but no messages processed.
    Can any one suggest what to do now.Everything is fine with Content conversion and Unix System.But my receiver is not receiving any messages.
    Should any OSS notice or patch work needs to be applied.
    Thank You,
    KishoreJ.

    Hi Kishore,
    I Guess you should first see if the file is being picked......for that do the following.
    While configuring your Sender File Adapter, let the mode be DELETE. This way, we will know if the file is being picked by the File adapter. The file will be deleted and you can be sure that it has been picked up.
    Next, look into the RWB--> FILE ADAPTER and see the log of the file adapter
    and also, you can see the flow of your message in the integration engine in SXMB_MONI.
    Ans still if your message is not showing up in SXMB_MONI, please do as explained below.
    Increase logging and trace level in:
    SXMB_ADM -> Integration Engine Configuration -> Specific Configuration
    Also create entries as follows in it:
    LOGGING = 1
    LOGGING_SYNC = 1
    TRACE_LEVEL = 3
    TRACE_LEVEL_PROPAGATION = 1
    Also refer XI: I cannot see some of my messages in the SXMB_MONI
    Regards,
    Abhy

  • Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it acr

    Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it across all the places around to pay their attention. This is a desperate move, so if you are not the right people to help me to get my message accross, may be you can advise where can I go.
    Thank you, and sorry for the language.
    Vitas Dijokas
    I am sorry to say that, but your security makes my life miserable – it’s been 2 months since my Apple ID account got stuck, and since then I cannot update 37 applications (to date), i.e. most of my applications. Half of them I bought. I also paid for iCloud, and it is not working. I paid money and I am stuck with old applications and no iCloud. Your security *****. Your service ***** too. It took your service 1 month to finally understand why this happened to me, and it took me tens of emails to you and 3 hours of telephone conversation to find out the reason for my problem. And the problem is still not fixed. NOT FIXED. You just leave your customer – the one who paid you money and spent so much time with you trying to help you help me – and nothing. You tell me:  “Vitas, Stick your stinky iphone in your *** and enjoy life, we do not care!” *************.
    It is ******* outrageous, and you should know that,  guys. Get into the ******* database and correct the bug. Get someone in the partners-telephone carriers company (it is Orange as carreer and Cellcom as seller of the phone)  authorized to Identify me in personal encounter in one of the branches in Israel (where I live) and make sure it is really me, and get the ******* system accept my password and let me use my phone.
    Otherwise **** off. None of my friends will get my advise to buy an iphone or any of apple products. And I think you should be very attentive to cases like this, guys. Do your work for the money we pay, or disappear. There are many others eager to take your place, and if the problem is not fixed I will eventually go to the others. My patience is lost, and as soon as I can afford another phone I will change it. AND I WILL TRY TO GIVE BAAAAAD PUBLICITY TO APPLE – I am threatening here, so ACT NOW.
    Vitas Dijokas

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • Just moved my email from entourage to Mail. Having real problems with getting my signatures to work properly. When adding in a small company logo, windows computers only receive signature as an attachment. Am sending email as Rich Text. Any ideas on a fix

    Just moved my email from Entourage to Mail. Having real problems with getting my signatures to work properly despite sending email as Rich Text.
    When adding in a small company logo to the signature, PC's / windows computers only receive signature and logo as attachments.
    I've tried all possible fixes I can find including getting a PC user to format the logo but no joy. Has anyone experienced this and any ideas on a fix gratefully received.

    Send it as html so the signature is an image source URL

  • I am having a problem when I try to select a photo or itunes song in Imovie or other programs. I get a window with grey lettering that says: "Open Itunes to populate this list" or "Open iphoto to see photos from your iPhoto library in this list.  I have t

    I am having a problem when I try to select a photo or itunes song in Imovie or other programs. I get a window with grey lettering that says: "Open Itunes to populate this list" or "Open iphoto to see photos from your iPhoto library in this list.  I have tried relaunching programs and nothing appears. Seemed to start happening a while back after one of my system upgrades.

    After a a lengthy conversation with Apple Tech. ($20), my problem seems to be solves. The Iphoto problem solved by trashing the plist file. The Itunes was more involved. We had to create a new Itunes folder and import the files into the new folder; and then import the playlists.

Maybe you are looking for

  • Game Center mixes up scores of multiple users (apple IDs)

    (New iPad, iOS6 - all apps are up to date) My son and I both have our own Apple ID. When we play games in Game Center, we use our OWN ACCOUNT. Still we get each other's scores & achievements. Example: Subway Surfers: I log on to GC using my credentia

  • Forum Glitch with copy and paste

    So I've discovered a glitch with the forums that I'm not sure if anyone else is experiencing... If you copy anything from the posting window while creating a new discussion or if you paste anything into this window, it causes a message to be displaye

  • Fetching column data for clicked DataGrid cell

    I am using a DataGrid and the number of columns are based on the data thus dynamic; columns are added at runtime.  I am trying to use the same ItemRenderer for all columns.  The one piece I can not seem to get to work is knowing which datafield to us

  • Error in delta process

    Hi people, I'm using the process delta, but it occurred one problem. When i execute the initialization of process delta, i extract 536 registers, but when i execute delta, i get 0 registers. I went to font (R3 ) and created one document to test the d

  • What will happen if i dont verify my apple id? will it be deleted?

    what will happen?