since ‎26-03-2007
‎11-02-2021
tarekahf
Level 5
Re: Why Acrobat JavaScript debugger (ctrl-J) shows progre...
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
I figured out ... just turn off and then back on the option highlighted in the snapshot below ...

Views

77

Likes

0

Replies

0
Re: Using subform as alternative to AcroForm Dialog box
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
I think I understand your approach, and it is certainly a valid one. I am just concerned that it requires more work. I will try first using a dummy read-only button that will cover a larger area than the inner subform of the popup itself, and place the dummy button at the top of the popup. I have tried something else, that is on exit of the popup subform, set-focus on an element inside the popup, it seems like it is working, but UX not so good..

Views

135

Likes

0

Replies

0
Re: filevault in AEM6.4
Avatar

p1hampi

p1hampi
- Adobe Experience Manager
helpful. Thanks

Views

376

Likes

0

Replies

0
Re: AEM as a cloud service project creation
Avatar

tarekahf

tarekahf
- Adobe Experience Manager
After I followed the instructions from "https://github.com/adobe/aem-project-archetype", I installed the mysite JAR bundle, and nothing showed up on CRXDE. Also, when I clicked on the bundle name from system console, I see a couple of errors such as "com.day.cq.wcm.api,version=[1.29,2) -- Cannot be resolved" and "org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved". I appreciate your help.

Views

241

Likes

0

Replies

0
Detect field value changes in a panel and prevent switching to another panel
Avatar

tarekahf

tarekahf
- Adobe Experience Manager Forms
I have done the following:- Developed Adaptive Form with navigation tabs on the left- Used fragments and implemented a lazy loading- In my code, I can detect navigation changes using guideBridge events- The fragment will be loaded lazily, and the guideBridge event "elementLazyLoaded" is triggered when the user clicks on the relevant tab, and the data get loaded successfully only for that fragment. All is working like a charm. Problem: I noticed when the user switches the navigation from one frag...

Views

207

Likes

0

Replies

0
Re: AEM form data model 'Error in fetching Datasource' er...
Avatar

tarekahf

tarekahf
- Adobe Experience Manager
Just download the JAR Connector/J file from the MySQL Download page, unzip the file and use the filename which has "-bin" in it. Also, make sure the AEM machine can connect to the MySQL Machine using "telnet" command. Or try to run a query from the AEM Machine to MySQL using any Query Tool installed on AEM Machine. Make sure to verify all configuration related to the driver and data source in the AEM web console. I used the latest 5.1.x version from here:https://dev.mysql.com/downloads/connector...

Views

3.3K

Like

1

Replies

0
Re: Image Field in Adaptive Forms
Avatar

tarekahf

tarekahf
- Adobe Experience Manager Forms
You said, "we"? Are you referring to Adobe? or some other company? And the point is to find an article or document that describes how to build a component for AEM Forms.

Views

11.9K

Like

1

Replies

0
Re: File upload field is not working in AEM 6.5
Avatar

tarekahf

tarekahf
- Adobe Experience Manager
Can you please provide link to article which has steps to implement file upload field for AEM Adaptive Form?

Views

1.4K

Likes

0

Replies

0
Re: I'm Losing LiveCycle. What are my Options?
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
You have options, but there will be limitations. We faced similar problems before, and the main problem was how to use the XFA/XDP designs in an alternative Designer. You can find an alternative, but you have to live with the following limitations: 1. Re-design from scratch all the designed forms based on the newly chosen designer tool2. Cannot use the designs for a Dynamic PDF and Data Entry.3. Use the designs to render the output in static PDF only. Dynamic results are limited only by the new ...

Views

2.9K

Like

1

Replies

0
Single threaded vs. multithreaded process.
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
If you develop a process in LiveCycle Workbench that as a script object or step, does this mean that this step will be single-threaded? Or multi-threaded? Or it can be configured?What is the impact in case it is single-threaded? It will slow other processes if it will run on the server part of a long batch job for example? How this should affect my decision to use or not to use a script step and use a Java component instead? This is because I was told that using components means it is guaranteed...

Views

1.2K

Likes

0

Replies

0
Re: Execute Javascript in the background (asynchronous task)
Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
- Adobe LiveCycle
Hi Tarek,That is quite a challenge. I think I would try and trigger the image loading in a layout event, so once an image is rendered the code in the layout event will make a server call to render the next image, which will fire another layout ready event.There will be a bit of work to keep track of where you are up to and when you have got to the last image.Have a look at this sample. A​dobe LiveCycle Designer Cookbooks by BR001: Season Planner (or Year Planner) PDF Template , doesn't do any se...

Views

1.5K

Likes

0

Replies

0
If image is larger the the image field, it will stretch beyond the border when the PDF is flattened.
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
We have developed logic to check if the XFA JavaScript is running on the server, it will load the original image with high-quality in order to flatten the PDF with the original image. We noticed that, on the flattened PDF, the image will stretch beyond the image field borders if the size is bigger than the dimensions set in Designer.The logic will execute a webservice on one of the document events such as Doc Ready, Form Ready, Layout Ready, server side only. We tried all such events. This web s...

Views

895

Likes

0

Replies

0
Re: XML Transformation using XSLT
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
To transform the second XML in the way of the first you'll need a stylesheet like this:It extracts the key of a photo under the the -section and that grabs the related binary data from the -section. The result looks this way. Some-primary-formSamplePhotoLabel1TorontoStage Value23Nice Pool/9j/4AAQSkZJRgABAAEASABIAAD//gAfTEVBRCBUZWNobm9sb2dpZXMgSW5jLiBWMS4wMQD/2wCE bla...bla...bla Hope this helps.

Views

1.5K

Likes

0

Replies

0
Re: Is it possible to use a source code control such as GIT with Workbench
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
Finally, we managed to move all our code to SVN. It's not very smooth process, but it is much better than before.

Views

1.4K

Likes

0

Replies

0
Re: Clear digital signature (right-click) takes long time
Avatar

MinusZero

MinusZero
- Adobe LiveCycle
Hi,I have never had a problem with it taking so long, but have you thought about using a button to clear both using resetData code? Worth a try?form1.#subform[0].Button1::click - (JavaScript, client)//reset signature fields and nothing else on the form.xfa.host.resetData("SignatureField1");xfa.host.resetData("SignatureField2");

Views

1.1K

Likes

0

Replies

0
Re: Required field is visible but the parent object is hidden, how to get around this situation?
Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
- Adobe LiveCycle
Hi Tarek,I did a form that had a repeatable collapsible block (Site locations in my case), so when an error was detected I had to make the site visible before navigating to the field. The errors were in a listbox and the click code, would check for the field being visible, if not it would work up the structure looking for a script object with a makeVisible function in it. Is that like your situation? var targetObject = xfa.resolveNode(targetSOM.value); // Use the xfa.layout.page method to determ...

Views

1.8K

Like

1

Replies

0
Re: Table rows do not break into the next page if height exceeds the limit.
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
Many thanks altrue990​ ! Your reply makes a lot of sense.I did a lot of research, applied your recommendation, and came to the following conclusion....Most probably this issue happened because the table is being generated in the "Form Ready" Event of the page that has the table. I think this is causing the rendering engine to get confused. I remember that we are not supposed to change the layout in the form ready event, as this might cause repeated triggering of this event.When I imported the da...

Views

1.3K

Like

1

Replies

0
Re: Convert string to function without using eval.
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
Thanks a lot Magus069​ ... sure this will work ...I will try to implement this in the coming sprints. I only have 3-4 functions like that.But I am always wondering, if our team is writing the code, then why we should be concerned about using "eval()"??! What risks it will have? No external party has access to change the possible value of the code to be executed by "eval()".Tarek

Views

2.3K

Likes

0

Replies

0
Re: Inserted fragments, sometimes they appear in XML under the parent form
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
Yes, this will help a lot... clearing default property overrides worked.Also, I need to find out how this happens. It seems it's a bug, or I am doing something that triggers this issue.I know this could be useful, but I need to know how this behaviour can be enabled, in case I need it.If you find out, I appreciate your letting me know about it.However, after a quick research, it seems this is a bug. A lot of people are complaining about this. This is just one example.And, I found a couple of pos...

Views

868

Likes

0

Replies

0
Re: How to change language (locale) of the calculation override error message?
Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
- Adobe LiveCycle
Hi Tarek,Sounds like it should be simple, but hasn't proved to be. The closest I've come is to edit the XML to look like; Some french transation "value" This doesn't remove the English error but does let you add a French one above it.RegardsBruce

Views

637

Likes

0

Replies

0
Re: Use Image Processing Service based on simple URL service method
Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
- Adobe LiveCycle
Hi Tarek,That sounds like the problem I had, with the base64 bug.The thing I was going to try next was having the server return a hex encoded string, but doing the decoding in JavaScript was slow.Bruce

Views

644

Likes

0

Replies

0
Re: Convert MS Excel Table to JSON in Adobe LiveCycle Form using JavaScript
Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
- Adobe LiveCycle
Hi Tarek,I have converted some libraries to use in XFA forms, but not this big. Should be easier in Reader DC which supports Uint8Array as well as some other ES5 things like JSON.parse and new Date('yyyy-mm-dd'). We don't have a Blob object, but maybe that would need to change to a Data object anyway, I only had a very quick look.A common problem converting JavaScript code is in Reader we can't override the toString or valueOf methods so we need to come up with slightly difference names (I use _...

Views

896

Likes

0

Replies

0
Re: array in global variable
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
Thank you radzmar ...I always wanted to do that, I mean using Form Variables to store global variables with different types such as objects and arrays. Using eval() is the answer.Also, mind you that you can use uneval() to store the variable back into the form variable. Use this method if the variable is not simple type (number or text).Also, you can use "extras" section under any field or variables section under any subform to create and store variables almost in the same manner. This can be do...

Views

1.4K

Likes

0

Replies

0
Re: Using multiple fragments causes Adobe LC workbench/designer to crash
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
As I am working with designer/workbench (even with designer alone) with other team members and working with different forms on different PCs, the following conditions clearly increase the chances of crashes/errors "There is a problem with Adobe Acrobat/Reader...." .The errors will more likely trigger if:1. The form is larger2. Has more form (visual) fragments, nested fragments and script objectsWhen the form is relatively smaller, with less number of fragments/nested fragments, then it is pretty...

Views

875

Likes

0

Replies

0
Using multiple fragments causes Adobe LC workbench/designer to crash
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
Sometimes Adobe LiveCycle Designer crashes or it will give the error below:There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again. (10:10) I have recorded a screen session to show when is it most likely the error will trigger.Following are the most probably steps that will cause the error to trigger (based on my observation):1. Open Workbench 2. Use a form that has multiple nested fragments3. Using designer, open the main form, and open one of the nested fragme...

Views

651

Likes

0

Replies

0
Change form field name dynamically during run-time
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
Let's say we have two form sections, they are identical, and the only difference is the field names.Can we create a fragment to implement the two form sections, and during run-time, in the initialize event for example, is it possible to rename the field to qualify the field name and differentiate it from the same field on the other fragment (section)?Tarek

Views

511

Likes

0

Replies

0
Relative form element reference doesn't work on the server, for some cases.
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
I came across very strange case where the relative form/field reference doesn't work on the server side. In such cases, I see error on the server log like the following log related to subform "sfDetrimentalConditions":2018-02-27 11:51:02,904 INFO [com.adobe.document.XMLFormService] (RequestProcessor-3) ALC-XTG-000-000: [2704] @@@: sfDetrimentalConditions is undefined at line: 14 of script: 1: //dbg.logMsg("START form1.sfDetrimentalAddendum.#variables[0].opr");2: UTIL.init?UTIL.init():"";3: //JIR...

Views

603

Likes

0

Replies

0
Check Javascript Version on client and server
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
Sometimes, I use a javascript function and it works fine on the client. For example, object.defineProperty(), it works on the client, but it causes the entire script object to fail on the server, and it's a real pain to discover this situation.How to check what is the Javascript version used on the server? And how to know what is the version used on the client?Tarek

Views

571

Likes

0

Replies

0
E4X XML function hasOwnProperty() doesn't work as filter
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
I am trying to filter XML (based on E4X syntax) to get list of items with certain attribute value. Some of the XML Elements don't have that specific attribute.See example below:var xmlDoc = $parent$.client_email[0] E-MAIL: COURRIEL: $parent$.lb_appraiser_vertical APPRAISER APPRAISER $parent$.appraiser_name[0] APPRAISER: ÉVALUATEUR: APPRAISER: ÉVALUATEUR: AIC Member: MEMBRE DE L’ICE: ;var list = xmlDoc.label;app.alert(list[2].caption_en); //Works finelist[2].caption_en.@qual; //Works fine =...

Views

550

Likes

0

Replies

0
Re: One of my added replies here causes the browser to crash
Avatar

tarekahf

tarekahf
- Adobe LiveCycle
I was able to fix the post from IE () which allowed me to stop the script, then I edited the post, removed the script sample, and re-entered it, and now it is OK. I was unable to do that from Chrome. Thanks for the help from Adobe Social Media account.Tarek

Views

783

Likes

0

Replies

0