" /> Store procedure or queries to parse KV Pairs list in key1:Value1|... format - Genesys CTI User Forum

Author Topic: Store procedure or queries to parse KV Pairs list in key1:Value1|... format  (Read 4615 times)

Offline edobellamy

  • Newbie
  • *
  • Posts: 44
  • Karma: -3
Advertisement
Hi Has any body done PLSQL to parse UData info?
I know I have in the past but I cannot find them,

If you have some it would be greatly apraciated...

regard,

E

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
It depends on UData format,but I do not think that anybody from this forum want write SQL code for your proposal and for you. So,try to put a little bit effort
« Last Edit: February 18, 2013, 02:40:17 PM by Kubig »

Offline edobellamy

  • Newbie
  • *
  • Posts: 44
  • Karma: -3
Kubig, the posting asked if somebody has code, not if somebody could write, so put a little effort to read the question before posting.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Ok,in this way I would say "yes"

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
hahahaha, yes, me too.
Now edobellamy put an little effort on your side and do it too

Offline edobellamy

  • Newbie
  • *
  • Posts: 44
  • Karma: -3
Why reinvent the wheel ???

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Reinvent wheel?! The SQL script which is formating the User datas it's not possible to write in general form,because each environment and related UserData is in different format. Such a script would be so unreasonably robust and in most cases completely useless - logical.

Offline edobellamy

  • Newbie
  • *
  • Posts: 44
  • Karma: -3
The code only needs to to extract the keys and the values from a string, or the value for a key, or return nothing if nothing.
very simple, and I done it before many times. Even from blobs and clobs,  No biggie. Only I don't know what I did with my kv sps.
Thanks anyway.    :)

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
You are not right. How would you write general SQL script for KVP pairing,if you did not write from which source/database? KVPs can be stored in a lot of format type and in lot of source (database,WS,file,etc.) . Each point can change dependencies and format of final SQL script.

Offline edobellamy

  • Newbie
  • *
  • Posts: 44
  • Karma: -3
You can get inspired in EVDATA from Call Concentrator, check the BLOB form UCS, cheers

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Store procedure or queries to parse KV Pairs list in key1:Value1|... format
« Reply #10 on: February 19, 2013, 10:00:27 AM »
I do not want inspiration,I do not need anything,you need it :-) I know,how to format KVP for my customers and needs. I'm done with this pointless debate that leads nowhere.