Forums: [SOLVED] Inline edit on load - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[SOLVED] Inline edit on load Rate Topic: -----

#1 User is offline   timnorvel 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 272
  • Joined: 21-September 07
  • Gender:Male
  • Location:Minnesota, USA

Posted 23 January 2019 - 08:43 PM

Hello,

On load of a list page I'd like to automatically open the first record in the list for inline edit. Looking at the manual, I assume I'd use:

pageObj.inlineEdit.editRecById(recsId[X]);



But I can't get it to work, and I'm not sure what [X] should be. I was assuming [1].

Thanks for any help.
Tim
0

#2 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 16224
  • Joined: 03-February 03
  • Gender:Male

Posted 27 January 2019 - 03:52 AM

Make sure you copy and paste the complete code example from the manual. I can confirm that the following does open the first record for inline editing:

var recsId = pageObj.inlineEdit.getRecsId();
pageObj.inlineEdit.editRecById(recsId[1]);


More info:
https://xlinesoft.co...from_script.htm
Best regards,
Sergey Kornilov
0

#3 User is offline   timnorvel 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 272
  • Joined: 21-September 07
  • Gender:Male
  • Location:Minnesota, USA

Posted 29 January 2019 - 03:25 PM

Yes, I did not have the first line. I wasn't understanding what that was doing, but I see it now.

Thanks for your help. This works great.
Tim
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users