we found Mandatory logic to be implemented when discussed about https://idempiere.atlassian.net/browse/IDEMPIERE-1963 and https://idempiere.atlassian.net/browse/IDEMPIERE-1972
reason: we met in - we need to denied for user make empty e.g. document type dropdown in this case.
I finish will mandatoryness as advice. maybe i misunderstand at something
below is my logic:
+ add field mandatory to infoColumn
+ display field mandatory normal in parameter panel (without red color and *)
+ when click query button, check mandatory, if not input, display in red color and not query
please confirm it
add logic check mandatory when user enter at parameter field
, I think it could be better to implement MandatoryLogic instead of IsMandatory (similar to how the mandatory logic is implemented on process parameters).
Also the display logic of the new field must be visible just if is a query criteria (similar to the display logic I added to the default logic on
I was not able to integrate cleanly the IDEMPIERE-1973-para-field.patch - but integrating manually and after deleting a variable that didn't exist, in my tests noticed:
the label of mandatory query criteria is not red until you push the refresh button, I think better must be red when starting the window
the label then turns correctly to black if the criteria is filled
many thanks for review.
will change to logic mandatory.
about comment: the label of mandatory query criteria is not red until you push the refresh button, I think better must be red when starting the window
it's by same issue in https://idempiere.atlassian.net/browse/IDEMPIERE-1979
other solution is: still display mandatory field in red, but not check in case auto requery.
this patch is depend to 1979, please apply 1979