mergJSON and the ArrayToJSON script

2021-06-11 Thread Chris Heidecker via use-livecode
Hi,

In the dictionary I found the ArrayToJSON -script to access mergJSON with a 
multi-dimensional array.
While trying to pass a number as a string I noticed the pForceRootType is not 
passed along to the enclosed ArrayToJSON function.

Adding the parameters does work for my array within an array.
 
put "}"&ArrayToJSON(pArray[tKey],pForceRootType,pPretty) into 
pArray[tKey]

Is there a reason the parameters are not passed to the inner function?
Something unexpected I might encounter?

function ArrayToJSON pArray,pForceRootType,pPretty
repeat for each key tKey in pArray
if pArray[tKey] is an array then
put "}"&ArrayToJSON(pArray[tKey]) into pArray[tKey]
end if
end repeat
return(mergJSONEncode("pArray",pForceRootType,pPretty))
end ArrayToJSON

Regards,
Chris Heidecker
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Collaborative help request for oAuth2 access to DocuSign

2021-06-11 Thread matthias rebbe via use-livecode
Sean,

could you please try and remove the tParamsA parameter in your oAuth2 call?

I noticed that the oauth2 library itself places the  "?response_type=code" 
parameter to the url. So with the tParamsA parameter it was twice in the URL.

I removed the tParamsA parameter in your call and was at least able to login 
and the browser windows closed. I  did not test further as it is a little late 
here.


See also a screen recording here https://livecode.dermattes.de/sean.mp4

Regards,

Matthias



 

> Am 11.06.2021 um 20:49 schrieb Sean Cole (Pi) via use-livecode 
> :
> 
> Thanks Colin and Andrew.
> 
> I'll see if I can track down Monte. I know he's a busy man. But there must
> be a simple explanation of why they don't seem to work. oAuth should be
> pretty simple. I have done my own using a browser widget but it's a bit
> clunky for the customer. The oAuth seems to be a nicer option for coding
> and navigating if we can get it working.
> 
> All the best
> 
> Sean
> 
> 
> On Fri, 11 Jun 2021 at 17:20, Colin Kelly via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Same here, I couldn’t get oAuth working for Intelligent Office in LC but
>> using the same credentials it worked ok through Postman…
>> 
>> --
>> Colin Kelly
>> M 07951 920680
>> 
>> 
>> From: use-livecode  on behalf of
>> Andrew at MidWest Coast Media via use-livecode <
>> use-livecode@lists.runrev.com>
>> Reply to: How to use LiveCode 
>> Date: Friday, 11 June 2021 at 17:13
>> To: "use-livecode@lists.runrev.com" 
>> Cc: Andrew at MidWest Coast Media 
>> Subject: Re: Collaborative help request for oAuth2 access to DocuSign
>> 
>> I was never able to get oAuth working for Canvas LMS even though the same
>> workflow worked on Postman.
>> 
>> —Andrew Bell
>> 
>> 
>> Subject: Re: Collaborative help request for oAuth2 access to DocuSign
>> 
>> I?ve still not been able to make any headway with getting oAuth to work
>> for DocuSign. Anyone have any ideas?
>> 
>> Sean
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Collaborative help request for oAuth2 access to DocuSign

2021-06-11 Thread Sean Cole (Pi) via use-livecode
Thanks Colin and Andrew.

I'll see if I can track down Monte. I know he's a busy man. But there must
be a simple explanation of why they don't seem to work. oAuth should be
pretty simple. I have done my own using a browser widget but it's a bit
clunky for the customer. The oAuth seems to be a nicer option for coding
and navigating if we can get it working.

All the best

Sean


On Fri, 11 Jun 2021 at 17:20, Colin Kelly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Same here, I couldn’t get oAuth working for Intelligent Office in LC but
> using the same credentials it worked ok through Postman…
>
> --
> Colin Kelly
> M 07951 920680
>
>
> From: use-livecode  on behalf of
> Andrew at MidWest Coast Media via use-livecode <
> use-livecode@lists.runrev.com>
> Reply to: How to use LiveCode 
> Date: Friday, 11 June 2021 at 17:13
> To: "use-livecode@lists.runrev.com" 
> Cc: Andrew at MidWest Coast Media 
> Subject: Re: Collaborative help request for oAuth2 access to DocuSign
>
> I was never able to get oAuth working for Canvas LMS even though the same
> workflow worked on Postman.
>
> —Andrew Bell
>
>
> Subject: Re: Collaborative help request for oAuth2 access to DocuSign
>
> I?ve still not been able to make any headway with getting oAuth to work
> for DocuSign. Anyone have any ideas?
>
> Sean
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Regular crash: Dictionary (API)

2021-06-11 Thread David Bovill via use-livecode
For several years I have a regular crash when opening the `Dictionary (API)` - 
wondering the cause. Everything else works as normal - latest MacOs and 
Livecode - spinning coloured ball and now dictionary stack displayed  - 
requires force quit. Doing that now. Third time today.

📆    Schedule a call with me
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Levure Dataview drag-reordering

2021-06-11 Thread David Bovill via use-livecode
So I got visual feedback from drag-and-drop using the Levure DataView following 
instructions at:

• https://github.com/trevordevore/levurehelper-dataview

I add the following code to the DataView:
> quote_type
> on dragStart
>  set the dvDragImageRow of me to item 1 of the dvHilitedRows of me
>  set the dvTrackDragReorder[the dvHilitedRows of me] of me to true
>  set the dragData["private"] to the dvHilitedRows of me # dragdata has to be 
> set to something.
> end dragStart
>
> on ValidateRowDrop pDraggingInfoA, pProposedRow, pProposedDropOperation
>  put "Dragging" && pProposedRow && pProposedDropOperation
>  return true
> end ValidateRowDrop
>
> on AcceptRowDrop pDraggingInfoA, pRow, pDropOperation
>  put "Dropped" && pRow && pDropOperation
> end AcceptRowDrop
>
But the ValidateRowDrop message does not get sent, also I don’t get any visual 
feedback with a "drop indicator" (the line that shows you where the drop will 
occur) - any idea?

📆    Schedule a call with me
On 11 Jun 2021, 16:03 +0100, David Bovill , wrote:
> Yeah sorry about the typo - sent from mobile. I meant Levure -  as Trevor is 
> the main man with the drag stuff and having differenr styles for rows is a 
> must.
>
> NB on the typo front I have a distant memory that aeons ago when I first got 
> an iPhone I said yes to the spelling “fir”.  Ever since then all my devices 
> seem to love this word - anyone have an idea how to correct this auto typing 
> flaw?
>
> 📆    Schedule a call with me
> On 11 Jun 2021, 15:05 +0100, Klaus major-k via use-livecode 
> , wrote:
> > Hi David,
> >
> > > Am 11.06.2021 um 15:58 schrieb David Bovill via use-livecode 
> > > :
> > >
> > > Is there a simple demo out there that shows how drag-reordering of rows 
> > > in a dataview works? Is this feature experimental? Got a deadline fir 
> > > Monday considering taking the plunge?
> >
> > Levite Dataview? 8-)
> > Sure you do not mean LC datagrid?
> >
> > > 📆 Schedule a call with me
> >
> > No. :-D
> >
> >
> > Best
> >
> > Klaus
> > --
> > Klaus Major
> > https://www.major-k.de
> > https://www.major-k.de/bass
> > kl...@major-k.de
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Collaborative help request for oAuth2 access to DocuSign

2021-06-11 Thread Colin Kelly via use-livecode
Same here, I couldn’t get oAuth working for Intelligent Office in LC but using 
the same credentials it worked ok through Postman…

--
Colin Kelly
M 07951 920680


From: use-livecode  on behalf of Andrew 
at MidWest Coast Media via use-livecode 
Reply to: How to use LiveCode 
Date: Friday, 11 June 2021 at 17:13
To: "use-livecode@lists.runrev.com" 
Cc: Andrew at MidWest Coast Media 
Subject: Re: Collaborative help request for oAuth2 access to DocuSign

I was never able to get oAuth working for Canvas LMS even though the same 
workflow worked on Postman.

—Andrew Bell


Subject: Re: Collaborative help request for oAuth2 access to DocuSign

I?ve still not been able to make any headway with getting oAuth to work for 
DocuSign. Anyone have any ideas?

Sean

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Collaborative help request for oAuth2 access to DocuSign

2021-06-11 Thread Andrew at MidWest Coast Media via use-livecode
I was never able to get oAuth working for Canvas LMS even though the same 
workflow worked on Postman.

—Andrew Bell

> 
> Subject: Re: Collaborative help request for oAuth2 access to DocuSign
> 
> I?ve still not been able to make any headway with getting oAuth to work for 
> DocuSign. Anyone have any ideas?
> 
> Sean

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Collaborative help request for oAuth2 access to DocuSign

2021-06-11 Thread Pi Digital via use-livecode
I’ve still not been able to make any headway with getting oAuth to work for 
DocuSign. Anyone have any ideas?

Sean


> On 9 Jun 2021, at 20:31, Pi Digital via use-livecode 
>  wrote:
> 
> Yep, exactly. So that is where DocuSign should send back a redirect that is 
> picked up by the oAuth2 LC library. From there it should continue with the LC 
> code. But the only way out at the moment is to press Cancel. 
> 
> I think the red message is not relevant as it always seems to be there. 
> 
> What I’m hoping for is that Monte sees this thread and points us in the right 
> direction as the clued in one for this library. But if anyone else already 
> has experience that too may be helpful. 
> 
> Thanks for giving it a go Matthias. 
> 
> Sean
> 
> 
>>> On 9 Jun 2021, at 20:19, matthias rebbe via use-livecode 
>>>  wrote:
>>> 
>> I pressed the send button to early...
>> 
>> When i continue, i got logged in and see the normal developer account page 
>> in the "oauth" window.
>> 
>> 
>>> Am 09.06.2021 um 21:15 schrieb matthias_livecode_150...@m-r-d.de:
>>> 
>>> Tried it here with your script, but currently the 'login" page shows an 
>>> additional text in red saying "DocuSign is temporarily unavailable. Please 
>>> try again momentarily.".
>>> 
>>> 
>>> 
>>> 
> Am 09.06.2021 um 20:04 schrieb Sean Cole (Pi) via use-livecode 
> :
 
 Hi All,
 
 Until now I have been using SOAP to connect to Docusign without the need
 for oAuth2. However, they will soon (August 16th, 2021) require oAuth2
 entry.
 
 To make it easier for us to play together, I've created a temp gmail and
 DocuSign account. The code I'm using is as follows:
 
 //
 local sDocuSignAuth
 on es_DocuSignTest
 put "http://account-d.docusign.com/oauth/auth"; into tAuthURL -- //
 account-d DURING TESTING / account WHEN LIVE //
 put "http://account-d.docusign.com/oauth/token"; into tTokenURL
 put "e36917d4-72be-4924-aced-3e75844080a2" into tClientID // LCTest
 put "0493edd9-a8a6-431e-a64e-2d6f162ca98b" into tClientSecret // LCTest
 put "signature" into tScopes
 put "58081" into tPort // Redirect uri set to 'http://127.0.0.1:58081'
 put "code" into tParamsA["response_type"]
 --
 put "pi.lc.apit...@gmail.com" into tUser // Docusign test account
 put "lctestaccount" into tPass // Docusign test account
 --
 if sDocuSignAuth is empty then
OAuth2 tAuthURL, tTokenURL, tClientID, tClientSecret, tScopes,
 "58081", tParamsA
put the result &cr& it
if the result is not empty then
   return "Not authorized!" for error
else
   put it into sDocuSignAuth
end if
 end if
 end es_DocuSignTest
 //
 
 You can log in to the DocuSign account using those credentials if you feel
 the need.
 
 As you will find when you try the code, the oAuth window comes up, you log
 in, but it never responds with the Token or the redirect uri. So I don't
 know what I'm missing or how to fix it. Perhaps by getting this one sorted
 out we can have a definitive method for any API.
 
 Thanks for any help.
 
 Sean
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Levure Dataview drag-reordering

2021-06-11 Thread Bob Sneidar via use-livecode
That's a good thing, yes? That means your Apple device is not phoning home. 

Bob S


> On Jun 11, 2021, at 08:24 , Stephen Barncard via use-livecode 
>  wrote:
> 
> yeah, Apple still thinks I live in Sevastopol, Ukraine!
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Levure Dataview drag-reordering

2021-06-11 Thread Stephen Barncard via use-livecode
yeah, Apple still thinks I live in Sevastopol, Ukraine!
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Fri, Jun 11, 2021 at 8:08 AM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi David,
>
> > Am 11.06.2021 um 17:03 schrieb David Bovill via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Yeah sorry about the typo - sent from mobile. I meant Levure -  as
> Trevor is the main man with the drag stuff and having differenr styles for
> rows is a must.
>
> ah, OK, I'll pass it over to Trevor!
>
> > NB on the typo front I have a distant memory that aeons ago when I first
> got an iPhone I said yes to the spelling “fir”.  Ever since then all my
> devices seem to love this word - anyone have an idea how to correct this
> auto typing flaw?
>
> Sorry, no idea fir this problem... 8-)
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Levure Dataview drag-reordering

2021-06-11 Thread Klaus major-k via use-livecode
Hi David,

> Am 11.06.2021 um 17:03 schrieb David Bovill via use-livecode 
> :
> 
> Yeah sorry about the typo - sent from mobile. I meant Levure -  as Trevor is 
> the main man with the drag stuff and having differenr styles for rows is a 
> must.

ah, OK, I'll pass it over to Trevor!

> NB on the typo front I have a distant memory that aeons ago when I first got 
> an iPhone I said yes to the spelling “fir”.  Ever since then all my devices 
> seem to love this word - anyone have an idea how to correct this auto typing 
> flaw?

Sorry, no idea fir this problem... 8-)


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Levure Dataview drag-reordering

2021-06-11 Thread David Bovill via use-livecode
Yeah sorry about the typo - sent from mobile. I meant Levure -  as Trevor is 
the main man with the drag stuff and having differenr styles for rows is a must.

NB on the typo front I have a distant memory that aeons ago when I first got an 
iPhone I said yes to the spelling “fir”.  Ever since then all my devices seem 
to love this word - anyone have an idea how to correct this auto typing flaw?

📆    Schedule a call with me
On 11 Jun 2021, 15:05 +0100, Klaus major-k via use-livecode 
, wrote:
> Hi David,
>
> > Am 11.06.2021 um 15:58 schrieb David Bovill via use-livecode 
> > :
> >
> > Is there a simple demo out there that shows how drag-reordering of rows in 
> > a dataview works? Is this feature experimental? Got a deadline fir Monday 
> > considering taking the plunge?
>
> Levite Dataview? 8-)
> Sure you do not mean LC datagrid?
>
> > 📆 Schedule a call with me
>
> No. :-D
>
>
> Best
>
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Levite Dataview drag-reordering

2021-06-11 Thread Klaus major-k via use-livecode
Hi David,

> Am 11.06.2021 um 15:58 schrieb David Bovill via use-livecode 
> :
> 
> Is there a simple demo out there that shows how drag-reordering of rows in a 
> dataview works? Is this feature experimental? Got a deadline fir Monday 
> considering taking the plunge?

Levite Dataview? 8-)
Sure you do not mean LC datagrid?

> 📆Schedule a call with me

No. :-D


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Levite Dataview drag-reordering

2021-06-11 Thread David Bovill via use-livecode
Is there a simple demo out there that shows how drag-reordering of rows in a 
dataview works? Is this feature experimental? Got a deadline fir Monday 
considering taking the plunge?

📆    Schedule a call with me
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode