Jan I never knew you could create Buttons on the fly, would that get messy if the user is allowed to create buttons at will?
Thanks Marc From: jan johansen Sent: Friday, July 23, 2010 2:07 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Get component ID Marc, You should be able to do what you want but slightly differenent way. You have the ability to create "objects" on the fly. So on each row clik of your grid, create the button you want with the properties you want. Jan -----Original Message----- From: "MDRD" <[email protected]> To: [email protected] (RBASE-L Mailing List) Date: Fri, 23 Jul 2010 13:53:01 -0500 Subject: [RBASE-L] - Re: Get component ID Hi Mike I hope I can explain this.... I have a form with 50 buttons that we use to enter charges on a customers account, The component ID and Button names are the same at this point. I have a Custom Form Action that gets the Button name, then matches that button name with a look up code in another table. If a charge codes matched the button name a charge is entered into the invoice. We allow the user can rename the button names so they can match a lookup code that they have in the charge code table. I allow 4 different versions for the button names. If I have a button named ABC1, with a Component ID of ABC1, the user can rename the button to a current charge code in their DB, lets say version 1 would be SP123 which is a spark plug. Now, they can also rename that ABC1 button to Q1040 for version 2 which = Quaker state 10/40 oil... and so on. When the user clicks that button the CFA looks up the current name of the button matches it to a charge code .... and we insert the charge.. Everything works great so far, now the problem I have a grid where the user types in the Original button name in 1 column, then the new button names in Ver1, Ver2, Ver1 and Ver4. This grid layout to rename the buttons makes it hard for the user to manage the button names. All the buttons pop up and they have to scroll down to find the original button name for the button they want to modify. So, I would love to be able to Right click on each button and let the user modify and add new button names for the different versions but that is not possible. So, my second thought was to have an Edit ckbox, if that box is checked and if I could "read" the component ID of a button I could pull up a form with just that 1 row showing so they could modify that button. Really everything is very slick up to the point on how to Edit the button names. Thanks Marc -------------------------------------------------- From: "Mike Byerley" <[email protected]> Sent: Friday, July 23, 2010 1:05 PM To: "RBASE-L Mailing List" <[email protected]> Subject: [RBASE-L] - Re: Get component ID > Would you care to rephrase the question? The button that is being > clicked, in its' own eep, you would already know its' componentID at > design-time, so you should be able to do whatever you want with it in the > EEP. Also, to get the property of the button that contains the > componentID, you would need the ComponentID for use in the GetProperty > command that would obtain it, so it's a non-starter (what you are asking) > as I understand it. > > > > > ----- Original Message ----- > From: "MDRD" <[email protected]> > To: "RBASE-L Mailing List" <[email protected]> > Sent: Friday, July 23, 2010 1:47 PM > Subject: [RBASE-L] - Get component ID > > > > I need to get component ID of a Button when it is clicked. > I thought I knew how to do this but I can't seem to figure it out today? > > I looked at RBTI variables and Getproperty commands but still can't > remember how to do this. > > Thanks > Marc > >

