Print Page | Close Window

Dynamic Items

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=16723
Printed Date: 23 November 2024 at 7:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dynamic Items
Posted By: Letters
Subject: Dynamic Items
Date Posted: 19 May 2010 at 10:54am
I'm trying to make my Task Panel items dynamic. We're coding in Visual Dataflex.
We've adapted the code in the demo and the structure of the code is like this:
 
Object oReport_Control_Group is a cSigCJTaskPanelGroup
            Set psLabel to "Accounts KPIs"
            Set psImage to "Order.ico"
           
            Object oReportControlText_GroupItem is a cSigCJTaskPanelGroupItem
                Set psLabel to "Orders"
                Set psImage to "Order.ico"
               
                Procedure OnClick
                    Handle hoClient
                    Get Client_Id to hoClient
                    Send Activate_SigCjReportControlDemo_Text_View of hoClient
                End_Procedure
            End_Object
End_Object
 
Making that dynamic is a problem. You can't put the inner Object definition in a loop in VDF far as I can see. For shortcuts there's an "Add_Item" Procedure which allows me to add items dynamically, there doesn't seem to be an equivalent for Task Bars. The closest I can see is "ComAdd". That does work in that it creates a new item in the group - I've tried doing this in the "Private.Create" of the GroupItem. I do then get two items showing so potentially that could be put into a loop but the On_Click of the GroupItem is fired for both items and I can't see a way of telling which is which and defining the action for each.
 
VDF is not well used so I'm not sure if anyone can help but I've run out of ideas so it's worth a try.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net