Notifications
Announcements
No record found.
Hi,
I have created New/Delete Command buttons under a new TabPage with 'ToolBar & List' Pattern. but that button getting disabled.
I have tried to write COC on init & updateDesign method on CustParameters form to change some standard fuctionality if any but buttons are still disabled.
Thanks,
Harshit
Hi Harshit,
Have you set the DataSource property on the action pane where the add and delete button added?
Have you added the command property for new and delete button?
Is that Datasource allow edit property set to, yes?
Girish S.
Hi, You can check allowCreate and allowDelete property of Datasource in CustParameter form.
Hi Girish,
I gave the dataSource- Salesparameters to Action Pane bcz I have added grid which have custom fields from SalesParameters DataSource. Also I have already given Command property to New & Delete Buttons (New & DeleteRecord) & allowEdit Property set to yes only in Form Extension.
But that AllowDelete & AllowCreate Property set to no.
If you set the AllowDelete and AllowCreate property to No - Add and Delete button will be disabled only.
You need to set that property to Yes on the DataSource level.
Hi Mohit,
Yes alowCreate & allowDelete Property set to no, I have wrote COC on init method, using this buttons gets enabled. But now I am able to create only one record. If I am creating 2nd record then its throwing error 'Record already exist' & if I am deleting that first record that already exist then it throwing error 'cannot delete Transaction'.
[ExtensionOf(formStr(CustParameters))] final class HSHTCustParametersForm_Extension { public void init() { next init(); SalesParameters_ds.allowCreate(true); SalesParameters_ds.allowDelete(true); } }
What is the DataSource you used for the tab page?
In which table you have created new fields?
What is the index on the table?
I cannot change directly bcz working with formextension, using form COC init but getting errros which I specified in above reply.
I have added my fields on Salesparameters Table which is the primary datasource of CustParameters form .& I have given Salesparameters as datasource on Tab page.
& index on Salesparameters is key field which has ParametersKey as EDT.
I think SalesParameter table cannot have more than one record. As you see you have key field as index on the table it won't allow you create more than one record in a table.
One option will be creating a new table and add that table to form DataSource. If you create custom table you can create more than one records.
Parameter tables have can have only one record per legal entity. You can create custom table and add it in CustParameters form. We have done the same.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader