field group containing fieldtype select and using master field

More
7 years 4 months ago - 7 years 4 months ago #67607 by prathumwan
Hi there,
if using a field group containing fields with field type select and using master field within the the same group works fine. If the master field is outside the group it works too. When using field group with "allow multiple values=yes" and master field outside the group it works only on the first element of the group, all following lose focus and show "please select: %masterfield%".

Tested on version J!3.7 fc3.1.1 and fc3.3.0-dev

Attachments:
Last edit: 7 years 4 months ago by ggppdk. Reason: added attachment

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #67618 by ggppdk
Hello

it is not bug , it is designed to work per value of the field group

can you describe the usage scenario for your case ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #67619 by prathumwan
Hi,
thanks for help.
I was surprised myself it worked so far, but tried because the masterfields where selectable as an option.

The scenario is like this:
Provincial administrative units having: provinces, districts, subdistricts

Local governmental units having: cities, city districts, city subdisricts
Cities can be allocated to one or more of the provincial units (bounderies overlapping)

Roads segmented with links to: junctions, crossings, buildings, traffic, behavior, ...
Can be allocated to local units

Directory: business branches
Can be allocated to road segments

Other city elements: public places, buildings, landmarks, ...
Most can be allocated to road segments


For the city/road part I created two content types "road" and "road segments". At road content type item I do the assignment to the governmental and local bounderies. At road segment content type item I defined 3 field groups: road start (single value), road middle (multi value), road end (single value). In the multi value field group I assign roads, junctions, crossings, branches, etc. All the field groups have selectable districts/subdistricts in common, refering to a master field "city" out of the groups because same for all road segments. A road can pass different bounderies so districts/subdistricts can change each segment. The "city" master field outside the group would prevent typos doing the same choice on every multi fieldgroup. Without the city reference I get thousands of option values to select.

Is there is another way without coding to get the value of a custom field outside a field group (for example useage in a sql query at FE/BE edit mode)?

Attachments:

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #67626 by ggppdk
Hello

Actually this is implementable
A "multi-value" field (e.g. inside a multi-value fieldgroup) listening to a master,
expects its master to be also "multi-value"

and e.g.
value 0 listens to value 0 of the master
value 1 listens to value 1 of the master
value 2 listens to value 2 of the master

The solution would be to listen to value 0 of the master
this could be automatic

Ceck if master field configuration
- is not multi-value
- and not inside the fieldgroup

and if both the above then listen to value 0 of the master ...
i ll test it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: prathumwan

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #67627 by prathumwan
That's good news!

Using 0 for access,
- if master field is not multi-value
- and outside the field group
would solve my problem and be a great extended functionality!

Understanding the design now better, I think instead of "master outside the current field group" the condition "master not in any field group" would keep it possible influencing values between peer multi-value field groups (for a future case).

Please Log in or Create an account to join the conversation.

More
7 years 4 months ago #67635 by ggppdk
Hello

support for this has been added into our github repository

if master field is
- not in fieldgroup
- and has its "multi-value" flag to be OFF

then it will work / should work as you described


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: prathumwan

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.434 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline