[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
t:field making only a part of the value editable  XML
Forum Index -> Development
Author Message
jbaur



Joined: 14/02/2023 09:38:42
Messages: 3
Offline

We have a certain use-case which many of you probably know. We have grids that hold documents in which rows you can also edit certain attributes of the document, for example the name of the document. The name of the document is inside a t:field component and a user can edit the name just by typing in the field. Now we have the problem, that a user can edit a document name and also delete the data type suffix of the document name on accident. Now of course you could hide the suffix from the user, add it again if it gets deleted, etc. Those solutions are possible, but not preferred by our clients. They would like the document name to be visible as is but the suffix of the name should be impossible to edit, aka you cannot highlight the suffix by any means.

Is this possible to achieve somehow? That the value shown is the complete name but once you want to edit the name it changes to a name without the suffix?
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

HI,

status quo: not possible.
Always the full text of a field is editable.

Could you please check the following: the FIELD has a property UNITTEXT. Typical use case is: you define a value, and the unit of the value is shown as part of the field (and not as extra label).

I could imagine that this is also some nice solution: put the suffix into the UNITTEXT. (I am glad that you talk about a suffix and not a prefix...)

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
jbaur



Joined: 14/02/2023 09:38:42
Messages: 3
Offline

That is a good option, we'll check with our client to see if they are satisfied with it. Thank you so much for your input!
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team