How to use a mysql built-in function with dataprovider
hi.
I want to use a mysql built-in function, for example, MD5() on a column when updating a table with dataprovider.
Something like this doesn't work:
MyDataProviderOne.setValue("tablename.field_name", "MD5('some text')");
How should it be done?
thanks.
Mike.
hi.
thanks. this helped, but I'd like to use also different functions, that's why, I'd rather do it by MySQL built-in functions with dataprovider... Is there any way to do that?
best regards.
Mike.
Similar Messages
-
How to use the discrete unit delay function with the simulate signal as the input?
Hi there,
I want to use the simulate signal as the input. First, i downsample the input with the downsampler.vi. Then I want to feed the output of the downsampled signal to the discrete unit delay block and display the delayed signal on the graph.
Somehow I can't use the delay block properly, do anyone know how to fix that?T_T
thanks!!!!
Ivy
please see the attachment
Attachments:
test.vi 164 KBHi nozombie,
In your VI the Delay VI only delays the measurment for one interation of your simulation loop. What are the results that you hope to see?
Regards,
Mike Altmann
LabVIEW Platform PSE
National Instruments -
How to use mac's full screen functionality with Adobe acrobat XI?
I recently switched to mac, so font have much experience with this.
My adobe reader is missing mac's full screen functionality (the two arrows on right that make mac fullscreen).
so, if i have three pdfs open, i cannot switch between them using the 4 finger swipe..
Please note that this is different from the adobe functionality (command + L) which allows it to become fullscreen, but it still occupies the desktop and so, i cannot swipe between different pdfs.
Thank you!Nope that is just the way it is with Mac OS X and the way Apple has setup the dual screen system.
-
How to use database look up table function in xsl mapping
Can anybody tell me how to use database look up table function while mapping xsl between 2 nodes.
I have an XML file coming in and depending on one of XML elements we need to decide which further path to take. But, using this XML element, we need to query database table, get metadata and accordingly take appropriate path. I have written lookup function which returns metadata value.
Now, the issue is how do I pass the XML element valu as input to look up function? When I tried to drag it to the input node of lookup function, it throws an error like "Maximum number of parameters exceeded"
Thanks,If the lookup table is always going to remain the same (e.g. a character generator or something similar) you can place the values in a 2D array constant on your diagram, with the input value as one column, the equivalent as the other. When you need to perform the lookup you use an index array to return all the values in the "input column", search it using "search 1D array" and use the resulting index number to index the other column's data. If the values may change, then it would probably be best to load an array control with your equivalent values from a file.
P.M.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion -
Req any examples of how to use a USB midi controller​/keyboards with Labview TIA
Req any examples of how to use a USB midi controller/keyboards with Labview TIA
Hi,
To access the MIDI ports you will need to call the Windows SDK. To send MIDI commands is relatively easy, here is an example that shows you how to send data to a MIDI controller or keyboard.
As far as input goes, this is the hard part. There are a series of functions that you need to call to open up the device, set some buffers and and possibly a callback to get notifications on the incoming data.
Reading MIDI data will not be an easy task, your best bet will be to implement this in a DLL and call that DLL in LabVIEW, there should be some code available o the web.
= "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_multimedia_... is a link to the Windows multimedia functions that you could use for MIDI input.
Let me know if you have any further questions.
Regards,
Juan Carlos
N.I. -
How to Use SQL Query having IN Clause With DB Adapter
Hi,
I am using 11.1.1.5 want to find out how to Use SQL Query having IN Clause With DB Adapter. I want to pass the IN values dynamically. Any ideas.
Thanksinvoke a stored procedure, it's safer than trying to put together an arbitrary SQL statement in the JCA adapter
-
How to use 45W MagSafe 2 Power Adapter with cable management MagSafe 2 power port macbook air 2013
How to use 45W MagSafe 2 Power Adapter with cable management MagSafe 2 power port macbook air 2013 there's two plugs do I use both for the safety to work or I just one ? Thanks sorry new macbook air 2013 was given to my daughter fir her 18th bday 2 days ago by my brother
No, the one is just an extension cord, just use the 45W charger with its attached thin cord and connect the magnetic magsafe to to the connector on the back left of the macbook Air for use and charging it
-
In SQLScript, how to use EXEC to call another procedure with parameters in procedure?
Hi experts,
In SQLScript, How to use EXEC to call another procedure with input and output parameters in procedure?thanks very muchHi Sagar,
thank you! I generate another procedure with an input parameter and an output parameter in a procedure. Then i need to call the generated procedure using EXEC. Here is my code:
create procedure ftest1(out sum_num bigint)
as
begin
declare fa_output bigint;
declare v_sql_drop varchar(200);
declare v_sql varchar(500);
declare cursor c_cursor1 for select num from TABLE1;
--v_sql_drop := 'drop procedure fe';
--exec v_sql_drop;
v_sql := 'create procedure fe(in i_num bigint,out o_num bigint) as begin';
v_sql := :v_sql || ' o_num := :i_num * 2 + :i_num * :i_num;';
v_sql := :v_sql || ' end';
exec v_sql;
open c_cursor1;
for c_item as c_cursor1 do
exec 'call fe(c_item.num,o_num=>fa_output)';
if sum_num is null then
sum_num := fa_output;
else
sum_num := :sum_num + fa_output;
end if;
end for;
close c_cursor1;
end;
The underline code is using exec to call the generated procedure. But this method cannot work. Any suggestion? thanks again! -
How to use Mac Mini Server as NAT with only one port??
How to use Mac Mini Server as NAT with only one ethernet port??
But why did apple sell me this server that does NAT with one port? I don't get it.
-
Getting Data From MySQL Database using Dreamweaver CS4 Built In Functions
Hi,
I am really in need of some help if you don't mind.
I basically have a website with user regsitration system etc and so on.
I basically connected to my Data Base in Dreamweaver CS4 and now want to use the tools in Dremweaver CS4 to display Data from database.
Problem is i see the tools but not really sure how i use them. I see on Data bar all the tools to view, update delete records etc.
I basically created a page where i want to display all the records in the DB. I done this using dynamic data selecting what fields to display etc and 15 records per page.
When i view the page in localhost thou it is only showing 1 record althou i have like 5 users in my test db.
So if anyone can really tell me how i go about displaying data from db that be great. When i learn how to do that i probably will understand and learn how to update records etc.
ThanksTo display all records, you need to apply a repeat region to the paragraph, div, or table row that contains the dynamic text objects for the database results. You might also find it helpful to follow the dynamic application tutorial in the Adobe Developer Connection.
-
How to use parameters in smartform genrated function module
i executed smartform one functional module is genrated '/1BCDWB/SF00000002'
now the problem is that i want to send output of this smartform through email
now how to use ' MAIL_RECIPIENT ' and ' MAIL_SENDER ' to send smartform output through email .
please check following module which generated by smartform.
plz suggest me .
CALL FUNCTION '/1BCDWB/SF00000002'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
ITAB_PA0001 = ITAB_PA0001
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Hi
You can do it while passing these parameters in the CONTROL_PARAMETERS.
data: ls_CONTROL_PARAMETERS type SSFCTRLOP.
ls_CONTROL_PARAMETERS-DEVICE = 'LOCL'.
ls_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
ls_CONTROL_PARAMETERS-PREVIEW = ' '.
Pass this ls_CONTROL_PARAMETERS to the importing parameter of the FM .
CALL FUNCTION LF_FM_NAME
EXPORTING
CONTROL_PARAMETERS = LS_CONTROL_PARAM
In addition to this, you might also want to set the print immediately field on the same structure to 'X'.
Generally you leave the device field empty, the user master record default printer will be used -
How to use quarter format in "to_date()" function?
Hi,
I'm trying to use to_date() function with quarter format. How do I specify the format?
For example to convert '2002 quarter 1' using the to_date function.
I tried to_date('20021', 'YYYYQ'), and I got ORA-01820 cannot appear in date input format.
Please help, thank you!!!You cannot use Q when inputting data, only when retrieving data. When inputting, you must enter a valid date. Oracle has to store a date and if you just enter a quarter, it can't figure out what date to store. See the examples below:
SQL> -- test table:
SQL> CREATE TABLE test_table
2 (test_date DATE)
3 /
Table created.
SQL> -- the wrong way to input:
SQL> INSERT INTO test_table (test_date)
2 VALUES (TO_DATE ('2002-1', 'YYYY-Q'))
3 /
VALUES (TO_DATE ('2002-1', 'YYYY-Q'))
ERROR at line 2:
ORA-01820: format code cannot appear in date input format
SQL> -- the right way to input:
SQL> INSERT INTO test_table (test_date)
2 VALUES (TO_DATE ('27-OCT-2002', 'DD-MON-YYYY'))
3 /
1 row created.
SQL> -- to output:
SQL> COLUMN "Year and Quarter" FORMAT A16
SQL> SELECT test_date,
2 TO_CHAR (test_date, 'YYYY-Q') AS "Year and Quarter"
3 FROM test_table
4 /
TEST_DATE Year and Quarter
27-OCT-2002 2002-4
1 row selected. -
How to use session variable in JSP function & How to use both JSP Servlet
Hi,
I am new to JSP and servlets
Still I am devloping a website in JSP. I am not mixing JSP with servlets, but I do create Java files for bean, logic and database works.
I try to keep the hard coding part out of JSP.
I dont how to use both JSP and Servlets in combination.
Hence If needed I write some functions in JSP.
but it gives me error
+<%! public void abc()+
+{+
int intUserId = Integer.valueOf((Integer) session.getAttribute("MySession_UserID"));
+}+
+%>+
Saying cannot find symbol session
1) So can u please tell how can I access session variables within JSP function
2) And also give me some links/tutorials about useing both JSP and Servlets in combination.
Thanks
VenkatThe application architecture when you use Servlets and JSP in a standard MVC pattern is explained here (under the heading "Integrating Servlets and JSP Pages") and here ...
-
How to use ODS As-Built Summary Report
Hi,
I am trying to use ODS As-Built Summary Report.
Then, first of all, it tries to configure Audit Log.
2.1.1 of ODSRG_SAPME_52_FINAL.pdf In Configuring the Audit Log, there is the following descriptions.
You can configure an objectu2019s audit log by selecting one of the following in the EJBDefBundle.properties file:
However, I cannot find EJBDefBundle.properties file.
Please teach if you know the preservation place of EJBDefBundle.properties file.
Am I misunderstanding the preparation to use ODS As-Built Summary Report?
Please teach a correct way if it is so.
thanksHi Yousuke
Looks like the document is a little bit outdated.
Audit Log is configured in System Setup activity under Maintenance->System Configuration. There is an Audit Log tab where you can set values Off, All or Current for various object.
Fo more details refer to the [Changing System Setup Settings|http://help.sap.com/saphelp_me52/helpdata/en/56/bf997e76dd42afa29d24d92c2d6853/frameset.htm] page in SAP Online Help for ME
Hope it helps
Ivan -
How to use shortcut keys on wireless keyboard with ipad
i just purchased an ipad 4 with a wireless keyboard and do not know how to use the function keys on the wireless keyboard to access the homescreen, scroll up and down, etc. please help with anything i need to turn on/off or download . thanks
If you have more than one keyboard active, you may be using a different one than you want. Use the "globe" key to make sure your virtual keyboard is set to Japanese Romaji or Japanese Kana. Which one do you use?
On the hardware keyboard, use apple/command plus space to switch between different keyboard layouts which may be active.
Maybe you are looking for
-
What does the "conversion error" I get when converting a pdf file to Microsoft word?
What is the "conversion error" I get when converfting a pdf file to aMicrosoft word?
-
After updating my iPhone 5 to iOS 8.1 it will not connect to the wifi network at work even though it recognizes it. It however still automatically connects to the network at home (this is the network I used to update the phone). My iPad however does
-
View Vacation/Sick Balances on Time Entry Page
Hi All , I am trying to explore the possibility to view Vacation / Sick Balances on the Time Entry Page in OTL . Whenever an employee enters OTL to enter time through "Self Service Time" responsibility , emp. should be able to view the available vaca
-
Getting the default pie chart colors
Hello, I have a pie and a bar chart that display the same information... Pie charts colors are filled automatically, and I would like to use those colors for my bar chart as well... is there any way to get those colors? Tnanks.
-
Configuring Receive Connectors for External Notifications while still displaying Site Name
This is closely related to the issue we 'resolved' in this blog Our SharePoint notifications would not display the Site Name in the Display Name. i.e. If an Expense Request was approved, we wanted the display name of the email to come from "Accoun