Export the part or doc lists to XLS or XLSX with the hyperlink in object number to their info page - ptc-windchill

In Windchill 10.1, In the folder view of any container, when you click on the name field of any document, it takes you to the details page of the document. So the names are actually hyperlinks to the details of the document.
My requirement is to export these hyperlinks from windchill into excel sheet using export list to xlsx from actions menu in the folder page
Please reply if any one had an idea of how this can be done as i need to submit it with a solution in 2 days

Related

WP All Export ACF image url

In my posts i have ACF field image (array). I can't understand how export image url in xml file by function editor. Help me please
enter image description here
From plugin documentation:
ACF fields are automatically detected by WP All Export. To customize
your export file, select fields from Available Data > ACF and drag and
drop them into the export editor.
Image fields export the URL to the image or file. Multiple images or
files in a single field will be separated by the pipe ( | ) character.
https://www.wpallimport.com/documentation/export-acf-media-fields-to-csv-or-xml/
In other words, looks like you don't have to do anything special - just drag and drop as per the screenshot on the documentation page.

show download link if file already uploaded or show file upload field in gravity forms

I have a form created by gravity forms which will allow the user to enter the data and upload two files (form has two input file fields - gravity forms provided file upload field). Once the user submit the page, I will save the data in to custom table with file path as one of the column inside the table.
But once form reloads, it will show the same form with already entered data, but don't know how to show the file link inside the form.
What I am trying to do is, I have to show the link with remove button if file already uploaded or show the file upload field again to allow user to upload the file again.
Could somebody help me please?
I guess when you will store the entered data on the custom table, store the file names as well.
Then have another function to check if the file is in the specified directory (ex. uploads).
This is a lazy solution, so keep an eye on your thread for a better one.
I am not using gravity forms file upload field as even sent mail with priority support asking for is there any hook to know when user clicked "X" button of uploaded file(this will be shown once user clicks on submit button after uploading the file), but they replied, they don't support customization and pointed to 3rd party developers.
So what I did is, removed file upload field and used html field, which I am showing manual file upload (html input type file) field if no file uploaded or showing the file link with remove button. This remove button handled via javascript which will update some hidden field and after submit I know user removed the file or not.

Customize page in concrete5

I had created a custom page(test) in concrete5 through UI.
Dashboard->Sitemp->Addpage
I created a form in this page.After form submit I want to store those details in DB.I just want to where this page is saved in app folder structure.So that I can connet Db and save records.
The page is not saved anywhere in the folder structure. It is saved in the database.
If you are using any of the forms add'ons however they will save the data in the db and you'll have access to it from the dashboard report section.
If you really want to be able to control it yourself then you will need to create a single page through code, add the form to it and write the code to process the page.
The single page would be in the single_pages folder and its controller in the controllers folder
Replace "my_profile" with your php file name following the instructions below:
Sign in to the concrete5 dashboard, and go to Themes & Page Types > Single Pages. Find the "Add a Single Page" form at the bottom of the list, and enter "my_profile" at the bottom (or whatever the name of your single page.) Do not include ".php" in the field.
Per the instructions on Concrete5:
http://www.concrete5.org/documentation/developers/pages/single-pages

Wordpress Widget plugin and input file

I am writing a widget plugin for Wordpress and I want to insert an input tag:<input type="file"> to browse for a pattern in my widget plugin admin panel; but I have problem to save its value.
It seems that <input type="file"> doesn't work in widget plugins. Is it correct? Are there any other ways to browse a file from the admin panel?
I made it using combination of arbitrary file input and hidden input for image path. Here're the steps:
create hidden field that will be saved and dummy file input
bind change event to file input (I'm using jQuery)
on change collect FormData object and send it via ajax to ajaxurl
add action('wp_ajax_hook', 'my_callback_func') in functions.php, where hook = your action
move uploaded file(s) to upload dir
return file path from my_callback_func
fill hidden field with file path on ajax success
display uploaded image for user, so that he konws upload was successful (optional)
PROFIT!!! Now you can save you form
I will not post code snippets here, cause they are rather trivial for most developers

Table design uploading multiple files (like yahoo mail)

Like what we do in sending email in yahoo, Now in my aspx I want to make a page it's name is "draft" and in this page there is one subject field (txtsubject") and upload control with upload button for attaching multiple files and one another button for save/send in database table, now I do not know how it should be my design table.
I read some article from net about how to upload multiple files and in all of them there is one table like below design
Fileid
File name
Content type

Resources