DB Read Step

Hi
How can I run a query with DB read step in UCCX to fetch information from DB only if the variable contains certain value[s].
For example in SQL I would use the statement select * from DB where phone1 like '%234%' would return all records that contain 234 in phone1 field.
R
Ibrahim SAYEED
Message was edited by: Ibrahim Sayeed

Hi
My requirement was met when I used stored procedure instead of the query statement with DB Read step.
R
Ibrahim SAYEED

Similar Messages

  • UCCX 10 and SQL server 2012 Integration - Read Step returns 0

    Hi All,
    I managed to integration the UCCX with SQL 2012, when I press Test, it goes successfull.
    However, I put the very simple Read step which does  : "SELECT * from Table" , but it returns 0.
    I put wireshark on SQL Server and found out the communication seems to be OK.I can see
    SQL Batch
    response
    ACK
    But still not sure wht the read step return 0.
    Thanks,
    Hamed

    Hi,
    if you mean that pressing the Test button returns 0 in the "Number of rows returned" field, it's perfectly normal.
    Does the subsequent DB Get step return anything?
    G.

  • Creating UCCX 8.5 script to contact DB using http or any other ways other than DB read step

    Hi,
    I'm willing to create script that has the ability to read from external DB without using the DB read step, the reason is because my customer doesn't want to share any DB queries or user credential from DB at all and he's asking to contact any middle application or party that redirect me to his DB.
    I'm assuming that HTTP request can achieve this but I'm not aware even how to do it since I'm new on scripting so appreciate any hint if this is applicable or if there is any way to make it work.
    Many thanks in advance!

    You are correct in that you can make a http request to an external web server and you can pass values as parameters.
    The web server would then access the database and build the result as an XML file to pass the results back to you.
    If your customer has the skills to build this it will work, this is also a way to access an unsupported database.
    Graham

  • "Read Steps Generated" sometimes differs by factor of 4

    This is my latest problem, and probably the best question that I've asked on this forum.
    I am configuring a simple move portion of my program:
    Setting operation mode to absolute position, inputting a target
    position (steps),  start motion, and read steps generated. 
    For this case, X steps into target Position yields X steps from the
    read steps generated.
    Now, I want to try something different
    So, I configure the axis for velocity mode:
    Setting operation mode to velocity, inputting a velocity
    (steps/s),  start motion, and read steps generated.  Its
    difficult in this case to determine the quantitative difference between
    actual steps and what this is returning, but I don't feel as though
    they are the same.
    Now for the problem:
    After configuring the axis to perform as above, I now switch back into absolute position:
    Setting operation mode to absolute position, inputting a target
    position (steps),  start motion, and read steps generated.  For this
    case, "X"steps into target Position yields "4X" steps from the read steps
    generated.
    The best I can figure, this is also the difference in the velocity mode.
    Does anyone know why this is?  I know its off by a factor of 
    4, but  the idea of a spurious 4 floating around in my program
    doesn't satisfy me.  And since its not constant, it may revert
    back to the original operation mode without knowing (or too late after
    a destructive test is run). and skewing my data.

    Hi RManion
    1) Is it always a factor of 4, regardless of how long you stay in Velocity mode?
    It has been giving me weird results for awhile.  I made a side program to test it out.  The factor of 4 that I found was while in Absolute Postion Mode.  The output of the "read steps generated" VI, when divided by 4, equaled the target position.
    2) Do you use a halt before changing operation mode?  In the past I've seen some weird results when the operation mode is changed without halting execution.
    I don't believe I did.  Let me see what that does.  I've reset and reinitialized the 7344 Hardware, and its still off by 4 (not sure if it'll switch back).
    Oh, and you were right about the Torque section in the user manual.  I finally found the section and it gave a pretty straightforward explaination.  It was similar to what I had been using, but I'm modifing it slightly to accomidate my needs.  

  • Unable to save LiveCycle PDF form in Adobe Reader: Steps on Adobe don't work

    I went to follow the steps provided in the help video on Adobe. Two issues I couldn't solve:
    How do you login to LiveCycle via the web as an admin? How do you get to the LiveCycle admin portal?
    The local host (http://localhost:8080/ReaderExtensions) is unavailable. Every time I try to go there I get a 500 error message page. What is the new local host?
    The steps I followed were:
    So according to a video on its official website, in order to enable LiveCycle forms in Reader so they can be saved you need an Adobe Reader Extension which means we need a Reader Extension Credential loaded onto the server. For that you need to purchase a Reader extension license from Adobe.
    However, there is a trial version Eric or Jay could instal for me on the Remote Desktop. They can find it at:
    http://www.adobe.com/devnet/livecycle.html
    They will want to download the “Trial Reader Extensions Certificate” under “Downloads and updates”. It’s a 30 day trial which should work fine for our needs.
    The credential then needs to be imported into the Adobe Administrator. To do that they need to:
    Login to LiveCycle as an admin (via the web?)
    Go to “Settings"
    Go to “Trust store management”
    Go to “Local credentials”
    Click “Import"
    Trust store type should be “Reader Extensions Credential”
    Give it a name (i.e. Alias)
    Browse to credential file
    .pfx is the credential file
    .txt is the password
    Right-click the .txt
    Click “Open”
    Copy password from notepad
    Close notepad
    Open the .pfx file
    Paste in password copied from .txt file under “Password” in import form
    Click OK
    Then there’s something about going to Adobe LiveCycle Reader Extensions program (http://localhost:8080/ReaderExtensions). Don’t ask. I’m personally lost at this point.
    In Extensions program they need to:
    Select the Extensions credential
    Click the check box next to
    “Basic form fill-in”
    “Import and export data”
    “Submit outside of web browser”
    “Database and web service connectivity”
    “Digital Signatures”
    “Commenting”
    “Online Commenting"
    Set “Draft Level” to “Final”
    Click the check box next to “Full Save”
    “Browse” to the SNAP Survey I created and saved on the server.
    Click “Apply”
    In new window that appears:
    Click “Download”
    Save back to the server

    If you're on the machine that's running LC the administrator console is http://localhost:8080/adminui
    If you're not able to get to localhost:8080/ReaderExtensions then I suspect the LiveCycle server is not on your machine.  If that's the case you'll have to find out the name of the server running LiveCycle and connect using that name instead of localhost.

  • What username and password is used for a Mac on the Install of Adobe Reader,  (Step 8 in procedure)

    Is it a Mac or Adobe password used for installing Reader to a Mac OS? Doesn't. Say in step 8 of procedure.  We cannot. Get past this point.  Thanks.

    See https://forums.adobe.com/thread/1619850

  • How can i READ Steps / Revolution

    I'd like to READ the predefined (in MAX) "Steps per Revolution" (depending on the Board ID and Axes). Is this not possible?
    I am using LabView 8.5 with NI-Motion-VIs, where just a LOAD "Steps per Revolution" is available.
    Solved!
    Go to Solution.

    The NI-Motion API doesn't provide an option to read this value. If you want to have complete control about your motion settings in your application, you should consider loading them in your application.
    Kind regards,
    Jochen Klier
    National Instruments

  • Reading steps from axSequence​View

    Hi,
    I'm using TS2010 with Operator Interface built in C#  in Batch Model.
    So ,After the all the excutions was done I need to print the last step that failed from each axSequenceView.
    Is there a simple way to read the axSequenceView (not using UIMessageEvent)
    Thanks
    Asaf

    Hello asafv
    That is the most commomly used. I will do some research and let you know-
    Regards
    Mart G

  • UCCX 9.0.2 DB Get step in CCX Editor will not save Field Selection Values. DB Read Working

    Good Evening All!
    I've got a strange one for you (strange to me at least). I'm building a script that does an MS SQL database dip. I have configured the DB Read step with a query that returns entries from a single table and in the "Success" Label area I have put a DB Get function. I see the data source from DB Read in the General tab and select it, that part behaves correctly. I then go the Field Selection tab and add a value (or values) (see screen shot). This would appear to work correctly. I then do an apply but nothing gets set in the DB Get function. What am I doing wrong? I'm willing to be its something simple. Any guidance you all can provide would be greatly appreciated.
    Many Thanks!
    Justin

    Hi,
    it's kind of hard to see as we don't see your configured data sources. Anyway, did you try reactive debugging? I recommend you insert Annotation steps so when you actually execute the script step by step, you see what the DB GET step returns and what exit it takes. Like this:
    This way you will be able to see what's wrong and also the value of sAgentID.
    One more thing: it's always recommended to use the DB Release step once you finish your database operations. It basically tells UCCX that it can return the database connection to the pool so it may be available for another thread. Like this:
    G.

  • Can I put a READ function in a TRUE/FALSE case structure?

    Hi,
    I have a vi that operates as controller for a mechanical system of motors.  There are several sensors of various types, that provide input to the vi, including encoders, whose period is being measured.  The attached vi is the encoder period measuring part. It measures 15 periods and tells me the average of the 15 with each loop iteration.
    In my application, the encoder period measurement is not needed unless the vi knows that ALL THE OTHER sensors in the hardware configuration are measuring values within the desired range.  For example, Sensors A, B and C should all measure between 5-10.  If they are all showing values between 5-10, then, we want the encoder value to read and display.  If only one of the sensors, say A, is measuring 12, then, we don't want the period value to READ or be subsequently processed.  So, it is easy to set up the sensors A, B, C, to give a TRUE or FALSE based on whether they are within range or not, and if all 3 are TRUE, then, that value can easily be passed to the case structure that holds my READ function for the period.  Is this a good way to do this?  The goal is to eliminate unnecessary execution time that the period READ function would consume, as well as all subsequent calculations that are performed on the period value collected.  The period data is of no use if any one of the other sensors is not in the correct range.
    If any one of the other sensors is out of range, we want to skip the encoder READ step altogether.  So, it is easy to structure a BOOLEAN in my vi as shown in the attachment.  If I do it this way, will it throw an error, or just skip the READ until the BOOLEAN is true again?  Is there a better way to prevent the READ from happening if one of my other sensor values is not within the correct range?
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    forum JUly 18.vi ‏26 KB

    Sure, you can put a Read inside a case structure. For your application, just check that your sensors are all within range (Comparisons palette), then AND the T/F's and use the result of that for your case structure. (If you are already doing the in-range check, I can't see it here because you have 5 subVIs that I cannot open here.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • UCCX DB Get Step - Retrieving data from a Temp Table

    Hello All,
    I have a situaion where I am running a stored procedure from a DB Read step and this stored procedure creates a temporary table that holds the data from SQL. I need assistance in determining how to retrieve this data as the table is dropped once the SP has finished. I am sure there will be additional information requested for you to help me out, but I appeciate everyone's help in advance.
    Chris G

    Hi Chris,
    I am trying to achieve the same. Did you manage to figure this out?
    Thanks.

  • How can i modify a step type description?

    I need to modify the description of some custom step types. I saw how this is made in the Basic Ivi step types. What i want to do is to display the current selected operation for an ivi step type as is done in the basic Ivi step type. Isaw that this is done just evaluating the vriable instrOperation and depending on the value you guys insert a name corresponding to that value.
    I tried to do the same and modified a custom step's description in order to display the currently selected oparation. The problem is that i can't display any label...instead of the label i want to appear i get a "String not found in Table" message in the step's description. What table is this?...Do i need to make the changes i want in a table or i can just use some predefined labels?...this is because with simple words like FREQUENCY or INIT the description seems to work fine. What can i do to solve the problem?
    This is the description i have in the step:
    ResStr("IVI_STEP_TYPE", "IVI", "IVI") + " " + ResStr("IVI_STEP_TYPE", "Counter", "Counter") + ": " + ((Step.LogicalName=="") ? ResStr("IVI_STEP_TYPE", "UNSPECIFIED LOGICAL NAME", "UNSPECIFIED LOGICAL NAME") : LocalizeExpression(Step.LogicalName)) + ", " + ResStr("IVI_STEP_TYPE", ((Step.Operation==0) ? "CONF FREQUENCY" : ((Step.Operation==1) ? "MEASURE" : ((Step.Operation==2) ? "READ" : ((Step.Operation==3) ? "INIT" : ((Step.Operation==4) ? "STATUS" : ((Step.Operation==5) ? "ABORT" : ((Step.Operation==6) ? "FETCH" : ((Step.Operation==7) ? "PERIOD" : ((Step.Operation==8) ? "CONF. VERTICAL" : ((Step.Operation==9) ? "CONF. INPUT IMPEDANCE" : ((Step.Operation==10) ? "CONF. BANDPASS FILTER" : ((Step.Operation==11) ? "CONF. LOWPASS FILTER" : ((Step.Operation==12) ? "CONF. HIGHPASS FILTER" : ((Step.Operation==13) ? "UNCONFIGURE FILTER" : ((Step.Operation==14) ? "SECONDARY EVENT" : ((Step.Operation==15) ? "RISE TIME" : ((Step.Operation==16) ? "FALL TIME" : ((Step.Operation==17) ? "POSITIVE PULSE" : ((Step.Operation==18) ? "NEGATIVE PULSE" : ((Step.Operation==19) ? "CONF. INTERVAL X TO Y MEAS" : ((Step.Operation==20) ? "CONF. PHASE X TO Y MEAS" : ((Step.Operation==21) ? "MEASURE X TO Y" : ((Step.Operation==22) ? "CONF. EXT. START ARM" : ((Step.Operation==23) ? "CONF. IMM START ARM" : ((Step.Operation==24) ? "CONF. EXT. STOP ARM" : ((Step.Operation==25) ? "CONF.TIME STOP ARM" : ((Step.Operation==26) ? "CONF. DIGITS STOP ARM" : "INVALID OPERATION"))))))))))))))))))))))))))))
    and this is the description i get in some of the steps:
    Ivi Counter, "Sample Counter", String not found in table

    Eromero -
    The ResStr function retrieves a string from the TestStand language resource files. We call this a table. The funtion requires a category and tag value name. Review the Creating String Resource Files section in Chapter 3, page 6 of the User Manual for more details.
    So the strings that you are already referencing are in the IviStepTypes.ini file in the
    Components\NI\Language\English directory. You could add your new strings that you require to a sister file that you would create under the Components\User\Language\English directory, or you can remove the call to ResStr and just hardcode the string with your step type if you do not want the ability to translate the string for other languages.
    The call that is probably failing is:
    ResStr
    ("IVI_STEP_TYPE", ((Step.Operation==0) ? "CONF FREQUENCY" : ...
    Also, right now the call to ResStr("IVI_STEP_TYPE", "Counter", "Counter") is probably failing and just using the default value you supply in the call.
    Scott Richardson - NI
    Scott Richardson
    National Instruments

  • Failed to acquire a wave using ivi dmm step with a FlexDMM NI-4070

    I tried to acquire wave with a FlexDMM NI_4070 and a Read Multipoint ivi step from TestStand, it didn't went thru. Configuration step is: DC volts, 0.01 resolution, immediate trigger source, auto once range mode, 0 trigger delay, 100 multipiont sample count, 10 sample interval, 1 trigger count, interval sample trigger, none meas complete dest; Read step is: wave data type, Step.Result.Reading meas dest, 5000 time out, "failed" status on time out. What I get is failed status due time out.

    Try setting your Timeout to 30000. The Timeout is in milliseconds, while the Sample Interval on the Advanced tab of the Configure step is in seconds. You have this interval set to 10. Setting your timeout to 30 seconds will give your Read operation time to complete.
    Regards,
    Eric M.

  • Got 17300 error when execute IVI step in TestStand

    Hi all
    This is a PCBA test platform,, a 4072 card is used for two sockets, I locked the DMM blocks in order to have just a socket access it at same time.
    but the DMM read step type still often has 17300 error, value invalid or out of range, if run only one socket, did not see same problem.
    Confused on this.
    *The best Chinese farmer*
    Attachments:
    dmmerror.JPG ‏153 KB

    Hi Farmer
    The DMM is configed to immediately trigger mode, see attachment, according to the help, immediate means DMM dose not wait for any trigger signal, just read it as soon as the "Read DMM" running.
    帖子被paulbin在09-12-2007 10:17 PM时编辑过了
    帖子被paulbin在09-12-2007 10:27 PM时编辑过了
    *The best Chinese farmer*
    Attachments:
    DMMConfigWindow.PNG ‏55 KB

  • Get current step number and handling max steps exceptions

    We are using IPCC Express Premium 4.0.4 and would like to know:
    1. Is it possible to determine the execution number for the current step? For example, x number of steps have been executed up until a certain point in the script. Possibly via a Set step using Java or a DB Read step?
    2. When the system parameter "Max Number of Executed Steps" limit has been reached the exception "com.cisco.wfframework.obj.WFMaxExecutedStepsExceededException" exists within the CRS Engine MIVR log. This exception does not exist within the available exceptions list in the "On Exception Goto" step. Is there a way that we can intercept this specific exception or will we have to use the "com.cisco.app.ApplicationTaskInactiveException" exception instead?
    We have been experiencing stuck Reserved agents and periodic callers stuck in queues, which has been occurring due to the maximum number of executed steps being exceeded. We have increased our "Max Number of Executed Steps" parameter from 1,000 to 2,500 for the time being and we may need that higher still.
    Our script has a lot going on after every 30secs of hold music....to determine if notification pages/emails need to be sent out to Help Desk staff due to long wait times, or to play updated status prompts only when appropriate....to name a couple. To our knowledge we have made things as efficient as possible (using Sessions) and we will be making a few more tweaks, but nowhere near enough to stay under the default 1,000 limit.
    I asked question # 1 to help us better assess what our step execution counts are for different logic scenarios, rather than manually trying to count the steps within our script. I asked question # 2 so that we can send pages/emails to ourselves if a WFMaxExecutedStepsExceededException exception does occur and include the phone number of the caller who would have ended up not getting through so we can call them back not long after.
    Thank you for any info you can provide!
    Tom

    I'll try and answer the issues in this thread in turn:
    "1. Is it possible to determine the execution number for the current step? For example, x number of steps have been executed up until a certain point in the script. Possibly via a Set step using Java or a DB Read step?
    2. When the system parameter "Max Number of Executed Steps" limit has been reached the exception "com.cisco.wfframework.obj.WFMaxExecutedStepsExceededException" exists within the CRS Engine MIVR log. This exception does not exist within the available exceptions list in the "On Exception Goto" step. Is there a way that we can intercept this specific exception or will we have to use the "com.cisco.app.ApplicationTaskInactiveException" exception instead? "
    ----->Sadly this is not in the On Exception Goto step. Several people have commented on this to Cisco and I would recommend you join the crowd. Talk to your Cisco Account Manager. If you are a partner, submit a well thought out request to [email protected].
    "Our script has a lot going on after every 30secs of hold music....to determine if notification pages/emails need to be sent out to Help Desk staff due to long wait times, or to play updated status prompts only when appropriate....to name a couple. To our knowledge we have made things as efficient as possible (using Sessions) and we will be making a few more tweaks, but nowhere near enough to stay under the default 1,000 limit. "
    ----->You should be using sub flows for this type of work. Sub flows are a separate script and as such, have their own maximum step count each time you call them. Put all of this extra logic into a separate script and call it each iteration through the queued loop.
    "In most of the cases,you should not hit the 1000 step limit unless there's a loop in the script."
    ----->Exceeding this is not recommended by Cisco as it increases the amount of memory being used by each script instance. I would proceed with a great deal of caution.
    "I want to check to see if the caller pressed 1 (to leave a message type functionality) anytime during the queue loop. Not just when a delay expires and a prompt is played. This easily exceeds the default max steps. "
    ----->The common way of doing this is uploading a WAV of your music on hold to the prompt repository and then using a Get Digit String step with the MoH WAV file as the prompt for it. This allows the caller to press it at the IVR is essentially always waiting for a DTMF digit. You can use Match or If statements within the Success branch to determine if they pressed the correct digit.
    "Where I can make the max steps very large ?
    I am using CRA3.5.
    Please help ASAP,
    Thanks"
    ----->Again, not recommended! You can almost certainly break your script into appropriate functional components and use subflows to drastically reduce the likelihood of hitting the maximum.

Maybe you are looking for

  • Version to be invoked only for overall limit field in service PO

    Hello, I have service PO where we get the Limits tab in Item Level. In the Limits tab we have Overall limit and Expected value Normally , release statergy is based on the expected value But the client requirement is to change based on the Overall lim

  • Samba create mask not working

    Hi all, I'm setting up a file server for my college. The biggest problem I've had so far is that in samba, the create mask options do nothing! Files create with default permissions of rw for the owner, then r for everyone else. That's system wide tho

  • Java 2 vs. Netscape security model

    Hi, new user here, downloaded and installed Java Virtual Machine plug-in, 1.4.2-b28, Wednesday evening. Added Java capability to IE 6.0.28. Running XP. Encountered a problem with a URL that had worked with Microsoft VM on another machine on my home n

  • My computer crashed and I lost all of my music. Can I restore it from what I have on my Ipod?

    Can you restore music from your Ipod to the computer? My computer crashed and I lost everything.

  • Best location to save projects in Captivate 6

    I am currently saving all of my Captivate 6 projects to my C drive.  I wanted to make sure that this is the best place to save my main projects.  Also, what is a best practice to save the backup projects (is it ok to save them on a network drive?). T