Custom app working with CRE 8.5, not working after migration to BOE XI

Hello,
I have this custom legacy app coming from way back in time, which -among other things- connects to a CRE 8.5 APS to get the list of available reports and the rights of a given user over those reports (view instances, request on demand, and so on). The logic of this custom application works quite well, though it's a bit cryptic (to me at least).
Now, I have the task of migrating the app from CRE 8.5 to BOE XI R2. The migration itself was rather easy, thanks to the migration wizards, and all the users, groups, permission settings, and everything else seems to have been properly replicated in the BOE XI CMS. However the custom app is not working so well after the migration: it can retrieve all the info about the reports and do pretty much the same it was doing before the migration, but when it comes to user's security settings (permissions to see or request a given report) the app just can't get the proper info.
To properly explain what's going on, I will have to go into detail with some lengthy description of the code.
Here it goes. This is the (partial) code that queries if a given user (UserID) has permission to view and/or request on demand a set of reports in the server:
Qry2 = "Select SI_ID, SI_NAME From CI_INFOOBJECTS"
  Qry2 = Qry2 & " Where SI_PROGID = " & "'" & "CrystalEnterprise.Folder" & "'" _
         & "and SI_PARENT_FOLDER in " & GetFirstLevelFolder(iStore, FolderProperty)
  Set varFolders = iStore.Query(Qry2)
  For Each Item In varFolders   'First level displayed folder
      Set infoSLevelFolders = GetSubfoldersByParentID(iStore, Item.ID) 'Second level displayed folders
      intFolderRightsCount = GetRightsCount(iStore, UserID, Item.ID)
      For Each infoSLevelFolder In infoSLevelFolders
           Set infoReports = GetReportsByFolderID(iStore, infoSLevelFolder.ID)
           For Each infoReport In infoReports
                  rsOutput.AddNew   'Set output recordset fields
                  rsOutput.Fields("FOLDERID") = Item.ID
                  rsOutput.Fields("FOLDERNAME") = Item.Title
(not sure why, but the message won't accept more text than the above... I will have to post a second message with the rest of it)
Edited by: Marcelo Rybertt on Mar 30, 2010 8:39 PM
Edited by: Marcelo Rybertt on Mar 30, 2010 8:49 PM

                  rsOutput.Fields("FOLDER2ID") = infoSLevelFolder.ID
                  rsOutput.Fields("FOLDERNAME2") = infoSLevelFolder.Title
                  rsOutput.Fields("REPORTID") = infoReport.ID
                  rsOutput.Fields("REPORTNAME") = infoReport.Title
                  If UserID = 0 Or intFolderRightsCount > 1 Then 'no this user or rights on the folder level
                     rsOutput.Fields("ROD") = False
                     rsOutput.Fields("VRI") = False
                  Else
                     intReportRightsCount = GetRightsCount(iStore, UserID, infoReport.ID)
                     If intReportRightsCount = 4 Then
                        rsOutput.Fields("ROD") = False
                        rsOutput.Fields("VRI") = True
                     ElseIf intReportRightsCount = 5 Then
                        rsOutput.Fields("ROD") = True
                        rsOutput.Fields("VRI") = False
                     ElseIf intReportRightsCount > 5 Then
                        rsOutput.Fields("ROD") = True
                        rsOutput.Fields("VRI") = True
                     Else
                        rsOutput.Fields("ROD") = False
                        rsOutput.Fields("VRI") = False
                     End If
                 End If
           Next
     Next
  Next
I have two scenarios, for the same user. The first scenario is the custom app working against a CRE 8.5 server. The second scenario is the same app against a BOE XI server, and the data in that server is the result of running the import wizard, using the 8.5 server as the source of data. The app was done with VB6, and the only difference between working against 8.5 or XI, is the set of dll's used in each case (code compiles flawlessly with either set of libraries).
ROD stands for Request On Demand. True means the user can ROD. False, the user can't.
VRI stands for View Report Instance. Same deal.
intFolderRightsCount and intReportRightsCount are both calculated from the GetRightsCount function, like this:
Set iReports = iStore.Query("Select SI_ID From CI_INFOOBJECTS Where SI_ID=" & REPORTID)
u2026
Set principal = iReport.SecurityInfo.AnyPrincipal(UserID)
u2026
GetRightsCount = principal.Rights.Count
(again, same issue with the message... need to continue this in a third -and last I hope- post)

Similar Messages

  • Adobe flash player 10 works with Chrome but will not work with Int. explorer

    Adobe Flash playaer 10 works with Chrome but when I try to use it in Internet Explorer it
    says I do not have it installed but I do.

    I'm sorry but I couldn't find publish settings under file in explorer.  Is file in another place.  I did input file in my search  and found change temporary internet  file settings.  Under programs, manage add ons.  Scrolled to "shock wave flash object under Adobe  and found it was disabled.  Changed to enabled and now it works fine.  Thanks for your help.  
    Dan Simonelli

  • Airport Express worked with previous ADSL modem, not working with new one

    hello all.
    maybe the majority of you people won't be able to help me, since i am in Brazil.
    this is the story:
    for the last 4 years i was a subscriber of the Speedy ADSL provider (in conjunction with the Terra content provider). the Sppedy service is part of the Telefonica telephone company and uses the regular telephone infrastructure to provide the ADSL signal thru telephone lines.
    approximately 2 years ago i bought an Airport Express and set it up with the ADSL modem that Speedy provided to me. configuration was a breeze and it worked flawlessly since then.
    as of last thursday (april 7th) i became a subscriber of the Ajato ADSL provider. the Ajato company is part of the TVA (cable tv) company and uses the TVA cable tv infrastructure to provide the ADSL signal.
    the problem is: when i connect the Cisco DPC3000 ADSL modem to my Macbook via ethernet cable, i can surf the internet with Ajato with no problems. but when i connect the modem to my Airport Express (even though i have reset AE in order to clear the previous Speedy/Terra configuration), i get no internet in my home wireless network.
    i know you guys don't have Ajato there, of course. but i suppose some of you might have faced similar problems in similar cable ADSL environments.
    this said, any kind of help or hint is greatly appreciated.
    Message was edited by: Amaury Vargas: typos

    Amaury Vargas wrote:
    when i connect the Cisco DPC3000 ADSL modem to my Macbook via ethernet cable, i can surf the internet with Ajato with no problems.
    First that Cisco DPC3000 is a cable modem, not a ADSL modem. You probably don't need the DSL configuration that you had before.
    when i connect the modem to my Airport Express (even though i have reset AE in order to clear the previous Speedy/Terra configuration), i get no internet in my home wireless network.
    How did you "reset" the AE? How is it configured now? You probably need a setting of "Connect Using:" "Ethernet", rather than the "PPPoE" setting you may have had before.
    If everything else looks good, it's common to have to reset a modem when switching what device is connected to it. Try powering down the modem for a few minutes. If it has a reset switch, press that.

  • .click on row works with php table - does not work with javascript table.

    Howdy,
    I've run into a very interesting problem today, and I hope you'll be able to help me.
    I have a page in which the top is php to read a table from the server, and post the table as the html page is being built.
    The data come up as a table, and each row is clickable, that click moving the user to a different page, based on the row clicked.
    Here are the relevant parts of the php code:
    <?php
    echo "<table id='patienttable' cellpadding=5px border=0 font-size=16px>";
    echo "<tr><th width='30'>"."ID#"."</th><th width='100'>"."Last Name"."</th><th width='100'>"."First Name"."</th><th width='100'>".
    "Middle Name"."</th><th width='80'>"."DOB"."</th><th width='50'>"."Zip"."</th><th width='50'>"."Gender"."</th><th width='100'>".
    "Phone"."</th></tr>";
    while ($row = mysqli_fetch_array($result))
    blah blah blah
    echo "<tr><td id='localid'>".$localid. "</td><td>".$lastname. "</td><td>".$firstname. "</td><td>".$middlename."</td><td>".$dob."</td><td>".$physzip. "</td><td>".$gender."</td><td>".$phone1.       "</td></tr>";
      echo "</table>";
    ?>
    And here is the code to click on a row:
    $("#patienttable tr").click(function() {
           var passthis = $(this).find("#localid").html();
           $.post("php/setsessionvariable.php",
                  {sessionval: passthis},
         function(e) {window.location.href = "root.php"}
    EVERYTHING works great - no problems - working now for about 2 months.
    Today I started to build something similar, BUT! I cannot read from the database at the top of the page, I must do an ajax query, call the db, and post the data in a table;
    Here is the boring, fairly straight-forward javascript code:
    $.ajax({
        type: "POST",
        url: "findpatientbackend.php",
        data: {letterslastname: lastname},
        dataType : 'json',
        success: function(result) {
      $("#div1").html("");
            if(result.length >= 1)
       {var output = "";
             $("div1").html("<table id='findtable'>");
              $.each(result, function(index, value) {
                                                     output += "<tr><td width='100px'></td><td id='localid' width='100px'>"
                 + value.localid + "</td><td width='100px'>"
                 + value.lastname + "</td><td width='100px'>"
                 + value.firstname + "</td><td width='100px'>"
                 + value.middlename + "</td><td width='100px'>"
                 + value.dob + "</td></tr>";
                $("#div1").html(output);
             $("div1").html("</table>");  
        error : function() { alert("error on return"); }
    And here is the click row code, almost EXACTLY like the one above:
    $("#findtable tr").click(function() {
           var passthis = $(this).find("#localid").html();
           $.post("php/setsessionvariable.php",
                  {sessionval: passthis},
         function(e) {window.location.href = '../root.php'}
    All the "stuff" loaded onto the page just fine, BUT, absolutely nothing happens when I click a row.
    Playing around this afternoon, I did a "View Source" on both pages, and saw something VERY interesting;
    1 - The table written by PHP is present, can be seen, and therefore is "clickable" to the jquery .click function.
    2 - The table written by javascript is INVISIBLE! I cannot see it in the source view (but I can see it on the screen) and therefore the .click function can't see it either.
    Questions:
    1. How can I make the table written in javascript "clickable" - how can I make the javascript table "visible"?
    2. Could it be the use of ".html" to post the table to the div? Is there another way?
    And again, I thank you in advance for any help.

    I found the solution to my problem, and perhaps my comments here will help others.
    Thinking a bit more, I wrote a separate javascript routine that created a table, allowed it to be styled, and allowed it to be clickable.
    Here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" type="text/javascript"></script>
    <style>
    #findtable {
    width:200px;
    background-color:#CFD3FE;
    margin:10px auto;
    text-align:center;}
    </style>
    <body>
    <div id="puttablehere"></div>
    <script>
    $(document).ready(function () {
    var output = "<table id='findtable'>";
    for (var i = 0; i<15; i++) {output += "<tr><td width='100px'>X</td><td id='localid' width='100px'>X</td></tr>";}
    output += "</table>";
    $("#puttablehere").html(output);
    $("#findtable tr").click(function(e) { alert("it works!"); });
    </script>
    </body>
    </html>
    The initial code I posted was creating the table the wrong way.
    You have to create the WHOLE table at the same time, and post it all at once.
    The code above does that.
    My learning points are:
    1. To create a table in javascript, and post it with a $("#puttablehere").html(output); call, you must put the ENTIRE table into that single string variable called "output" (or whatever you want to call it).
    2. Everytime you call a jqeury .html function like this: ---("#puttablehere").html(output); -- It COMPLETELY over-writes the whole div/tr/td block that it is pointed at.
    3. If you create a table in javascript (client side) you cannot see it with "View Source" - because what is posted in the table is AFTER the DOM is loaded.
    Creating a table with php server side - you CAN see, because it is posted with the DOM.
    So I thank you for your ideas, and I hope this may help another noob, such as myself, in the future.
    Adios!

  • Hardware test not working with Yosemite, External Display not working with Yosemite

    What's wrong with Yosemite developers....
    i can't connect my macbook pro with my tv and if i wanna start a hardware test, it doesn't starts it....
    please help as apple *****!!!

    It would be helpful if you indicated the exact model/year Macbook that you have.
    Ciao.

  • Regarding after updating my iphone4 with itunes in laptop after completing,when iam trying to use apps on my iphone4 they are not working

    Hi everybody,
    From last week when iam syncing my iphone with my laptop and updating songs or apps iam facing some problems.
    1) While iam trying to update my iphone with itunes for updating songs.First in library in itunes i will remove old songs and will update new songs,then after syncing with itunes my iphone4 it must show in music only new songs not old songs.but for me both mix it showing for me old and new songs.I tried in manual option also then also it showing same mix songs.please tell me how to over come this problem.I tried my removing update backup also then also it is not showing any advantage in it.
    2) Another problem is while iam updating my iphone4 with itunes it automatically sync the apps also but after completing the update when iam trying to use apps in my iphone they are not working.
    Please help me how to solve from these problems.

    No NAS other than an Apple one includes native support for AFP. They all use an open source package called Netatalk that is junk. Many years ago Apple deprecated the old security modules that Netatalk uses.
    The easiest solution is to hack up Lion so that it will connect with the old security protocol. Do a search for "lion dhx2" or something like that. Another option is to update your NAS to a version of Netatalk that includes support for DHX2. That is easier said than done. Netatlk isn't as "open" as other open source packages.

  • My  iphone 3gs with version 4.0 not works for apple  TV should i need to download  any app or any other thng

    my  iphone 3gs with version 4.0 not works for apple  TV  what should  i do?

    Welcome to the Apple community.
    You should update your iPhone software.

  • My music app on my iphone 5 is not working properly since I downloaded ios7.

    The music app on my iphone 5 is not working properly since I downloaded ios7.
    Sometimes I start to use the music app and then part way though a track it stops. I try to re-start it with no joy. I'm also finding the touch screen is less responsive. Can any help me fix the issue or will I need to take it into the store?

    Removing the SIM has no affect on the power of the phone. It is just the part that facilitates connecting to your carrier. Try holding the sleep/wake and home buttons together until you see the Apple logo on the screen and then release the buttons. The phone should reboot. You may need to hold the buttons together for 15-30 seconds.

  • Itunes, App store, Facebook App and Facebook on Safari are not working...can not connect to app store is the message I get.

    Since Sunday I can not access Itunes or App store with my Ipad 2. I can not use the facebook app, it will log in, but will not load up the newsfeed, I can not use it in Safari either. Also can not use apps like Draw Something.  The same thing has happened to my husbands Ipad. On occasion it will allow the app store or itunes to work. Any ideas?

    I have the itunes and app store working now, but my FB app and FB on Safari will not work and other websites are not working very well on Safari...any ideas?

  • What if sync with new computer does not work. logical connection to old with WindowsXP, 32 bit version of iTunes. New is Windows7 with 64bit version

    What if sync with new computer does not work?
    logical connection to old with WindowsXP, 32 bit version of iTunes.
    New is Windows7 with 64bit version

    Syncing to a new iTunes library or computer will erase your iPod. Only if you back up your iPod manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your iPod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in iTunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved: http://support.apple.com/kb/HT4946
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device
    If your iPod can't be recognized by Windows, try these tips: iOS: Device not recognized in iTunes for Windows

  • TS1702 If I purchase an app from iTunes and it does not work or does not meet expectations, is there a way to be refunded the cost of the app?

    If I purchase an app from iTunes and it does not work properly or meet expectations, is there a way to receive refund for the cost of the app?

    First contact the Developer of the App...
    If no joy...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    YEAY!
    I just got the solution (that worked for me, anyway) from a Sony support rep. No PC or VMWare needed.
    OK, you've installed Sony eBook Library v3, and Adobe Digital editions, you've set up your acocunts and authorized your computer on both of them, and you've authorized your Reader with the Sony Library application.
    You go to the public library ebook download page, either through the Sony Library or just through a bookmark.
    You check out a book, and open it in Adobe Digital Editions, which still won't recognize your Reader.
    BUT, in the Sony Library app, you can now click "File, Import.." and go find the pdf you downloaded with the Adobe app.
    On my Mac, it was in ~/Documents/Digital Editions
    Import it, and drag it to your Reader.
    The first time you do this, it will ask you to authorize the Reader with your Adobe ID.
    Worked like a charm.

  • I bought this iPhone from Apple Retail Store for the full amount, but  it does not work with my SIM card only works with AT&T

    Hello,
    I have an iPhone 4S 32Gb White AT&T, product part No. MC921LL/A, Serial No. C39GMLPWDTDC
    I bought this iPhone from Apple Retail Store (from Fifth Avenue, NY) for the full amount. Now it does not work with my SIM card only works with AT&T. I restored the phone several times, but I have not received "Congratulations your iPhone has been unlocked". Please activate my iPhone to work with different SIM cards
    Thanks,
    Best Wishes

    When did you buy it?
    Apple did not begin selling an unlocked version of the iPhone 4S in the US until 11/11/11. I believe it went on sale only through the online store at that time. I'm not sure if it's available at retail yet.
    What you purchased was a phone without a contract commitment. It is still locked to AT&T. AT&T will NOT unlock iPhones for any reason.  Return it and get your money back, then use that to purchase an unlocked phone.

  • How to download versions of apps compatible with OSX 10.7 not the ones updated for 10.9

    how to download versions of apps compatible with OSX 10.7 not the ones updated for 10.9?
    I'm trying to download iLife and iWork apps for my MacBook. For example: The GarageBand app will not download because it says it is compatible with 10.9. I have 10.7 and cannot update to 10.9 because I'm on a 13in. Late 2007 MacBook. Any suggestions?

    Click here and follow the instructions. If they’re not applicable, you can’t download them and need to install them from a DVD.
    (108988)

  • I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but th

    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

    If you are searching the registry, check for the "Senforce" string. It should be at HKLM\Software\Senforce
    Try running the install program for the ZSC with the following command line:
    setup.exe /V"STUNINSTALL=1"
    If you've specified an uninstall password, try this one instead:
    setup.exe /V"STUNINSTALL=1 STUIP=password"" (please note the double quote at the end)
    Let me know if that helped you.
    Daniel
    >>>
    From: Andy_DeWees<[email protected] du>
    To:novell.support.zenworks.endpoint-security-management
    Date: 2/5/2009 12:52 PM
    Subject: I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but the login prompt did not appearfor ESM client or the icon was not in the systray. Everything seems towork, besides at times (a couple times today) it terminates his ethernetcard/connection. I would re-image his computer but he has severalapplications and
    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

Maybe you are looking for

  • Can mac book air run final cut

    thinking of purchasing 13 inch Macbook air.  Will it run finalcut ?

  • REP-0159 when run_product from oracle database

    Hi, I can`t open report from oracle database. I have this products (Windows NT 4): Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production With the Partitioning option JServer Release 8.1.7.0.0 - Production Report Builder 6.0.8.8.3 ORACLE Server R

  • Windows Media Player stopped working

    After the install of After Effects CS4, windows media player no longer works. I'm thinking it has something to do with Adobe Media Player now on the system. Anyone have a solution for this? Thank you for your time.

  • Google-earth crash

    Hello I experiencing the following issue for google-earth 7.1.4.1529-1 1. $ google-earth [0610/180031:ERROR:net_util.cc(2195)] Not implemented reached in bool net::HaveOnlyLoopbackAddresses() libGL error: No matching fbConfigs or visuals found [0610/

  • HT201322 changed apple id and password now all hiden purches are gone

    i changed my apple ID yesterday and Password now all hidden purchased music are gone