You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hallo Daniel,
sorry to bother you. Hast Du das schonmal für 20.2 getestet ?
Ich vermute , der "token" wird nicht gefüllt... und darum geht es nicht weiter...
Expected behavior
signature and other data is saved to apex_collectione and/or mytable
Actual behavior
plugin neither saves to collection nor to table
Steps to reproduce the issue
Entry form for visitors. keying in name and telefon and finally signature
all shud be saved to the table Q_BESUCHER (name, filename, img_content (BLOB), mime_type, created_date)
for inserts
test-App on apex.oracle.com available #67820
User: Daniel - Workspace und Passwort separat per Mail...
APEX version (4.2.6 / 5.0.3)
APEX 20.2 on MAXAPEX.COM
Used web server / version and platform (ORDS 3.0.3 / Tomcat 7 / Apache 2.4 / Linux x64)
ORDS 20.3
Used web browser / version and platform (Chrome 48 Mac / Firefox 44 Windows)
Chrome V 86.0,4240.198.
my adjusted pl/sql of the plugin:
DECLARE
l_collection_name VARCHAR2(100);
l_clob CLOB;
l_blob BLOB;
l_filename VARCHAR2(100);
l_mime_type VARCHAR2(100);
l_token VARCHAR2(32000);
l_id VARCHAR2(10); -- PK of the visitor of table Q_BESUCHER
BEGIN
-- get defaults
l_filename := 'signature_' ||
to_char(SYSDATE,
'YYYYMMDDHH24MISS') || '.png';
l_mime_type := 'image/png';
-- build CLOB from f01 30k Array
dbms_lob.createtemporary(l_clob,
FALSE,
dbms_lob.session);
l_id := :P2_ID;
FOR i IN 1 .. apex_application.g_f01.count LOOP
l_token := wwv_flow.g_f01(i);
IF length(l_token) > 0 THEN
dbms_lob.writeappend(l_clob,
length(l_token),
l_token);
END IF;
-- create own collection (here starts custom part (for example a Insert statement))
-- INSERT INTO Q_BESUCHER_UNTERSCHRIFTEN(besucher_fk,filename, mime_type, img_content, date_created)
-- VALUES (l_id, l_filename,l_mime_type, l_blob, sysdate) ;
-- collection name
l_collection_name := 'APEX_SIGNATURE';
-- check if exist
IF NOT
apex_collection.collection_exists(p_collection_name => l_collection_name) THEN
apex_collection.create_collection(l_collection_name);
END IF;
-- add collection member (only if BLOB not null)
IF dbms_lob.getlength(lob_loc => l_blob) IS NOT NULL THEN
apex_collection.add_member(p_collection_name => l_collection_name,
p_c001 => l_filename, -- filename
p_c002 => l_mime_type, -- mime_type
p_c003 => :P2_ID, -- PK of Entry form
p_d001 => SYSDATE, -- date created
p_blob001 => l_blob); -- BLOB img content
END IF;
END;
Glad if you cud look into it - Danke Dir !!!
Gruss
Bernhard
The text was updated successfully, but these errors were encountered:
Daniel, I did some further investigation and experienced, that the pl/sql contained is not fired at all.
oder ich bin zu blöd... : ich habe den Buttons static ID's gegeben CREATE = 1 - CANCEL = 2 und diese dann beim Attribut eingetragen für "Save Button JQuery Selector" eingetragen.1... oder wie ist das gemeint ? - auch die NAMEN der Buttons firen nicht.
Soll ich denn eine DA für den Zweck anlegen ????? Du schreibst ja von 3 DAs in Deiner Doku.. (???)
Schick mir doch bitte sonst mal die Demo Application... da sehe ich es ja....
Dann gibt es auch 1 (oder 2-3 Bier) (;-)
Gruss und Danke
Bernhard
Hallo Daniel,
sorry to bother you. Hast Du das schonmal für 20.2 getestet ?
Ich vermute , der "token" wird nicht gefüllt... und darum geht es nicht weiter...
Expected behavior
signature and other data is saved to apex_collectione and/or mytable
Actual behavior
plugin neither saves to collection nor to table
Steps to reproduce the issue
Entry form for visitors. keying in name and telefon and finally signature
all shud be saved to the table Q_BESUCHER (name, filename, img_content (BLOB), mime_type, created_date)
for inserts
test-App on apex.oracle.com available #67820
User: Daniel - Workspace und Passwort separat per Mail...
APEX version (4.2.6 / 5.0.3)
APEX 20.2 on MAXAPEX.COM
Used web server / version and platform (ORDS 3.0.3 / Tomcat 7 / Apache 2.4 / Linux x64)
ORDS 20.3
Used web browser / version and platform (Chrome 48 Mac / Firefox 44 Windows)
Chrome V 86.0,4240.198.
my adjusted pl/sql of the plugin:
DECLARE
l_collection_name VARCHAR2(100);
l_clob CLOB;
l_blob BLOB;
l_filename VARCHAR2(100);
l_mime_type VARCHAR2(100);
l_token VARCHAR2(32000);
l_id VARCHAR2(10); -- PK of the visitor of table Q_BESUCHER
BEGIN
-- get defaults
l_filename := 'signature_' ||
to_char(SYSDATE,
'YYYYMMDDHH24MISS') || '.png';
l_mime_type := 'image/png';
-- build CLOB from f01 30k Array
dbms_lob.createtemporary(l_clob,
FALSE,
dbms_lob.session);
FOR i IN 1 .. apex_application.g_f01.count LOOP
l_token := wwv_flow.g_f01(i);
END LOOP;
-- convert base64 CLOB to BLOB (mimetype: image/png)
l_blob := apex_web_service.clobbase642blob(p_clob => l_clob);
-- create own collection (here starts custom part (for example a Insert statement))
-- INSERT INTO Q_BESUCHER_UNTERSCHRIFTEN(besucher_fk,filename, mime_type, img_content, date_created)
-- VALUES (l_id, l_filename,l_mime_type, l_blob, sysdate) ;
-- collection name
l_collection_name := 'APEX_SIGNATURE';
-- check if exist
IF NOT
apex_collection.collection_exists(p_collection_name => l_collection_name) THEN
apex_collection.create_collection(l_collection_name);
END IF;
-- add collection member (only if BLOB not null)
IF dbms_lob.getlength(lob_loc => l_blob) IS NOT NULL THEN
apex_collection.add_member(p_collection_name => l_collection_name,
p_c001 => l_filename, -- filename
p_c002 => l_mime_type, -- mime_type
p_c003 => :P2_ID, -- PK of Entry form
p_d001 => SYSDATE, -- date created
p_blob001 => l_blob); -- BLOB img content
END IF;
END;
Glad if you cud look into it - Danke Dir !!!
Gruss
Bernhard
The text was updated successfully, but these errors were encountered: