cancel
Showing results for 
Search instead for 
Did you mean: 

Interface tool to select specific sheet from xlsx file

SOLVED
Highlighted
Mario36
Asteroid

Interface tool to select specific sheet from xlsx file

My idea was to use an interface tool to allow the end user to choose the required sheet name of an xlsx file and the workflow would profile the data of that chosen sheet. Is this possible ? 
FYI, data on all the sheets are in the same layout (Field names are same)

10 REPLIES 10
Highlighted
Mario36
Asteroid

Interface tool to select specific sheet from xlsx file

My idea was to use an interface tool to allow the end user to choose the required sheet name of an xlsx file and the workflow would profile the data of that chosen sheet. Is this possible ? 
FYI, data on all the sheets are in the same layout (Field names are same)

saimohan
5 - Atom

Re: Interface tool to select specific sheet from xlsx file

yes. the input data tool when connected to file browse and action tool provides an interface to the user to select the file name and sheet name for xlsx file.

 

Then, create the data profile and output into an excel file (this would be a temporary file). Now you can create another analytic app with list box or text box to display the data in the temporary excel file. Now in the first workflow where the user selects the xlsx file, use the run command at the end to trigger the 2nd workflow app which would display the data from the temporary excel file (data profiling information). At the end of 2nd workflow, you will have to define another run command to delete the temporary excel.

Re: Interface tool to select specific sheet from xlsx file

Hi @saimohan ,

 

Do you mind sharing an example please.

mceleavey
17 - Castor

Re: Interface tool to select specific sheet from xlsx file

Hi @Mario36 ,

 

a chained app would be perfect here.

App1 will use a file browse to select the file, this will kick through the sheet names to App 2 which allows the user to then select the sheet name.

Boom.

 

M.



Bulien

Re: Interface tool to select specific sheet from xlsx file

Could you share an example ?

Re: Interface tool to select specific sheet from xlsx file

@Mario36 ,

 

ok, without going too much into chained apps (there are resources on the community to help you there) I've built a chained app that asks you to select the file you wish to import. This takes that file, pulls in the sheet names, and outputs a temp file:

 

mceleavey_0-1637342070925.pngmceleavey_1-1637342152858.png

 

 

Here, it doesn't matter what Sheet you select, so just select the file and then the default.

 

You will then get another popup:

 

mceleavey_2-1637342224220.png

 

Select your sheet and away you go.

 

I've attached the extracted app which contains everything you need.

 

Hope this helps,

 

M.



Bulien

Attachment
Download this attachment

Re: Interface tool to select specific sheet from xlsx file

Obviously this is just an example of using chained apps. You can obviously select sheets, but if you wanted to select like for like sheets across multiple files, this could be a way of doing it

 

M.



Bulien

Re: Interface tool to select specific sheet from xlsx file

What I actually wanted was 

1. Get the sheet names of an excel file as a dropdown

2. Choose the sheet name from the dropdown

3. Populate the data based on the selection

 

So, as per the attached excel file, I have the below sheet names which need to go in as a dropdown. Based on what sheet I select, the relevant data should populate.

 

Sheet Names :
Banana 
Mango

Apple 

Attachment
Download this attachment

Re: Interface tool to select specific sheet from xlsx file

Hello @Mario36 ,

 

Are you looking for something like this?

 

Regards

 

 

Attachment
Download this attachment

Re: Interface tool to select specific sheet from xlsx file

This is something I was looking for

Attachment
Download this attachment