CMI - DHTML



SilentCode
07-09-2005, 09:24 PM
Hi,

I'd like to create a component that has the ability to set the
"cmiNoHelpFiles" property of every component to "True". Does anyone know
where I can find out how to do this?

So far: I have an asp page with a button and button click handler. But I'm
missing the link on how to reference the configuration.

Alternatively I have a vbs file that is able to change the cmiNoHelpFiles
property of itself when I do a build (If only I could access the rest of the
configuration components):

Sub cmiOnBeginBuild(dwFlags)
Dim myInstances
Dim myInstance

Set myInstances = cmiThis.Configuration.Instances
For Each myInstance In myInstances
cmiThis.Properties("cmiNoHelpFiles").Value = 1
Next
End Sub

Motivation: TD has a global switch but I need to include some help files
which leaves me with the job of individually disabling help files for 99% of
components in my configuration.

Thanks.

SilentCode
07-09-2005, 09:24 PM
Hi,

Ok I see why the script doesn't work, Doh!
The line:
cmiThis.Properties("cmiNoHelpFiles").Value = 1
should be:
myInstance.Properties("cmiNoHelpFiles").Value = 1

I'm still interested in how you reference the configuration from the DHTML
page though.

Thanks.
"SilentCode" wrote:

> Hi,
>
> I'd like to create a component that has the ability to set the
> "cmiNoHelpFiles" property of every component to "True". Does anyone know
> where I can find out how to do this?
>
> So far: I have an asp page with a button and button click handler. But I'm
> missing the link on how to reference the configuration.
>
> Alternatively I have a vbs file that is able to change the cmiNoHelpFiles
> property of itself when I do a build (If only I could access the rest of the
> configuration components):
>
> Sub cmiOnBeginBuild(dwFlags)
> Dim myInstances
> Dim myInstance
>
> Set myInstances = cmiThis.Configuration.Instances
> For Each myInstance In myInstances
> cmiThis.Properties("cmiNoHelpFiles").Value = 1
> Next
> End Sub
>
> Motivation: TD has a global switch but I need to include some help files
> which leaves me with the job of individually disabling help files for 99% of
> components in my configuration.
>
> Thanks.

KM
07-09-2005, 09:24 PM
SilentCode,

Similar functionality is implemented for XPeTools macro component Settings page. You may want to take a look (www.xpefiles.com).
You will be able to turn on/off the "do not copy help files" flags for Configuraiton and all the components in it.

KM

> Hi,
>
> Ok I see why the script doesn't work, Doh!
> The line:
> cmiThis.Properties("cmiNoHelpFiles").Value = 1
> should be:
> myInstance.Properties("cmiNoHelpFiles").Value = 1
>
> I'm still interested in how you reference the configuration from the DHTML
> page though.
>
> Thanks.
> "SilentCode" wrote:
>
>> Hi,
>>
>> I'd like to create a component that has the ability to set the
>> "cmiNoHelpFiles" property of every component to "True". Does anyone know
>> where I can find out how to do this?
>>
>> So far: I have an asp page with a button and button click handler. But I'm
>> missing the link on how to reference the configuration.
>>
>> Alternatively I have a vbs file that is able to change the cmiNoHelpFiles
>> property of itself when I do a build (If only I could access the rest of the
>> configuration components):
>>
>> Sub cmiOnBeginBuild(dwFlags)
>> Dim myInstances
>> Dim myInstance
>>
>> Set myInstances = cmiThis.Configuration.Instances
>> For Each myInstance In myInstances
>> cmiThis.Properties("cmiNoHelpFiles").Value = 1
>> Next
>> End Sub
>>
>> Motivation: TD has a global switch but I need to include some help files
>> which leaves me with the job of individually disabling help files for 99% of
>> components in my configuration.
>>
>> Thanks.

SilentCode
07-09-2005, 09:24 PM
Thanks for the Tip :) FYI: It looks as if the
"cmiThis.Script.SetHostedWindow" function is not longer available in sp2 or
at least I got runtime errors saying that the interface/function didn't exist.

Also, for those that are interested you can perform a "select all" and
"copy" of the settings page of any given component and paste it into an HTML
editor to get a look at the scripts. This is a great source of information
as there's no documentation on the cmi interface.

"KM" wrote:

> SilentCode,
>
> Similar functionality is implemented for XPeTools macro component Settings page. You may want to take a look (www.xpefiles.com).
> You will be able to turn on/off the "do not copy help files" flags for Configuraiton and all the components in it.
>
> KM
>
> > Hi,
> >
> > Ok I see why the script doesn't work, Doh!
> > The line:
> > cmiThis.Properties("cmiNoHelpFiles").Value = 1
> > should be:
> > myInstance.Properties("cmiNoHelpFiles").Value = 1
> >
> > I'm still interested in how you reference the configuration from the DHTML
> > page though.
> >
> > Thanks.
> > "SilentCode" wrote:
> >
> >> Hi,
> >>
> >> I'd like to create a component that has the ability to set the
> >> "cmiNoHelpFiles" property of every component to "True". Does anyone know
> >> where I can find out how to do this?
> >>
> >> So far: I have an asp page with a button and button click handler. But I'm
> >> missing the link on how to reference the configuration.
> >>
> >> Alternatively I have a vbs file that is able to change the cmiNoHelpFiles
> >> property of itself when I do a build (If only I could access the rest of the
> >> configuration components):
> >>
> >> Sub cmiOnBeginBuild(dwFlags)
> >> Dim myInstances
> >> Dim myInstance
> >>
> >> Set myInstances = cmiThis.Configuration.Instances
> >> For Each myInstance In myInstances
> >> cmiThis.Properties("cmiNoHelpFiles").Value = 1
> >> Next
> >> End Sub
> >>
> >> Motivation: TD has a global switch but I need to include some help files
> >> which leaves me with the job of individually disabling help files for 99% of
> >> components in my configuration.
> >>
> >> Thanks.
>
>
>

KM
07-09-2005, 09:24 PM
SilentCode,

SetHostedWindow? I never saw and can't find it now on SP1.

Btw, one of the features of XPeTools (DependencyExplorer) is to be able to export CMI script and DHMTL page of any component from
database. :-)

--
Regards,
KM, BSquare Corp.


> Thanks for the Tip :) FYI: It looks as if the
> "cmiThis.Script.SetHostedWindow" function is not longer available in sp2 or
> at least I got runtime errors saying that the interface/function didn't exist.
>
> Also, for those that are interested you can perform a "select all" and
> "copy" of the settings page of any given component and paste it into an HTML
> editor to get a look at the scripts. This is a great source of information
> as there's no documentation on the cmi interface.
>
> "KM" wrote:
>
> > SilentCode,
> >
> > Similar functionality is implemented for XPeTools macro component Settings page. You may want to take a look (www.xpefiles.com).
> > You will be able to turn on/off the "do not copy help files" flags for Configuraiton and all the components in it.
> >
> > KM
> >
> > > Hi,
> > >
> > > Ok I see why the script doesn't work, Doh!
> > > The line:
> > > cmiThis.Properties("cmiNoHelpFiles").Value = 1
> > > should be:
> > > myInstance.Properties("cmiNoHelpFiles").Value = 1
> > >
> > > I'm still interested in how you reference the configuration from the DHTML
> > > page though.
> > >
> > > Thanks.
> > > "SilentCode" wrote:
> > >
> > >> Hi,
> > >>
> > >> I'd like to create a component that has the ability to set the
> > >> "cmiNoHelpFiles" property of every component to "True". Does anyone know
> > >> where I can find out how to do this?
> > >>
> > >> So far: I have an asp page with a button and button click handler. But I'm
> > >> missing the link on how to reference the configuration.
> > >>
> > >> Alternatively I have a vbs file that is able to change the cmiNoHelpFiles
> > >> property of itself when I do a build (If only I could access the rest of the
> > >> configuration components):
> > >>
> > >> Sub cmiOnBeginBuild(dwFlags)
> > >> Dim myInstances
> > >> Dim myInstance
> > >>
> > >> Set myInstances = cmiThis.Configuration.Instances
> > >> For Each myInstance In myInstances
> > >> cmiThis.Properties("cmiNoHelpFiles").Value = 1
> > >> Next
> > >> End Sub
> > >>
> > >> Motivation: TD has a global switch but I need to include some help files
> > >> which leaves me with the job of individually disabling help files for 99% of
> > >> components in my configuration.
> > >>
> > >> Thanks.
> >
> >
> >


CMI - DHTML