metasfresh / metasfresh-webui-api-legacy

metasfresh webui API server
GNU General Public License v3.0
30 stars 32 forks source link

Extend Attribute / Label Feature to support tab link columns / Foreign Key #870

Closed metasnw closed 6 years ago

metasnw commented 6 years ago

Is this a bug or feature request?

FR

What is the current behavior?

the label feature uses the key column of the table where its configured to link the subtab containing the labels with the current record

What is the expected or desired behavior?

make the feature using the key in the link column instead

Example

Original:

Needed:

metasnw commented 6 years ago

example

tried leaving parent column empty and putting c_bpartner_id image

Problem: shows the attributes of the partner having c_bpartner_id = ad_user_id BUT not the one from ad_user.c_bpartner_id so he metasfresh is ignoring the link column effectively

teosarca commented 6 years ago

note to IT: do regression testing on attributes (including filtering)

teosarca commented 6 years ago

@metasnw IMPORTANT, please set the Parent Column: image

metasnw commented 6 years ago

Results of IT tested on branch system 5.46.1-8472+master , not on IT:

OK: filter for attribute in partner window OK: filter for single attribute in user window OK: filter for multiple values of the same attribute in user window OK: filter for multiple values of different attribute in user window OK: combining with other filter field type string

Important : Only works if you follow teos advice https://github.com/metasfresh/metasfresh-webui-api/issues/870#issuecomment-367993823