Hi Kurt,
Can you provide us a more details and/or and screen video of issue?
Thanks,
Kevin (ITG)
Thanks Kevin,
Now work fine.
Thanks Alaa!
I used the third suggested method. I still had some issues trying to obtain the token (email) before the remainder of the internal authentication commenced. Ultimately, I simply placed the method call for the internal authentication in the Web Method. That meant the desired email address was obtained prior to internal authentication.
FYI, in the javascript code you updated you added the elements req.setCrossDomain(true); and req.setProhibitCaching(false);. Initially, the web method would not fire. On a lark, I commented out these items and it began to work. I’m not sure what the issue was but I thought I’d give you the feedback. It works fine now.
Thanks again!
Gerry
Hi Angelo,
Just set "options": { "mobile.mode": false }, on Default.json
Best,
Kevin(ITG)
Cool!
Where to find it? Is there some demo project?
By avatar upload I mean to be able to adjust and crop avatar image before saving it. Which is standard avatar functionality. Not just upload an image.
Avatar Cropping with a Draggable Crop Box, I am lookin for such component.
Hi Gerald,
The issue is that the task never exists the “WaitingForActivation” state, meaning it hangs trying to finish the task (it gets stuck in the Task queue).
Now the status is not the issue in itself, but rather an indication of why your application hangs.
And that’s because “task.Wait()” is called further up the stack, and that’s what’s causing the deadlock.
What you can do is either.
I attached a modified version of the test case you provided, in it, you’ll see 3 new Methods – ProcessDataAsync1, ProcessDataAsync2, and ProcessDataAsync3. Each one represents the different approaches you can use to deal with Asynchronous calls.
Promise-style Tasks should always have a timeout, otherwise, the whole application can hang on a single call, that’s why your script works when you use Application.Eval() and hangs with Application.EvalAsync().
HTH,
Alaa
Hi Levie,
I don’t know why, but the problem solved itself after the last rebuild.
I will write to you in case of news
Thanks
Nello Pernice
Hi Dirk,
Setting e.Cancel = true requires the user to re-enter the value into the cell. If you want to allow the user to leave the cell, enter e.Cancel = false.
If you’re not sure why the input is firing the DataError event, check the column type.
If you attach a small sample we can look at it in more detail.
I attached a very basic sample of the DGV DataError event.
HTH,
Levie
Hi Dirk,
I forgot to mention that you can’t use the viewers (other than “auto”) from localhost.
The application must be deployed to a publicly-accessible URL.
The PdfViewer, when set to Google or Mozilla, registers a callback URL that asks the Wisej application for the given PDF document (but this can’t be accessed when running from localhost).
This is an example of how it works:
Google
https://docs.google.com/viewer?url=https://wisej.com/wp-content/uploads/2020/06/Wisej-datasheet-10012020.pdf
Mozilla
https://mozilla.github.io/pdf.js/web/viewer.html?file=https://wisej.com/wp-content/uploads/2020/06/Wisej-datasheet-10012020.pdf
HTH,
Levie
Hi Levie,
I had test it before my message. Google doesn´t work under Windows (Firefox, Edge) and Mac (Safari), message “no preview available”. Mozilla doesn´t work under Safari (Buttonbar is visible, PDF is not shown). The question is: Is it a browser specific behavior or a problem of WiseJ Pdf Viewer? We will not use a custom one but we have user with Mac…
Thanks
Dirk
Thanks Levie,
Is it possible you could look at the async method? It still locks up in the javascript.
Gerry
Hi Nello,
What assembly are you loading and how are you using it?
Can you attach a small sample?
Thanks,
Levie
Hi Dirk,
The PDFViewer control uses the built-in viewer for the given browser.
https://docs.wisej.com/docs/controls/content/pdfviewer
You can change it to a specific viewer or provide your own custom one (i.e. PDF.js). See the above link.
HTH,
Levie
Hi Neil,
I just tried with a small sample and it seems to work fine. Can you try this?
TIA,
Levie
Hi Ruben,
Can you please attach a small sample of the issue? What version of Wisej are you using?
TIA,
Levie
You can’t loop through the items, they don’t exist. The datarepeater clones and reuses only the necessary items for the view + PrefetchItems. You can have 1M rows and the data repeater will only create 5 items if that’s what fits in the panel and when you scroll it reuses the existing controls.
Use the ItemUpdate event to manipulate the item panel after it’s updated. Or bind the color to the data source. The DisplayedItems property gives you access to the items currently created and displayed but as they get reused there is no guarantee on the position.
I had trouble adding the attachment, here it is.
I sent both approaches I tried. I commented out the async approach but that is my true aim, since the internal user authentication relies on getting the user email and can’t proceed until its derived. The approach I used without using the async simply does not fire the app..GetToken method and the async method locks up when executing the javascript. As I mentioned, the published app properly returns the token.
Thanks for your assistance!
Gerry
Hi Gerald,
Can you send us a sample code that shows your concern in more detail.
Thanks,
Kevin(ITG)
Yes
