on ‎2015 Jul 24 1:14 AM
Request clarification before answering.
Hello Andres,
Sorry, there is no debugger for Frontend Scripting.
Bye,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Horst thanks for you feedback.
I have a small question: it's possible to have the access on the backend (SDK studio) to attribute defined on the UI frontend datamodel?
In case YES:
Due the fact that my script is responsible for filtering the content of a AdvanceListPanel, I was wondering if the following approach would work:
In case my approach works, I will be able to debug my script coding.
In case NO:
I want to be able to debug the following peace of code due the fact I doesnt work as expect and I dont see any issue on my coding.
Thi is an input field defined on the FrontEnd.
This is an opportunity found by means of a FrontEnd Query.
Do you maybe see any reason why even when AlternativeName = "Hello There" and SearchDoc = "Hello", the StringUtils.Contains return False?
He the fully peaco of coding:
Many thanks in advance for all the tips and help you can provide me.
kind regards,
Andres
Hello Andres,
In the backend you are on BO level. That's much "deeper" than the UI level.
So, a BO does not know which UIs for itself are existing neither details about any of those UI models.
In short: NO.
For your Frontend Scripting:
are working at all.
HTH,
Horst
Horst,
Thanks for the explanation between the BO and UI level.
taking into account your tip; i performed some testing and I found my problem.
However i dont see the reason why i'm facing this issue. I was wondering if you could look into the following scenario and tell me if you see my problem/bug.
I created an input field on the UI. My goal is to allow the user to filter an advanceListPanel by means of this inputField. please find the definition and configuration in the following screenshot.
Now on my controllor, I defined an event which triggers a query to retrieve opportunities based on the current account displayed on the screen. After the query is performed, I placed an script which should perform the following actions:
My problem is that i dont find a way to correctly get access to the information entered input field.
The previuos IF-statement always fails even when I enter exactly the same string on the UI.
do you maybe see what i'm doing wrong?
kind regards,
Andres
Hi Horst,
Normally I did add the field to the scope, but i just checked and it was gone.
As you suggested, I performed some dummy testing to try to discover my issue (due the fact that it's not possible to debug). I encounter the following issue which i don't understand:
When I tried the following statements, it works as expected
var myFilterValue = $data.SearchDoc.content
var currentDocName = $data.Opportunity.Get(i).AttachmentFolder.DocumentList.Get(j).AlternativeName
if($controller.StringUtils.Contains(myFilterValue , 'GooGle')) ==> OK
if($controller.StringUtils.Contains(currentDocName, 'GooGle')) ==> OK
But when i try the following statement, it's always false (FYI: MyFilterValue = 'GooGle'):
if($controller.StringUtils.Contains(currentDocName, myFilterValue)) ==> OK
do you have any idea what its wrong?
kind regards,
Andres
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 7 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.