As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I'm working with a guy that's trying to insert records via a Maintain form into a view that auto-generates its key values. The key is an integer. When he attempts to perform the include with no value in the key field, he gets
(FOC1400) SQLCODE IS 544 (HEX: 00000220) XOPEN: 23000 : Microsoft SQL Native Client: [23000] Cannot insert explicit value for id : entity column in table 'staff' when IDENTITY_INSERT is set to OFF. (FOC1740) EXECUTE ERROR : VSTAFFADD
He'd like to utilize the db's auto-key-generator feature. Is this possible, and if it is, what's the secret?
J.This message has been edited. Last edited by: Kerry,
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007
for all Include VSTAFFADD.VSTAFFADD.EMPLOYED VSTAFFADD.VSTAFFADD.LAST_NAME VSTAFFADD.VSTAFFADD.GIVEN_NAME VSTAFFADD.VSTAFFADD.INITIALS VSTAFFADD.VSTAFFADD.FULL_NAME VSTAFFADD.VSTAFFADD.MAIL VSTAFFADD.VSTAFFADD.USERNAME VSTAFFADD.VSTAFFADD.TELEPHONE VSTAFFADD.VSTAFFADD.TITLE from addStaffStk;
Note that the key value is not included in this version, but he's tried both. Add VSTAFFADD.VSTAFFADD.EMP_KEY at the top and you're there.
My guess is that the Stack is assuming a key value of 0 and sending it. We adjusted the master file to allow the key to be missing=on and then computed a missing value in it explicitly prior to the INCLUDE but that made no difference.
J.
.
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007