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

Discussion

Discussion

LUP Table

posted on July 17, 2019

Good afternoon, 


Previously we had a back-end process that would allow a user to add another item to a UDL outside of LF Admin by adding a value to the LUP table, and resorting. 

Recently upgraded to Laserfiche 10.4.1 and the process stayed the same except the updated values will not show up in the UDL in either LF Admin or LF Client UNTIL I manually restart the Laserfiche Server service. 

So my questions are: 

1. Is there anyway around this behavior?
2. If using the SDK to add a value, is there a way to sort the list via the SDK?

 

Thanks!

0 0
replied on September 18, 2019

You could also set the field to use a stored procedure that reads the values from somewhere else. That way you don't have to maintain this list in Laserfiche. See this thread for more info.

0 0
replied on July 26, 2019 Show version history

Still testing, but it looks like running these three commands might work. 

Template.Update(tempId, vaTemplate, mySess);
vaTemplate.Save();
vaTemplate.Refresh(true);

From what I can see LF Client still needs to be re-opened for changes to take effect, but at least the server services doesn't need to be restarted. 

0 0
replied on July 22, 2019

I tried a few other things and thought I had a workaround but it ONLY works if there's no one logged into the repo. 

Session mySess = new Session();
mySess.LogIn(myRepoReg);
 
TemplateInfo vaTemplate = Template.GetInfo("Vendor Addition", mySess);
int tempId = vaTemplate.Id;
Template.Update(tempId, vaTemplate, mySess);
mySess.Close();

This was definitely working without having to manually restart the Laserfiche Server service, however if someone else was logged into the system, it would not refresh. 

 

So is there anything in the SDK where I can force a type of "Metadata update" ?

 

0 0
replied on July 22, 2019

Hello, 

 

I did open up a case and was told that the behavior is as intended so the only way around it would be I guess to do so via the SDK?

Would anyone be able to provide a code snippet of adding a value to a List field and sorting it in Alpha order via the SDK? Is that even possible to sort via SDK?

 

Thanks!

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

Sign in to reply to this post.