Hello,
I have a problem in latest component version. My software edits textboxes in a document.
the code is:
" private void ActionSostituisci(PdfEditorCommandHandler.Args args)
{
if (pdfCtl.Doc == null) return;
PDFXEdit.IPXC_Document xD = pdfCtl.Doc.CoreDoc;
MenagerFileWork.IsModify = true;
try
{
//pdfCtl.Inst.ExecUICmd2(4011);
pdfCtl.Inst.ExecUICmd("cmd.tool.editFields");
var xF = xD.AcroForm;
if (xD.AcroForm.FieldsCount==0)
MsgBox.Warn("Nessuna variabile trovata nel PDF corrente");
for (int i = 0; i < xD.AcroForm.FieldsCount; i++)
{
var campo = xD.AcroForm.Field[(uint)i];
string NomeVar = campo.FullName;
var variabile = Variabile.GetVariabile(NomeVar);
if (variabile != null)
{
if (variabile.TipoModulo == TipologiaPDFModule.Check)
{
bool valore = Variabile.GetValueBool(variabile);
campo.CheckWidget((uint)0, valore);
}
else
{
string valore = Variabile.GetValueText(NomeVar);
campo.SetValueText(valore);
}
}
}
}
catch (Exception ex)
{
MsgBox.Exception("ActionSostituisci", ex);
}
finally
{
pdfCtl.Inst.ExecUICmd("cmd.tool.hand");
pdfCtl.Update();
pdfCtl.Refresh();
}
}"
The issue is:
After editing values in textboxes by code values appear hidden. Finally if you select texboxes, values appear.
Look this in video attached.
After editing values in textboxes values disappear
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 3
- Joined: Mon Mar 26, 2018 8:16 am
After editing values in textboxes values disappear
- Attachments
-
- VIDEO.zip
- (670.61 KiB) Downloaded 47 times
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: After editing values in textboxes values disappear
Hello Alex,
The problem is that you are using the Core level methods to modify the IPXV_Document that is on the Editor level. The UI part of the component does not know that you have modified something on the Core level, thus you will have to notify it. The easiest way of doing this is to use the https://sdkhelp.pdf-xchange.com/vi ... lds_modify operation - it launches all of the needed events, and also gives you a possibility to use the Undo/Redo data that it stored.
Cheers,
Alex
The problem is that you are using the Core level methods to modify the IPXV_Document that is on the Editor level. The UI part of the component does not know that you have modified something on the Core level, thus you will have to notify it. The easiest way of doing this is to use the https://sdkhelp.pdf-xchange.com/vi ... lds_modify operation - it launches all of the needed events, and also gives you a possibility to use the Undo/Redo data that it stored.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ