Assistance needed understanding how $SET works
Posted
#3888
(In Topic #774)
...with Fractional Editing
Let's say I have one Comcode page that utilizes Fractional Editing to "quick edit" numerous CPF's (around 15 or so). Let's assume these CPF's all have different edit_types (such as textarea, line, or dropdown).When I set the edit_type using $SET, will this affect users if multiple users are trying to edit the same or different fields at the same time? My mindset is stuck on the assumption that setting edit_type for one CPF could affect the edit type for other CPFs or even affect other users editing the same field at the same time.
I know that I must change the edit type for EACH CPF I list on this Comcode page (as each one requires a different type), but I'm wondering if this setting is user specific or server specific in the sense that if one user is editing 'Field A' with a textarea edit type, will it affect another user editing 'Field B' with a line edit type?
Also, since I'm changing the edit type so many times on the same page, am I required to "unset" it or anything like that?
I'm a bit confused about exactly how $SET works, so apologies if this post doesn't make any sense. Let me know if so and I'll try to explain myself a little better
Posted
It's only setting something within the current Tempcode evaluation, nothing is saved, and it's per-request. It setting a little bit of data used later in the FRACTIONAL_EDIT template.
You have to do it because we have no way of automatically determining what input widget goes with what field type, we don't generate/store that anywhere.
0 guests and 0 members have recently viewed this.