Jump to content


Photo
- - - - -

PROIVTree ActiveX - SetItemText

PROIVTree ActiveX SetItemText

3 replies to this topic

#1 YvetteBalt

YvetteBalt

    Member

  • Members
  • PipPip
  • 10 posts
  • Gender:Female

Posted 19 January 2017 - 06:21 AM

Hi Guys

 

I've implemented a Tree using the PROIVTree ActiveX

 

When I want to update the text of a row using Tree.SetItemText the program updates the text but it doesn't seem to commit the change.

 

Because when I select another row the text changes back to what it was. When I select the row I've changed it shows the changed text.

 

I've attached a screenshot of the issue.

 

I'm also using .SetItemImage which isn't giving me this issue.

 

Does anyone have a workaround the issue except for reloading the tree?

 

Any assistance will be greatly appreciated

 

Kind Regards

Yvette

Attached Thumbnails

  • SetItemText.png


#2 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

Posted 20 January 2017 - 04:13 PM

Sounds like you may have found a bug. An alternate option, although not ideal, would be to delete and then insert back in that node.


Things should be made as simple as possible, but not simpler

#3 YvetteBalt

YvetteBalt

    Member

  • Members
  • PipPip
  • 10 posts
  • Gender:Female

Posted 21 January 2017 - 10:56 AM

I was hoping I was doing something wrong and that it isn't a bug.

I tried the insert, add and delete route but couldn't quite get that to work correctly.

 

Thanks for the reply



#4 Matthews Estrice

Matthews Estrice

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 241 posts
  • Gender:Male
  • Location:Henley-on-klip

Posted 24 January 2017 - 02:09 AM

Hi Yvette,
Make certain that your FULL $ROWDATA input string you concatenated is long enough read in Before Write logic.

Do you delimit your Coding Structure or your Reporting Structure levels in your $ROWDATA?

Your SCOA concatenated KEY to be 38 characters long within your $ROWDATA input string else you might encounter problem in committing the next record if you are working with your first few levels of scoa coding/reporting structures of your segment.

In Before Write Logic of the table CRUDing:-
In ADD MODE, initial your ActiveX parameters to Tree.FindByData and Tree.InsertRowSort methods.
You've stated that you have called Tree.SelectItem method when adding.

Enforce your commit by doing EODEXIT(1).

If you using the CRUDing more than once in your function,you will encounter problems in committing,make a child file for the CRUDing table.

Debug your $ROWDATA KEY.

I hope that helps.

Matthews Estrice



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users