Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to change method dimension date categories ?

Status
Not open for further replies.

firdana

MIS
Apr 23, 2012
4
ID
can Anyone help me, how to change method dimension date categories with date value ??

I have cognos script below

Set objPPRep = CreateObject("CognosPowerPlay.Report") _
objPPRep.Open( "D:\data\consumer.ppx" )
objPPRep.DimensionLine.Item("Products").Change("Microwave")
objPPRep.SaveAs "D:\Data\Consumer_Alltables.asc",3
Set objPPRep = Nothing
End Sub

then, i add script to change method dimension date categories with date value

objPPRep.DimensionLine.Item("dates").Change("2012/04/30")

or

objPPRep.DimensionLine.Item("dates").Change("Current day")

But this scripts doesn't work, can anyone help ??
 
In my experience, the fields are case-sensitive and format-sensitive.

soi là, soi carré
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top