hi,
Did you try to open the class in different
systems ?
We has a same kinda error some time back
!.
Yes deleting the syslastvalue some times help it
! did you try that ??
Aks
-----Original Message-----
From: Deshpande, Harry [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 9:52 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [development-axapta] Error messages while opening a classhisince the error refers to a container, there may be a problem with syslastvalue. Did u try deleting the record in syslastvalue or change version no of the report?regardsharry-----Original Message-----Dear Friends,
From: panda arabinda [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 2:40 PM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Error messages while opening a class
I have created the class PurchaseOrderStatusReport for
running a report which takes the input of month
and year .previously it was running fine and opening
but after few days when i open the class its not
opening and give the error
Message (23:53:42)
Bad container.
Object 'ReportRun' could not be created
But a5t the same time the other classes similar to
this type of class works fine.
There is no compilation error in this running fine
when i first created but i dont know what happen to
the system and why its not opening now the source code
for this is as follows.
////////////
public class PurchaseOrderStatusReport extends
RunBaseReport
{
MonthsOfYear mname;
Yr yrname;
DialogField dfmonth;
DialogField dfyear;
#DEFINE.CurrentVersion(1)
#LOCALMACRO.CurrentList
mname
yrname
#ENDMACRO
}
//////////////////////
Object Dialog()
{
DialogRunbase dialog = super();
dfmonth =
dialog.addFieldValue(typeid(MonthsOfYear),mname,"Month","Month");
dfyear =
dialog.addFieldValue(typeid(Yr),yrname,"Year","Year");
return dialog;
}
/////////////
public boolean getFromDialog()
{
boolean ret;
ret = super();
mname = dfmonth.value();
yrname = dfyear.value();
return ret;
}
////////////
public identifiername lastValueElementName()
{
return reportStr(EquipmentPurchaseOrderStatusReport);
}
///////////
MonthsOfYear parmMonthName(MonthsOfYear _mName =
mname)
{
;
mname = _mName;
return mname;
}
//////
Yr parmYear(Yr _yrName = yrname)
{
;
yrname = _YrName;
return yrname;
}
///////
static void main(Args args)
{
PurchaseOrderStatusReport purchaseOrderStatusReport;
;
purchaseOrderStatusReport = new
PurchaseOrderStatusReport();
if(purchaseOrderStatusReport.prompt())
{
purchaseOrderStatusReport.run();
}
}
///////////////
In this code there is no compilation error but on the
run time its not opening and shows the above
messages.I am not able to find out the reason of this
problem.
If anybody has any suggestion/solution then kindly
help me.
Thanks in Advance
Regards,
Arabinda
.
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.