You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a script that adds some information from the priceGuide (e.g. sale qty in the last 6 months) to my remarks.
It works so far, but sometimes the Bricklink.priceGuide() returns no data. I guess the reason is the async loading, but I have no idea how to implement the signal priceGuideUpdated() in qml.
I tried working around using isNull, isValid and a delay, but this did not solve my problem.
Any help would be appreciated.
`var thisDoc = BrickStore.activeDocument
let items = thisDoc.lotCount
for (var i = 0; i < items; i++)
{
let current=thisDoc.lots.at(i)
let pg=BrickLink.priceGuide(current.item, current.color, true)
let qty=pg.quantity(BrickLink.Time.PastSix, current.condition)
current.remarks=qty
}`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I wrote a script that adds some information from the priceGuide (e.g. sale qty in the last 6 months) to my remarks.
It works so far, but sometimes the Bricklink.priceGuide() returns no data. I guess the reason is the async loading, but I have no idea how to implement the signal priceGuideUpdated() in qml.
I tried working around using isNull, isValid and a delay, but this did not solve my problem.
Any help would be appreciated.
`var thisDoc = BrickStore.activeDocument
let items = thisDoc.lotCount
for (var i = 0; i < items; i++)
{
let current=thisDoc.lots.at(i)
let pg=BrickLink.priceGuide(current.item, current.color, true)
let qty=pg.quantity(BrickLink.Time.PastSix, current.condition)
current.remarks=qty
}`
BR,
Mike
Beta Was this translation helpful? Give feedback.
All reactions