dani3lsun / apex-plugin-apexsignature Goto Github PK
View Code? Open in Web Editor NEWOracle APEX Region Plugin - APEX Signature
License: MIT License
Oracle APEX Region Plugin - APEX Signature
License: MIT License
Hai,
Possible to guide me how to create component dynamic action like clear/save?
https://www.dropbox.com/s/civ1fwvu2vqa7bi/Untitled.png?dl=0
I was try to create DA like this, but its not working. And what should I put in True Action?
Thanks you
Hello there ! I try to save the signature as a blob image to my table, and I followed your code as it is here : #1 , but I get an error:
Ajax call returned server error ORA-20102: Application collection APEX_SIGNATURE does not exist for Execute PL/SQL Code. Do you have an idea of what is wrong here ?
All time Signature need to save in DB
I using the plugin in multiple place in my application but same problem in all the screen is first time user open this screen not saved into DB but same user again updating it's working fine I will change any logic
First time not save into DB (New User) or new system.
Apex Version 20.2 and 21.1
ORDS
Chrome and internet edge
I would like the plugin to output the signature to JPG instead of PNG.
Seems like the default when saving the BLOB is PNG.
Take the normal steps and save to the DB using a simple insert statement.
18.1.0.00.45
ORDS
Chrome latest
I am sure that I missed this setting somewhere, but is it possible to have the plugin output a JPG/BLOB instead of PNG?
Chose an Item to Submit, which i'd like to insert into the same table when writing the blob-signature.
Session-State of the item remains empty when no manual page submit or pl/sql-submit executed
I marked the checkbox for "items to submit" in the plugin attributes. then filled in the item on the region.
5.0.2
Ords 3.0.8
Firefox/Chrome
Thanks for this plugin. Works great!
Hello,
this is a nice plugin. Is it compatible with the apex mobile application?
Signature Saved to DB event to save signature picture in apex_collections table
Signature Saved to DB not saving signature in apex_collections table
Create Dynamic Action
Product Build | 22.2.2
Hi Dani3lSun,
How I can add a background image in the signature pad here an example of an image to be included https://i.ibb.co/Rh1YhDg/Condition-Report.jpg
this what I got when I modify the code
https://i.ibb.co/Tryhbh8/Capture111111111.jpg
Thanks
Hello, Has anyone tested whether this plugin is compatible with latest version of APEX 22.2 or Anyone working on it ?
i try to use your plugin
apex-plugin-apexsignature
but when i try to save sig to my database i get error
Ajax call returned server error ORA-01403: no data found for Execute PL/SQL Code
this line
l_blob := apex_web_service.clobbase642blob(p_clob => l_clob);
can you help me?:)
APEX 19-ORDS
Hello there ! I try to save the signature as a blob image to my table, and I followed your code as it is here : #1 and created a Dynamic Action to save the signature directly in my table like this :
DECLARE
CURSOR l_cur_signature IS
SELECT c001 AS filename,
c002 AS mime_type,
d001 AS date_created,
blob001 AS img_content
FROM apex_collections
WHERE collection_name = 'APEX_SIGNATURE';
l_rec_signature l_cur_signature%ROWTYPE;
l_filename VARCHAR2( 100 ) := concat(to_char(LOCALTIMESTAMP, 'DDMMYYYYHH24MISS'),'.jpeg');
BEGIN
-- get original collection from plugin
OPEN l_cur_signature;
FETCH l_cur_signature
INTO l_rec_signature;
CLOSE l_cur_signature;
-- insert into own table
INSERT INTO STAFF_SIGN
(ID,
L_BLOB,
L_FILENAME,
L_MIME_TYPE,
DATE_CREATED,
USER_NAME,
INVOICE_ID,
INVOICE_RECEIVER)
VALUES
(:P38_INVOICE_ID,
l_rec_signature.img_content,
l_filename,
'images/jpeg',
sysdate,
:P0_USER,
:P38_INVOICE_ID,
:P38_INVOICE_RECEIVER);
-- delete original collection
apex_collection.delete_collection(p_collection_name => 'APEX_SIGNATURE');
END;
but I get an error:
Ajax call returned server error ORA-20102: Application collection APEX_SIGNATURE does not exist for Execute PL/SQL Code. Do you have an idea of what is wrong here ?
Apex Release 19.2
Hello,
Has anyone tested whether this plugin is compatible with APEX 20.1?
Refresh report right away.
First time not refresh, only second time will refresh.
Step 1. without signature, click save, display message for need signature --- it is correct.
Step 2. draw signature, click save again, display message for need signature again, report not fresh--- it is incorrect
Step 3. without signature, click save again, no message, report is fresh.
19.2
Would your plugin have the capability to store multiple signatures into several different columns on a table? say 4 regions into their own columns?
The image inserted in an APEX collection or in a table (added the INSERT SQL statement)
Nothing happens
Normally draw a signature and press SAVE
21.1.6
and
21.2
ords-21.3.0.266.1100
Chrome 96.0.4664.93 (Build ufficiale) (a 64 bit)
I know that this issue has already been posted, but it is in another language (dutch? german?) and I haven't understood anything.
Can you please help me?
Thank you, Angelo Tumedei
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...
signature and other data is saved to apex_collectione and/or mytable
plugin neither saves to collection nor to table
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 20.2 on MAXAPEX.COM
ORDS 20.3
Chrome V 86.0,4240.198.
my adjusted pl/sql of the plugin:
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) ;
END;
Glad if you cud look into it - Danke Dir !!!
Gruss
Bernhard
Page items are set in session state
They're blank (see below as to why)
Create a page item with the following attributes:
Maintain Session State
: Per Request (Memory Only)
In the PL/SQL code reference that page item
-- ...
logger.log('p1_id', :p1_id);
-- ...
P1_ID
will be null as there is no option to include it as part of the apex.server.plugin
call.
Fix will be to include it
20.2 (also affects older versions of APEX (19 up I think)
Hello,
is there a way to extend the plugin so that you can save the signature as JPEG?
According to the documentation of signature_pad this should be possible, but I don't know where I can adapt this to make it work with the plugin.
// Returns signature image as data URL (see https://mdn.io/todataurl for the list of possible parameters)
signaturePad.toDataURL(); // save image as PNG
signaturePad.toDataURL("image/jpeg"); // save image as JPEG
signaturePad.toDataURL("image/svg+xml"); // save image as SVG
Many thanks for the help!
@ehabwagdy here we go...
save the signature in DB
1- what i should to write in "Save Button JQuery Selector" are button name or in button action select defined by dynamic action or what ?
2- i would to make change in attribute plsql to add my table are replace the following part
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_d001 => SYSDATE, -- date created
p_blob001 => l_blob); -- BLOB img content
END IF;
with my table
INSERT INTO CC.IBS_EMP_SIGNATURE (
IBS_NO, EMP_SIGNATURE, BOSTA_ID)
VALUES ( 44433/* IBS_NO /,
l_blob/ EMP_SIGNATURE /,
4455 / BOSTA_ID */ );
commit;
Background: See #13 for Page Items to Submit
and the session state option.
The use-case I have is the following:
seq_id
and store this in a page item (let's sage p1_seq_id
p1_seq_is
as part of my regular page submit process which I'll then get the blob from the apex_collection
In order to do this need to pass a data
object back in the PL/SQL code. Ex:
-- ...
apex_json.open_object;
apex_json.write('seqId', l_seq_id);
apex_json.close_object;
-- ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.