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

Question

Question

Sequential Number in forms

asked on November 20, 2014

Hello,

 

I was working on implement the sequential incrementing number on LF forms and I follow the help file from this link http://www.laserfiche.com/support/webhelp/laserficheforms/9.2/en-us/forms/#LookupRules.htm?Highlight=increment

First I was not able to execute the sorted procedure getting the error "the column value don't exist " I replaced the values with [OrderNumber] and stored procedure now is:

 

USE [Forms]

GO

       SET ANSI_NULLS ON

       GO

       SET QUOTED_IDENTIFIER ON

       GO

       CREATE PROCEDURE [dbo].[sp_increment]

       AS

       BEGIN

       Declare @myvalue int

       select @myvalue= [OrderNumber] from dbo.OrderNumber where name = 'access'

       update dbo.OrderNumber set [OrderNumber] = @myvalue + 1 where name = 'access'

       Declare @myTable table

       (

       [param1] nvarchar(50)

       )

       INSERT INTO @myTable ([param1]) values ('@myvalue')

       select top 1 * from @mytable

       END

 

 

 

after that I connected the field look up rule with stored procedure when I open the from the field is populated with @myvalue.

 

Can anyone check this and let me know what I'm doing wrong.

 

Thank in advance for your help.

 

0 0

Replies

replied on November 20, 2014

Sorry there are some mistakes in the help file, please change

INSERT INTO @myTable ([param1]) values ("@myvalue")

To

INSERT INTO @myTable ([param1]) values (@myvalue)

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

Sign in to reply to this post.