Field remain open after input

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
User avatar
Jay Webb
Veteran Member
Posts: 80
Joined: 2017-08-26 15:27
Contact:

Field remain open after input

Post by Jay Webb » 2020-06-23 18:37

Appgini 5.82, April. AG H JS L

Here is the basic code usage I'm using.

Code: Select all

//hide fields
new AppGiniFields(["field1", "field2", "field3", "field A", "field B, "field C", "field D", "field E", "field 1a", "field 2b", "field 3c", "field 4d"]).hide();

//onReady
new AppGiniDetailView().ready(onReady);

//onChange fields
function onReady() {
  new AppGiniField("field_opn_clos").onChange(onTestChanged);
  new AppGiniField("field_2_opn_clos").onChange(onTestChanged);
  }
  
  //switch
  function onTestChanged(value) {
  console.log("field_opn_clos changed: "  + value);
  console.log("field_2_opn_clos changed: "  + value);
  
	new AppGiniField("field1").show(value=='Official Role');
	new AppGiniField("field2").show(value=='Personal Role');
	new AppGiniField("field3").show(value=='Title');
	
	new AppGiniField("field 1a").show(value==Group 1');
	new AppGiniField("field 2b").show(value=='Group 2');
	new AppGiniField("field 3c").show(value=='Group 3');
	new AppGiniField("field 4d").show(value=='Group 4');


var dv = new AppGiniDetailView();
var tabMeta = dv.addTab("tabMeta", "Family", "link"); // todo: i18n
var tabTask = dv.addTab("tabTask", "Family", "link"); // todo: i18n


var metaFields = new AppGiniFields(["field A", "field B, "field C", "field D", "field E"]);
var taskFields = new AppGiniFields(["field 1a", "field 2b", "field 3c", "field 4d"])


tabMeta.add(metaFields);
tabTask.add(taskFields);

problem I'm having in Detail View, in fields that have been "filled" doesn't remain open when another selection is made from another drop-down list.
Is there a keep filled fields open?

Another question, is there a way to turn a "filled fields" into a link back to parent with a double click function, instead of the green + button.
What we envision, we make happen.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Field remain open after input

Post by jsetzer » 2020-07-08 05:25

Sorry, I do not understand what you mean by "keeping filled fields open".
Can you please post a screenshot and illustrate what you mean.

Additionally, I have seen that you are using blanks in field names, for example in new AppGiniField("field 1a")
I am wondering if the fieldnames really have any blanks or if this should be "field_1a" or "field1a" instead.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply