How Can we call a Stored Procedure in a Custom Lookup #7252
Unanswered
mayankkshah
asked this question in
Help
Replies: 1 comment
-
try this [LookupScript("LookupKey", Expiration = -1, Permission = "?")]
public class LookupName : LookupScript
{
public LookupName ()
{
this.IdField = "Id";
this.TextField = "Name";
this.getItems = this.GetItems;
}
protected IEnumerable<dynamic> GetItems()
{
using (var con = SqlConnections.NewFor<ABCRow>())
{
return con.Query(@"StoreProcedueName", null, commandType: CommandType.StoredProcedure);
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can anyone help me call a stored procedure in a custom lookup?
Beta Was this translation helpful? Give feedback.
All reactions