Hello

Something similar has been already done in several windows like "Sales
Invoices" where for example lines cannot be modified when the invoice has
been posted. You have more details in the issue that fixes this:
https://issues.openbravo.com/view.php?id=11555 I have been investigating how
this has been done and is not using the "Stored in session" attribute of the
column. Sorry Siva for the confusion. I remember now that this was the first
idea to fix issue 11555 but it did not work. The final solution was to
create a new auxiliary input in the lines tab called "processed" that
captured the value of the processed field of the header.

Have a look to the changeset in issue 11555 to see all the details but here
are the high level steps to fix 12387

1.- Go to Application Dictionary || setup || Auxiliary input  And create a
new record Named "Processed", Tab "Salary Category" and in validation code
create a new SQL sentence to capture the Processed value of the header. For
example, in invoices lines to capture the processed field of the header the
validation code is:
      @SQL=SELECT PROCESSED FROM C_INVOICE WHERE C_INVOICE_ID =
@C_INVOICE_ID@
2.- Go to the field Quantity and set @proces...@='Y' in Read Only Logic &
Save it
3.- Compile the window and test the fix

Hope this finally fixes the issue ;-)

Regards

Adrián.


2010/4/6 sivaraman <[email protected]>

> Hi,
>
> In order to resolve #12387, I need Quantity field to be displayed as Read
> Only in Salary Category window when Production Run is processed. However I
> have added the required Read Only Logic to its corresponding column, it is
> not displayed in disabled mode. Followings are the steps that I followed.
>
> 1. Log on to Openbravo
> 2. Change user role to System Administrator
> 3. Go to Application Dictionary || Windows, Tabs, and Fields  ||  Window
> 4. Search for 'Work Effort' and Select it
> 5. Go to Application Dictionary || Windows, Tabs, and Fields  ||  Window
>  >>  Tab
> 6. Select 'Work Effort'
> 7. Go to Application Dictionary || Windows, Tabs, and Fields  ||  Window
>  >>  Tab  >>  Field
> 8. Select 'Processed'
> 9. By clicking Column link, Go to Application Dictionary || Tables and
> Columns  ||  Table  >>  Column
> 10. Mark 'Stored in Session' & Save it
> 11. Go back to Application Dictionary || Windows, Tabs, and Fields  ||
>  Window  >>  Tab  >>  Field
> 12. Go to Application Dictionary || Windows, Tabs, and Fields  ||  Window
>  >>  Tab
> 13. Select 'Salary category'
> 14. Go to Application Dictionary || Windows, Tabs, and Fields  ||  Window
>  >>  Tab  >>  Field
> 15. Select 'Quantity'
> 16. By clicking Column link, Go to Application Dictionary || Tables and
> Columns  ||  Table  >>  Column
> 17. Set @proces...@='Y' in Read Only Logic & Save it
> 18. Execute 'smartbuild' ant task
> 19. Restart server
>
> Steps to test
> 1. Log on to Openbravo
> 2. Change user role to Openbravo Admin
> 3. Go to Production Management || Transactions || Work Effort  ||  Work
> Effort
> 4. Create new record
> 5. Go to Production Management || Transactions || Work Effort  ||  Work
> Effort  >>  Production Run
> 6. Create new record
> 7. Go to Production Management || Transactions || Work Effort  ||  Work
> Effort  >>  Production Run  >>  Salary Category
> 8. Go back to Production Management || Transactions || Work Effort  ||
>  Work Effort  >>  Production Run
> 9. Click Create Standards
> 1o. Go back to Production Management || Transactions || Work Effort  ||
>  Work Effort
> 11. Validate it
> 12. Again, Go to Production Management || Transactions || Work Effort  ||
>  Work Effort  >>  Production Run  >>  Salary Category
> 13. Verify If Quantity is disabled as per the read only logic
>
> As per my observation, Read only logic for Tab Level 1's fields is not
> allowing any column that are associated with Header or Tab Level 0 tables.
>
> Kindly let me know your concerns / comments in oder to step forward.
>
> Regards,
> Siva
>



-- 
Adrián Romero
[email protected]

Openbravo, S. L.
http://www.openbravo.com
Opening ERP's future!

Address
Ed. Slan, Calle J, Landaben,
Pamplona, 31012, Spain

Mailing Address
PO Box 5117,
Pamplona, 31010, Spain
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-development

Reply via email to