Sackgesicht VIP
Total posts: 1,636
30 Nov 2017 05:15

using the field id [1] does not show the full content and [1::0] just shows "Array"

Last Modified: 04 Mar 2018


Sergey
Total posts: 13,748
07 Dec 2017 16:26

I've tested this code and it is working well. The problem is that 0 is not a first element in an array. Every elent has it's own ID. FOr example you have 4 elements. If you use [12::3] then you get only 4th element.

That is not correct behaviour.

How would you suggest to make it?

  1. I can use digit after :: to be an element number dispite its index.
  2. I can concatinate values of selectable fields with coma for example and insert all selected values.

What do you think?


pepperstreet VIP
Total posts: 3,837
22 Feb 2018 04:07

Sergey I can use digit after :: to be an element number dispite its index.

Array style counting is for developers and geeks ;)
I guess a simple digit starting at 1 is much easier and readable, for any type of user.

Sergey I can concatinate values of selectable fields with coma for example and insert all selected values.

Sure, there must be some sort of value separator. COMMA is a common default.
Probably an option to choose a separator is too much!?


Sergey
Total posts: 13,748
04 Mar 2018 13:22

pepperstreet Probably an option to choose a separator is too much!?

For composite title yes. too much.

Powered by Cobalt