?
Solved

setting up an infopath form to behave like a VLOOKUP

Posted on 2009-07-13
3
Medium Priority
?
2,320 Views
Last Modified: 2012-06-21
we have an excel template in place where it does a VLOOKUP on a separate workbook and fills out the remainding columns of the row with product data.  I want to replace this excel template with an infopath form (2007), and store it in a sharepoint doc library, however my initial tests have been either confusing or the performance to lookup data from a SQL data source from InfoPath are really slow... like unusably slow.

so I found this on the web, kind of walks through how to do this
http://www.bizsupportonline.net/infopath2007/how-to-vlookup-infopath-look-up-data-sharepoint-list-rules-filters.htm

The problems when trying to implement this in a test form are:

1. It uses a 'drop down' list, whereas I just want to have a text field that users can input a product number
2. Performance for the number of product records we have is really bad, takes 2-3 minutes and freezes the form, when filling out...

I'm just kind of shocked at how bad the performance was, so I assume either it's just bad filtering on my part, or it will just never be as fast as the excel vlookup function?

I saw somewhat similar posts on EE, and I bought a big thick book on it, but I am just wondering what other people have done in similar circumstances?
0
Comment
Question by:rmicone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 44

Expert Comment

by:zephyr_hex (Megan)
ID: 24844940
so... i'm not going to be of much use on the Infopath question you have.

however, i want to propose a potential alternative...  i'm not entirely sure if it will meet all of your requirements because you may have some requirements you haven't mentioned.

but... it sounds to me like you may be able to accomplish your goal using the Data View Web part (actually, Data Form web part... since you'll want to have the ability to edit entries).  data view web part is available in Sharepoint Designer (free tool)

i'm not exactly sure how you have your data stored.  it sounds like it's in SQL tables now?  or is it still in Excel?

the basic concept is to make SQL do the work, and then use data view web part to provide an interface for users to edit records in the SQL table.  you can also add a search functionality so that users can "filter" the data view.

here is info on how to create the data view web part:
http://office.microsoft.com/en-us/sharepointdesigner/HA101191131033.aspx

if you want to add a search button:
http://philwicklund.com/archive/2009/04/11/using-the-data-view-web-part-to-search-a-sharepoint-list.aspx
0
 
LVL 2

Author Comment

by:rmicone
ID: 24845007
thanks for the comment, actually I did use sp designer + data forms to create the current application that we're using, (it's a sales order type shopping cart deal), which stores the data in SP lists... The only problem here is that the users say it takes too long to do a shopping cart style search and add to the form I've setup... and so yeah I am looking for the alternate approach using Excel or InfoPath and using workflows instead... here's the setup I'm looking to accomplish

1. User goes to a doc library on SP site and clicks New -> "Sales Order" , which is a custom content .xlsx template I've uploaded
2. User fills out a few lines of info relating to the client
3. User will enter a product ID (which they know) and hit tab to have it fill in the name, color, style, ... user enters QTY
4. User saves it to the doc library which starts the workflow

... the rest I'm sorting out, but my real wish is that infopath can replace excel for this

InfoPath looks like it could do this, with all the great controls and repeating sections to drag and drop but... yeah having some problems getting it to work.  The xpath filtering is really not intuitive to me yet.  It seems like this would be a very common thing in InfoPath, but like I said the performance indicates maybe I should just work on customizing the excel form using vlookup... I'm sure we all know that if it takes more than a few seconds, the end users declare it unusable...

0
 
LVL 2

Accepted Solution

by:
rmicone earned 0 total points
ID: 25120326
I pretty much sorted this out on my own, I will post it for posterity I guess...

I ended up using InfoPath anyways, but did a few things:
1. Set the data source to 'store a copy of the data in the form'
2. Set the data source to *not* refresh when the form opens
3. Put a Refresh button at the bottom of the form for people to validate/lookup all their data when they were done inputting the required fields.

It is looking  up a lot of data, so I still got complaints of "this takes too long" but it's kind of more of a PR issue the end users as waiting 7 seconds for accurate data will save minutes to maybe even hours down the road...
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question