Skip to Content
avatar image
Former Member

Load object by a yellow arrow

Hello Forum,

I have extended a Service Contract with a TextEdit. In this Textedit is a newly created attribute shown.

I have added a DataBind to this Textedit:

NewTextEdit.DataBind = DataBind.CreateNew();

NewTextEdit.DataBind.SetBind(true, "U_MyAtt", "OCTR");

Now I create a new Service Contract in B1. I write a number (123) in this field and save the Service Contract. If I look into OCTR table, the new attribute has the value 123 in the correct row. I con go to the next Service Contract and back. The number 123 appears again. But now if I click the yellow arrow in the Service Call form, the Service Contract Form doesnt load with the number 123. Now I can go to the next SC and back, now the number appears again. What is the difference between loading by the arrow and loading "normaly"?

(Other UserDeff attributes for a Combobox Item worked on the same form. No events are running that could delete the content of the TextEdit.)

Thanks

Mark

Edit: After loading the Service Contract by the yellow arrow, the form is in update mode and not as expected in ok mode. If I add a second txt that shows the same DB attribute, both are set to 0.00 instead of showing 123.

Strange: If I save the 0.00 to DB and reload the Service Contract by the yellow arrow, then the forms loads into OK mode. Some function seems to set 0.00 into the TextEdit boxes.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 03, 2015 at 04:31 PM

    Hi Mark,

    may be that your new Item added is set to AffectsFormMode = true? Or some other stuff is set to this that set your Form to Update-Mode.

    the linked Button need to have a "linkto" and as well(linkedObject) the BoLinkedObject.lf_ServiceContract should be set...

    regards

    Oliver

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Mark,

      ok that means it is not an b1 SDK thing? If you using the Coresuite Framework dll instead of using the B1 SDK...

      in this case check the manual function "new Item" from Coresuite.. so you could check if this is a behavior of Coresute... and may be ask your question at Coresuite support webpage again... there you get direct support form core suite people...

      The B1 sdk works as expected... or post a bit more code... I test this with the Customizer of Coresuite and this works as well... but I really don't know what Coresuite is doing to match the Code to B1SDK...

      In the past I hade some issues with core suite and they give you a feedback very soon...

      Regards

      Oliver