File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed
gxweb/src/main/java/com/genexus/internet
java/src/main/java/com/genexus/internet Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -763,20 +763,6 @@ public void SendServerCommands()
763763 }
764764 }
765765
766- public void ajax_req_read_hidden_sdt (String jsonStr , Object SdtObj )
767- {
768- try
769- {
770- IJsonFormattable jsonObj ;
771- if (jsonStr .startsWith ("[" ))
772- jsonObj = new JSONArray (jsonStr );
773- else
774- jsonObj = new JSONObject (jsonStr );
775- ((IGxJSONAble )SdtObj ).FromJSONObject (jsonObj );
776- }
777- catch (JSONException exc ) {}
778- }
779-
780766 public void ajax_rsp_assign_prop_as_hidden (String Control , String Property , String Value )
781767 {
782768 if (!this .isAjaxRequest ())
Original file line number Diff line number Diff line change 44import java .util .Date ;
55import java .util .HashMap ;
66import java .util .Hashtable ;
7+
8+ import json .org .json .IJsonFormattable ;
9+ import json .org .json .JSONArray ;
10+ import json .org .json .JSONException ;
711import json .org .json .JSONObject ;
812import org .apache .logging .log4j .Logger ;
913
@@ -935,4 +939,18 @@ public boolean willRedirect()
935939 {
936940 return wjLoc != null && wjLoc .trim ().length () != 0 ;
937941 }
942+
943+ public void readJsonSdtValue (String jsonStr , Object SdtObj )
944+ {
945+ try
946+ {
947+ IJsonFormattable jsonObj ;
948+ if (jsonStr .startsWith ("[" ))
949+ jsonObj = new JSONArray (jsonStr );
950+ else
951+ jsonObj = new JSONObject (jsonStr );
952+ ((IGxJSONAble )SdtObj ).FromJSONObject (jsonObj );
953+ }
954+ catch (JSONException exc ) {}
955+ }
938956}
You can’t perform that action at this time.
0 commit comments