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 am creating a data entry form in Maintain. I have one key field "STUDENT_ID"in SQL database. So it is taking only unique value. For example, if I enter this STUDENT_ID "1111" in my form , it allow me to enter first time . But I want to enter the same field STUDENT_ID value “1111" Many times. I want to make this field "STUDENT_ID" as second key. Is it possible, Can I define a new field in the master file and make it as Primary key field? I appreciate any suggestion regarding this issue.
My Access file below: SEGNAME=ASSISTLEARNLAB, TABLENAME=Maintain.webfocus.AssistLearnLab, CONNECTION=MAINTAIN, KEYS=1, $
My Maintain Code: MAINTAIN FILE assistlearnlab
$$Declarations
Declare CNT / I2 ;
Case Top Infer assistlearnlab.ASSISTLEARNLAB.STUDENT_ID into AddAssistlearnlabStk2; Infer assistlearnlab.ASSISTLEARNLAB.STUDENT_ID into GetAssistLearnStack;
Winform Show_Inactive Form1; Compute Form1.cssname = '/APPROOT/MAINTAIN/FAN.CSS'; Winform Show Form1; -* Replace the Winform Show command with the following code -* when to display your form in a non-persistent state -* Winform Show_and_exit Form1; EndCase
Case AddAssistLearn For all include assistlearnlab.ASSISTLEARNLAB.STUDENT_ID from AddAssistlearnlabStk2; Reposition assistlearnlab.ASSISTLEARNLAB.STUDENT_ID ; Stack clear AddAssistlearnlabStk2 ; EndCase
Case GetAssistLearn Reposition assistlearnlab.ASSISTLEARNLAB.STUDENT_ID ; Stack clear GetAssistLearnStack; For all next assistlearnlab.ASSISTLEARNLAB.STUDENT_ID into GetAssistLearnStack ; EndCase
Case UpdateAssitLearn Update assistlearnlab.ASSISTLEARNLAB.LAST_NAME assistlearnlab.ASSISTLEARNLAB.FIRST_NAME assistlearnlab.ASSISTLEARNLAB.DATE assistlearnlab.ASSISTLEARNLAB.COURSE assistlearnlab.ASSISTLEARNLAB.DETAILED_REASON_FOR_VISIT assistlearnlab.ASSISTLEARNLAB.TUTOR from GetAssistLearnStack(GetAssistLearnStack.FocIndex) ; EndCase
Case DeleteAssistLearn Delete assistlearnlab.ASSISTLEARNLAB.STUDENT_ID from GetAssistLearnStack(GetAssistLearnStack.FocIndex) ; IF GetAssistLearnStack.FocCount=GetAssistLearnStack.FocIndex THEN BEGIN COMPUTE GetAssistLearnStack.FocCount = GetAssistLearnStack.FocCount-1; COMPUTE GetAssistLearnStack.FocIndex = GetAssistLearnStack.FocIndex-1; ENDBEGIN ELSE BEGIN COMPUTE CNT = GetAssistLearnStack.FocIndex; Stack copy from GetAssistLearnStack(CNT+1) into GetAssistLearnStack(CNT) ; COMPUTE GetAssistLearnStack.FocCount = GetAssistLearnStack.FocCount-1; ENDBEGIN Winform close UpdatedeleteAssitlearn; EndCase
Maintain requires that your key fields are first n fields in your Master. So, you COULD enter a second field and make that and STUDENT_ID the key fields, but you will have to recreate the database. Here I am adding STUDENT_CNT (count) as the second key in the Master. You also have to change the KEYS in the Access file to 2.