Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ConfiForm Re-Edit Smart Multi Row Fields

Maximilian Herbert
Contributor
November 21, 2023

Hey there, hey Alex,

this is probably the most advanced and difficult question I will bring up so I hope I can explain it right

Following setup:

 

Form1 (Fields1, Field2, Field3, FieldSmartMR)

Form2 (FieldX, FieldY, FieldZ)

 

The Field "FieldSmartMR" in Form1 is of the type Smart Multi Row and uses the Form2 as input.

When an entry gets created in Form1 an IFTTT creates a Subpage.

In this subpage there is a TableMerger that flattens the entries and filters them on "Fields1" of Form1

The View looks like that then:

Fields1 FieldX_1 FieldY_1 FieldZ_1

Fields1 FieldX_1 FieldYFieldZ_1  

 

Now I want to re-edit the Smart Multi Row Field.
Problem is:
I cant inline edit because of the table merger and with the edit controls it wont let me change anything. Is there a workaround / solution to post edit Smart Multi Row Fields?

1 answer

1 vote
Alex Medved _ConfiForms_
Community Champion
November 21, 2023

Hi

Why do you need to use the TableViewMerger and not a simple TableView over your Form2?

Or the View over the Form1 that will allow you also to edit the smart multi-row field data

Alex

Maximilian Herbert
Contributor
November 21, 2023

How would a Tableview on Form2 work because i cant filter on the Field of Form1 then?

A simple table view on Form1 is working but all of the values get displayed in one row then which makes it extremely hard to work with. 

Here's a screenshot of that. The first table is with the merger and the second is just with a simple table view. Additionally the text gets replaced with the ID i guess because there is not enough space in that row.

ExampleSmartMultiRow.PNG

Maximilian Herbert
Contributor
November 21, 2023

What I just found out: Even with a simple Table View I cant inline edit the data. It only lets me edit the "Projektname" which is out of Form1 but all of the fields of Form2 are not editable (All of the fields beside Projektname are of Form2)

Alex Medved _ConfiForms_
Community Champion
November 21, 2023

Honestly, I dont quite understand those screenshots...This is what I have been trying to explain in words... but as a recording

http://recordit.co/AkGmoNFJGB

Hope it helps

Storage format for the reference (in case you need it)

<ac:structured-macro ac:macro-id="cd685a23-4107-4ae3-a1e8-58283894cb85" ac:name="code" ac:schema-version="1">
<ac:plain-text-body><![CDATA[Form1 (Fields1, Field2, Field3, FieldSmartMR)

Form2 (FieldX, FieldY, FieldZ)]]></ac:plain-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="c52c475c-4eae-4672-a7dd-a58c9cf4bca7" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">Form2</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="e1269241-f91b-437b-af0c-73fe850bb6a5" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">FieldX</ac:parameter>
<ac:parameter ac:name="fieldLabel">FieldX</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="3b5734ea-97a2-47fb-8fd2-3141bc673c3f" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">FieldY</ac:parameter>
<ac:parameter ac:name="fieldLabel">FieldY</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="ce2b42c7-e55d-42ee-b865-28e0ec2fd688" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">FieldZ</ac:parameter>
<ac:parameter ac:name="fieldLabel">FieldZ</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="d4db4728-e7b4-4c95-991f-0900f77d9620" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">Form1</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="190a3292-5e52-4dfc-82c9-a426ec1e8cc9" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">Field1</ac:parameter>
<ac:parameter ac:name="fieldLabel">Field1</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="7a2cf2da-7d5f-4826-819a-762f031e090b" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">Field2</ac:parameter>
<ac:parameter ac:name="fieldLabel">Field2</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="109ddb93-49c8-4bfb-9cb3-748519cc12e0" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">Field3</ac:parameter>
<ac:parameter ac:name="fieldLabel">Field3</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="914e1048-57eb-441a-863d-41b512fff268" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">FieldSmartMR</ac:parameter>
<ac:parameter ac:name="fieldLabel">FieldSmartMR</ac:parameter>
<ac:parameter ac:name="values">[165609630:Form2]FieldX,FieldY,FieldZ,</ac:parameter>
<ac:parameter ac:name="type">smartmultirow</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="3c3be6b5-6ef3-4aee-b402-f15fa815defb" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:parameter ac:name="type">Embedded</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
<p>TableView Over Form1</p>
<ac:structured-macro ac:macro-id="382673e3-2bde-43aa-b819-70eb60ee11f6" ac:name="confiform-table" ac:schema-version="1">
<ac:parameter ac:name="formName">Form1</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="837b4961-1769-482d-825f-61e46e2c310a" ac:name="confiform-entry-edit" ac:schema-version="1">
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
<p>ListView over Form1 with a nested TableView over Form2</p>
<ac:structured-macro ac:macro-id="e07aabb9-d04e-4077-a9f4-4a8a337763c4" ac:name="confiform-list" ac:schema-version="1">
<ac:parameter ac:name="formName">Form1</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="9489e5fb-9e61-45cb-a5c6-175931c4a38c" ac:name="confiform-table" ac:schema-version="1">
<ac:parameter ac:name="filter">id:[entry.FieldSmartMR.transform(id).join( OR id:)]</ac:parameter>
<ac:parameter ac:name="formName">Form2</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="e21187d5-2cfc-4df0-97cb-b962d26dbd25" ac:name="confiform-entry-edit" ac:schema-version="1">
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>

Alex 

Maximilian Herbert
Contributor
November 22, 2023

That helped so much! 
I figured out what the mistake was: instead of putting the field "FieldSmartMR" into the table I put every single of the fields of the second form in the tableview. So I was able to see the entries but ofc could not "edit them" because they were of another form.

Just one further question:
If you now delete an entry out of form1 (in our example the "Field1" = One entry) the entry in form2 based on the form1entry wont get deleted (So you still have the 11 22 33 entry in Form2)
Is there a way that if you delete the entry in form1 the so generated entry withing form2 gets deleted as well? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events