VoiceGuide IVR Software Main Page
Jump to content

Need Help With Rvget And Rvset

Recommended Posts

I assume that the VBS code below should produce a text box with the number 1, however the msgbox comes up with "$ProjectID"

 

Can you please let me know if I'm doing something wrong on this.

 

Thank you,

John

________________

 

Option Explicit

Dim vg, strTest

 

set vg = CreateObject("VoiceGuide.CommandLink")

 

vg.RvSet $RV_LINEID, "ProjectID", "1"

 

strTest = vg.RvGet($RV_LINEID, "ProjectID")

 

msgbox strTest

Set vg = Nothing

Share this post


Link to post

Instead of:

 

strTest = vg.RvGet($RV_LINEID, "ProjectID")

 

Please try using:

 

strTest = vg.RvGet($RV_LINEID, "RV[ProjectID]")

 

From http://www.voiceguide.com/vghelp/source/html/com_rvget.htm :

sRv

 

Required. Result Variable who's value is to be returned. The leading dollar sign can be ommited. eg. in case of $RV[GetCardDetails] just the RV[GetCardDetails] can be specified, and in case of $RV_CALLLENGTH just the RV_CALLLENGTH can be specified.

 

Note that this lets RvGet retrieve multiple RVs embedded within a string, basically converting all RVs within a string expression. eg :

 

strTest = vg.RvGet($RV_LINEID, "RV[ProjectID]_RV[OtherInput]_myowntag")

 

Are you using v7 or v6 or VoiceGuide?

Share this post


Link to post

On version 6, dialogic 24 port.

 

I changed the code for that module to the following..

 

Dim vg, strtext

set vg = CreateObject("VoiceGuide.CommandLink")

vg.RvSet $RV_LINEID, "RV[ProjectID]", "1"

strtext=vg.rvget($RV_LINEID, "RV[ProjectID]")

msgbox strtext

set vg = Nothing

 

Now the msgbox comes up blank. It just doesn't seem to want to take that number.

 

If you don't mind let me run a scenario by you real quick, you may have a better way to do what I'm trying.

 

Basically, I'm trying to make an int to hold the record line number for rewriting a reference to a query database module (ie., $RV[PTLoadData_6_INSERT INT HERE]. The intended function is to allow users to "scroll" through database lines having modules read back certain fields. If they're listening to record 1, and they press a key for next record, it should increase the int by 1, and start the same code over, but using the new line number so that it reads them back record 2 using the same modules that record 1 did.

 

Anything to help me out with that?

 

Thanks,

John

Share this post


Link to post

The line

 

vg.RvSet $RV_LINEID, "ProjectID", "1"

 

is OK. no need to change it.

 

Only the RvGet line required changing.

 

The VBScript code should be:

 

set vg = CreateObject("VoiceGuide.CommandLink")

vg.RvSet $RV_LINEID, "ProjectID", "1"

strTest = vg.RvGet($RV_LINEID, "RV[ProjectID]")

msgbox strTest

Set vg = Nothing

 

I'm trying to make an int to hold the record line number for rewriting a reference to a query database module (ie., $RV[PTLoadData_6_INSERT INT HERE]. The intended function is to allow users to "scroll" through database lines having modules read back certain fields. If they're listening to record 1, and they press a key for next record, it should increase the int by 1, and start the same code over, but using the new line number so that it reads them back record 2 using the same modules that record 1 did.

 

You should be able to use RVs within the RV name. Try an expression like this:

 

$RV[PTLoadData_6_$RV[myIndex]]

 

or

 

RV[PTLoadData_6_RV[myIndex]]

 

v7 of VoiceGuide can definitely do the above.

Share this post


Link to post

Great, that change did it. Thanks for that.

 

Is it your recommendation to upgrade to 7? I know typically older versions can be a bit more stable (more time in the wild, patches, etc.) but you deal with this more that I do. Is it more stable?

 

If you have a link to a comparison chart, or feature summary for 7 that would be great.

 

Thanks again for the help!

John

Share this post


Link to post

We would recommend moving over to v7 for T1/E1 ISDN systems.

 

v7 has a better handling of ISDN error situations, runs natively as a Windows service, and can achieve better sound quality then v6.

 

It also uses less CPU then v6 when running T1/E1 ISDN systems.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×