Results 1 to 2 of 2

Thread: Generating menu after updating to latest CM fails

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Kungsbacka, Sweden
    Posts
    638

    Exclamation Generating menu after updating to latest CM fails

    Strange behaviour after updating to latest CM (DataFlex 18.2 and latest build of CM, from 17.1 and the latest rev of Electos)

    The code below, is supposed to generate ,40,1 when I click on one menu item and ,44,1 for another. But now after updating it generates ,1, for both of the menu items
    I suspect there is something with the Get_PageLevel but I just cant figure out what it could be.

    The Array that is filled is used to check if i should expand a subtree of menus or not.

    I am totaly stuck with this. Any hint would be greatly appreciated.

    Is there something that has changed between the versions?

    I have made sure to replace the Electos includes etc to match the new naming conventions etc.

    Code:
        Public Sub MenuPrintHeader(sObjectname)
      
      ' Creates an array that contains the root of id's from the current page to the top, need to initialize the tree.
      dim iLevel, iTopLevel, iMenuProductGroupID
      iMenuItems = 0 
      iMenuProductGroupID = Request("ProductGroupId")
      If (iMenuProductGroupID = "") then
       iMenuProductGroupID = 0
      End If
    
      iTopLevel   = oPublisher.call("Get_PageLevel", iOrrigionalPageID, iMenuProductGroupID)
      sArray      = "1,"
      For iLevel = 1 to iTopLevel
       sArray = oPublisher.call("Get_LevelPageID", iOrrigionalPageID, iLevel, iMenuProductGroupID) & "," &  sArray
      next
      sArray = "," & sArray
     
        End Sub
    Last edited by MrHalland; 12-Jul-2016 at 04:58 AM. Reason: The result was enterd incorrectly
    Martin Arvidsson, Data Martin i Kungsbacka AB

    I have six locks on my door all in a row. When I go out, I lock every other one. I figure no matter how long somebody stands there picking the locks, they are always locking three.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •