Author Topic: List of file names which are "locked for changes"  (Read 7691 times)

0 Members and 1 Guest are viewing this topic.

Padanges

  • Newbie
  • *
  • Posts: 179
List of file names which are "locked for changes"
« on: October 10, 2016, 05:54:18 AM »
Hi
PDFe function "locked for changes" disables any functions that can change entry info fields in DB within PDFe. Is it possible to get the names (FP) of files which have been "locked for changes"? Can we lock/unclock them using custom scripts? How can we get the list of locked files from whole DB without having to list them in the layout grid first?
In addition to this, can we verify with a script whether a file has been locked? Running a script which would lock/unlock using hotkey would require to check file status beforehand.


Thanks in advance

RTT

  • Administrator
  • *****
  • Posts: 907
Re: List of file names which are "locked for changes"
« Reply #1 on: October 11, 2016, 03:57:41 PM »
I can add access to this property to the scripts API, to check if it is locked/unlocked and eventually to be able to set the state. Currently there is no way to access this info other than the visual indication shown in the grid.

Padanges

  • Newbie
  • *
  • Posts: 179
Re: List of file names which are "locked for changes"
« Reply #2 on: October 14, 2016, 06:57:39 AM »
That could be a solution. Please give us a script example, if you will.

RTT

  • Administrator
  • *****
  • Posts: 907
Re: List of file names which are "locked for changes"
« Reply #3 on: October 15, 2016, 04:54:51 PM »
It will be a "Locked" boolean type named property of the IFileObject, so query it to know if it is locked, and set it to lock/unlock.

Padanges

  • Newbie
  • *
  • Posts: 179
Re: List of file names which are "locked for changes"
« Reply #4 on: October 21, 2016, 01:07:03 PM »
Quote
It will be a "Locked" boolean type named property
That's great. Is it possible to run the check for this property for the whole DB without having to list entries to the Grid - is there a possibility to run a query on whole db?

RTT

  • Administrator
  • *****
  • Posts: 907
Re: List of file names which are "locked for changes"
« Reply #5 on: October 22, 2016, 04:02:05 PM »
No. This field is not even queryable, with the current DB implementation.



Padanges

  • Newbie
  • *
  • Posts: 179
Re: List of file names which are "locked for changes"
« Reply #6 on: November 22, 2016, 11:55:12 AM »
PDFe seems to remember which files have been locked for changes at the start-up of the new session. Where could we find this attribute saved?

RTT

  • Administrator
  • *****
  • Posts: 907
Re: List of file names which are "locked for changes"
« Reply #7 on: November 23, 2016, 12:11:12 AM »
As referred above, the state is saved into the DB and cannot be queried directly.

Padanges

  • Newbie
  • *
  • Posts: 179
Re: List of file names which are "locked for changes"
« Reply #8 on: November 25, 2016, 07:48:25 AM »
Yes, but I was asking perhaps we could find the names of those files somewhere in our %appdata% folder.
Anyway, as you have mentioned, the next release should make this property available for the scripts.