Upload Files Button: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert the ASPX elements that are related to the upload files button control to HTML or TypeScript elements.
PXFileUploader
The following table shows the correspondence between the PXFileUploader element and the HTML or TypeScript [1]I also wonder if we should add to the template (and to here) something like ", with usage examples for these elements." I suggest this because unlike our usual approach, we do not introduce the code in the cells of the table. I am not suggesting that we add these intros--it will just add bulk--but mentioning it here could be serve that function (and perhaps encourage a "scanning" reader to move on and look more closely).iz4_ldg_32c2025/02/1010:47:00-05:00Sounds like a good idea.1iz4_ldg_32c12025/02/1014:59:18-05:00elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
| ASPX | HTML or TypeScript |
|---|---|
PXFileUploader |
To attach files to a record, use the qp-multi-upload tag in
the HTML template. |
ID |
Use the id property, which is available in the
config attribute of the qp-multi-upload
control. |
AllowedTypes |
Use the accept property, which is available in the
config attribute of the qp-multi-upload
control. |
SelectFileMessage |
Neither TypeScript nor HTML provide an equivalent property that can be used to
customize the text that is displayed on the qp-multi-upload
control. However, you can specify this text between the opening tag and the closing
tag of the control, as shown in the following code
example. |
