Question
ING Bank
NL
Last activity: 21 Mar 2018 0:29 EDT
pzImportFilePath is not setting the File name to the property defined
Hi Team,
I'm trying to Import files from local using pzImportFilePath control and I have defined pyFileName property for it. But when I select the file from my local and click on Submit, I don't see the file name copied to the property defined which is pyFileName (clipboard). Does it have any dependencies?
Thanks & Regards,
Vamsi.
-
Likes (1)
Chakradhar Raju Muppala -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi Vamsi,
I had added the pzImportFilePath in my section and tried to create a work object by adding Usecase_v719.pdf file. I opened the work object C-31 in my clipboard then searched for the Usecase_v719 file name, then i can see its reference properties in the search result as shown in attachment.
Hope this might help you.
Regards
Mahesh
ING Bank
NL
Hi Mahesh,
Yes, it works the same for me as well. But what about the property which we provide on the control. File name will be copied to pyFileName property right. Let me know if it is not the expected behavior.
Thanks & Regards,
Vamsi.
Pegasystems Inc.
US
@Vamsi.Thatavarthi this is a pz control which is for the internal usage and not for the end user. You can explore Data-pyUploadFileWithBrowseOption flow action and UploadFile activity. Hope it might help you.
ING Bank
NL
Hi Mahesh,
What is the use of the property we define on the control/properties panel? Is it of no use?
Thanks,
Vamsi.
Pegasystems Inc.
US
Actually i tried to add the control FilePath in my section without sourcing any property to it and i can able to upload the file using this control. And the file name is stored in the pxRequestor.pyFileUpload property so i don't think the source property to this control is mandatory as it is always storing the file information at requestor level page.
-
Andreas Hubenthal
ING Bank
NL
Hi Mahesh,
I think file name is getting set into pxRequestor.pyFileUpload only when we submit the form. Have you used default action buttons (which invokes FinishAssignement on click) to upload the file?
I have a requirement that I need to show an Upload button next to FilePath field. After selecting the file from local, when I click on Upload, it should get uploaded to the server. I see there is UploadFile activity from @baseclass which needs the file name value to be present in "pxRequestor.pyFileUpload" property. But Upon selecting file from local, this property remains empty.
Thanks,
Vamsi
Pegasystems Inc.
US
Hi Vamsi,
In the FilePath control properties i can see Actions tab which has Event & Action fields to choose OnClick event and Post Value action, may be you can have a try with this and let me know.
Regards
Mahesh
ING Bank
NL
Hi Mahesh,
I have added change event and post value action. But unless we add refresh section/harness action, pyFileUpload value is not getting set to the hidden file path. But when we refresh the section/harness, path is getting updated but Cell value is becoming empty.
Thanks,
Vamsi
Pegasystems Inc.
US
Yes, me too noticed the similar functionality at my end and i am trying to find any other approach that can help your case. But as of now i don't have any update for you, may be others can share their thoughts.
ING Bank
NL
Can someone please help me with this requirement
"I think file name is getting set into pxRequestor.pyFileUpload only when we submit the form. Have you used default action buttons (which invokes FinishAssignement on click) to upload the file?
I have a requirement that I need to show an Upload button next to FilePath field. After selecting the file from local, when I click on Upload, it should get uploaded to the server. I see there is UploadFile activity from @baseclass which needs the file name value to be present in "pxRequestor.pyFileUpload" property. But Upon selecting file from local, this property remains empty."