You are viewing limited content. For full access, please sign in.

Question

Question

Using Look-up Table, how can I make a select like?

asked on September 10, 2018

Hi all,

 

Using a look up table, I have all values from my database (more than 600 records). I want to split this result by letters but I don't know how to make a select like "<letter>%" in the form.

 

Someone can help me please?

Thanks in advance.

0 0

Answer

SELECTED ANSWER
replied on September 10, 2018

To use your own custom select statments you will want to create a stored procedure in SQL. Then call the stored procedure from forms instead of a direct lookup to a table for view.

1 0
replied on September 10, 2018

Hi Chad Saar, Thank you for your help.

 

Do you have a tuto? Or a doc?

0 0
replied on September 10, 2018

Hi Chad, ok understood but how do you call your procedure form LFForm?

0 0
replied on September 10, 2018

Change the selection from Table/View to procedure. Any new procedures,tables, or views will not show until you refresh the database connection from the admin tools.

0 0
replied on September 10, 2018

This is what I did but I still don't have the procedure... this is my procedure

/****** Script for SelectTopNRows command from SSMS  ******/
CREATE PROCEDURE myprocedure
AS

SELECT * 
  FROM [SP3E].[dbo].[produits]
  GO;
  

0 0
replied on September 10, 2018

Olivier,

After you add the stored procedure to the database, you need to go into Forms Administration and refresh the data source so it will pick up on the changes immediately.

0 0
replied on September 10, 2018

Chad, Jason

 

It's ok. I didn't save the procedure on the right table.

I got it thank very much.

 

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.