Multiple attachment files (bin)

Discussion forum about all things TD Mobile.
-tommi
Finland
Posts: 17
Joined: 03 May 2017, 08:00
Location: Finland

Multiple attachment files (bin)

Post by -tommi » 03 Aug 2018, 10:43

Hi.

We are using TDMobile to insert files (mostly pictures) to DB. Currently we have only one data field of type "file" in the page.
I would like to insert multiple files in one action.

I tried to use table control, but can't attach binary bindings to data field in a table.
Is it possible to have multiple file/binary fields in a table or is there anothe way to implement this.

Naturally, it is possible to add fixed number of fields to page, but that does not sound nice.

FRBhote
India
Posts: 1233
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

Multiple attachment files (bin)

Post by FRBhote » 03 Aug 2018, 10:50

You can use a list view?

FRBhote
India
Posts: 1233
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

Multiple attachment files (bin)

Post by FRBhote » 03 Aug 2018, 10:51

BTW, how do you select multiple pictures?

-tommi
Finland
Posts: 17
Joined: 03 May 2017, 08:00
Location: Finland

Multiple attachment files (bin)

Post by -tommi » 03 Aug 2018, 11:38

Idea was to use table, so you could add rows to add more files. So there would be new row with file type data field for each file.
Then you could select file by clicking the select file button, that is in data field.
In list view it is not so easy to add new rows by user.

-tommi
Finland
Posts: 17
Joined: 03 May 2017, 08:00
Location: Finland

Multiple attachment files (bin)

Post by -tommi » 03 Aug 2018, 11:44

And it seems that you can't add a Data Field to a List View.

FRBhote
India
Posts: 1233
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

Multiple attachment files (bin)

Post by FRBhote » 04 Aug 2018, 05:32

I don't get it. How would you add a picture to a data field? It would compulsorily have to be an image field. You make an array of strings which would be the image paths and declare it as the binds for the list view.
image.png
You do not have the required permissions to view the files attached to this post.

a_sivababu
India
Posts: 58
Joined: 10 Mar 2017, 08:46
Location: Chennai,India

Multiple attachment files (bin)

Post by a_sivababu » 06 Aug 2018, 03:36

With current TDMobile version, I do not think so whether you can add multiple attachments in single action. Hope we may get it this in the future.

I am not sure whether the below suggestion is expected to have it in your design as your requirement is not mentioned in the thread.

1. As mentioned in this thread. Keep the list view in anywhere of your single page application.
2. Use file upload and button to keep uploading to this list view. you can keep this list view as child listview if you have the main list view to show one to many rows. The page will not get refreshed as this is working through AJAX.

Or, you can always go with 3rd party control and or your own script like the below one and then associate with TDMobile Bindings.



but again, I am not sure whether I fully understood your expectation :-)

-tommi
Finland
Posts: 17
Joined: 03 May 2017, 08:00
Location: Finland

Multiple attachment files (bin)

Post by -tommi » 06 Aug 2018, 06:16

User is saving files from TDMobile. So the Data Field is of type File, where you can select file from device.
No pictures are shown in data field, but the filename, which user is entering.

-tommi
Finland
Posts: 17
Joined: 03 May 2017, 08:00
Location: Finland

Multiple attachment files (bin)

Post by -tommi » 06 Aug 2018, 06:33

Idea is to have multiple Data Field like this in table.
In list view there can't be any Data Fields. Current version is TDMobile 2.1
filefield.PNG
You do not have the required permissions to view the files attached to this post.

FRBhote
India
Posts: 1233
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

Multiple attachment files (bin)

Post by FRBhote » 06 Aug 2018, 08:11

But you cannot have an image in a data field. Only the path to the image....

a_sivababu
India
Posts: 58
Joined: 10 Mar 2017, 08:46
Location: Chennai,India

Multiple attachment files (bin)

Post by a_sivababu » 06 Aug 2018, 09:47

as i said, with workaround, you keep list view in the first half of the page. in the second half the page, you keep all the fields including image field. I feel this is typical design even in TD apps.

No need to go with table window as this will not support now.

Return to “General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests