i want to add set property dynamically in to the database table tabDefaultValue for that i have written following code ab = Document(‘tabDefaultValue’) ab.parentfield=‘system_default’ ab.parenttype=‘Control Panel’ ab.parent=self.doc.name ab.defkey=‘Store’ ab.defvalue = self.doc.store ab.save(new=1)
But it gives an error (1146, “Table ‘mtn_erp.tabtabDefaultValue’ doesn’t exist”) So please help me to solve this problem.
Thanx & Regards Rohit
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
On 22-Mar-2013, at 12:39 PM, Rohit Waghchaure wrote:
Hello sir
i want to add set property dynamically in to the database table tabDefaultValue for that i have written following code ab = Document('tabDefaultValue') ab.parentfield='system_default' ab.parenttype='Control Panel' ab.parent=self.doc.name ab.defkey='Store' ab.defvalue = self.doc.store ab.save(new=1)
But it gives an error (1146, "Table 'mtn_erp.tabtabDefaultValue' doesn't exist") So please help me to solve this problem.
Thanx & Regards Rohit
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
On 22-Mar-2013, at 12:39 PM, Rohit Waghchaure wrote:
Hello sir
i want to add set property dynamically in to the database table tabDefaultValue for that i have written following code ab = Document('tabDefaultValue') ab.parentfield='system_default' ab.parenttype='Control Panel' ab.parent=self.doc.name ab.defkey='Store' ab.defvalue = self.doc.store ab.save(new=1)
But it gives an error (1146, "Table 'mtn_erp.tabtabDefaultValue' doesn't exist") So please help me to solve this problem.
Thanx & Regards Rohit
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
On 22-Mar-2013, at 12:39 PM, Rohit Waghchaure wrote:
Hello sir
i want to add set property dynamically in to the database table tabDefaultValue for that i have written following code ab = Document('tabDefaultValue') ab.parentfield='system_default' ab.parenttype='Control Panel' ab.parent=self.doc.name ab.defkey='Store' ab.defvalue = self.doc.store ab.save(new=1)
But it gives an error (1146, "Table 'mtn_erp.tabtabDefaultValue' doesn't exist") So please help me to solve this problem.
Thanx & Regards Rohit
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.