Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

SOLVED
Go to solution
Highlighted
Stingl
Regular Collector

HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Hey,

ive got an idea for our service desk tool. At the moment every user can write and make changes in some textfields like "solution", "discription" or "information"

And now to my idea set these fields to read only, and create a customized field where you enter the text. This text gets transfered into this readonly field. (works like a chat,write,send,see, but cant change it anymore)

It should also possible to add more text under the existing. So you can add text but its not possible to change it.

greetings

Hope someone gets what i mean, i have no clue how to implement in SD.

many greets
ben
21 REPLIES
Err_1
Honored Contributor
Solution

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Hello,

There is a possible way that you can try, although it might be too heavy for the system and this method consumes a lot resources because it involves several rules and updates to the same at a time.

Here is the scenario:
Create a custom field type 64K, add it to the form. This will be your "chat" field.

Then, create a UI rule before item is saved, and Solution is not empty, do a Data Update where you append the content of Solution field to this chat field, for example:

Before the item is saved
where NOT (Solution is empty)
Move Solution to Chat Field (Update Data) Chat_Field set to (Concatenate [Chat_Field] With [Solution]),
Clear Solution (Update Data) Solution set to (Make empty)

Do the same for other fields ("description", "information).

I hope this helps you...

Regards;
Randall Barrantes
SW Support Delivery Manager
Vasily Kamenev
Honored Contributor

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

hi
Err is right, that is possible to do with CF64k, but I'm recomend use DB rule with Concatenate function and add more to function datetime stamp and Registration Modified by. CF64k set as read only.

Vasily
Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Thanks so far, i will give it a try :)
Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Thats realy complicated, more than i thougt.


+created the field
+included it in the form
+creating a ui rule
Mine looks like this:
Information = read only field
Eingabe Information =chat field

Before the item is saved
where NOT (Information is empty)
Chatfield (Update Data) Eingabe Information set to [Information]

Need help with building ....
Vasily Kamenev
Honored Contributor

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Hi
Create the DB rule.

When service call is modified
where NOT (Information_update (*) is empty)
Update Information when support request is modified (Update data) Information set to (Concatenate [Registration Modified by] With (Concatenate added on With (Concatenate [Registration Modified] With (Concatenate EST:%line.separator% With (Concatenate [Information_update] With (Concatenate %line.separator%%line.separator%----------------------------------------------------------------------------%line.separator%%line.separator% With [Information]))))))

Vasily
Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Seems we dont have the same HP Versions :). I dont have any options like registration_modifiert , what is that line.seperator stuff ?

I attached a video, perhaps that helps to understand :)
Vasily Kamenev
Honored Contributor

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Hi
Video is cool :), but Concatenate function added early more then SP27. look attachment.

Vasily
Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Ah ok i see ,was well hidden, but at which point the field where i make the textinput comes in place?
Vasily Kamenev
Honored Contributor

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Sorry, not understood :(, explain plaese.

Vasily
Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

The field which is used in the rule is the "information" field but how interacts this with the field wich i want to use for the entering the text ?

Other Problem ist, i found the shown the menus, but i didnt understand how it work out.
Can you make video how to build the rule :) Camtasia works realy great for that.

thx so far
Vasily Kamenev
Honored Contributor

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

If you like got the text from some fileds, you need create some rules. Create the first rule, test and if all works, just CTR+C CTR+P and you create copy of rule, open and replace listening filed and the same field in function, close. You can copy/paste any more times.

Vasily
Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Ok Guys, iam back, but i didnt geht it to work, iam not realy familiar with creating rules. Its realy important to get this to work. Perhaps we should do it step by, for me the brainless monkey :)

Testing it first with a ui rule would be simpler to implement for me. After that a give the db rule a try.

Here the rule from Err again:

Before the item is saved
where NOT (Solution is empty)
Move Solution to Chat Field (Update Data) Chat_Field set to (Concatenate [Chat_Field] With [Solution]),
Clear Solution (Update Data) Solution set to (Make empty)

In the attached Word doc i inluded some pics how i build it, exactly ....

If I make a new Service Call write in that Input_For_Information Field nothing happens.

Writing in that Information field and save it, it gets cleared. Makes no sense, why clearing that Inforation field? New Text must added to existing one and should not be overwriten.

Suggestions ?



Vasily Kamenev
Honored Contributor

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Hi
Iâ m attached example from my rules about Solution
Believe it help to you.
Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Didnt ;) You have to explain the marked line.

completiton code Information < thats the attribute?
old solution solution Non Character Signs < for seperating

Screen from your form would also help, perhaps...
Vasily Kamenev
Honored Contributor

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Hi
I look at your doc, but if you like clear Solution, you must clera Solution not information by Rule. Second, You are use UI rule, but UI rule execute from user and use all user's rights by fields. That mean, if Information readonly(view) for user, then rule can't write to field, need use DB rule, DB rule execute from system.

Vasily
Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Ok that explains alot :) Then ive to do it with DB rule. Can you explain the following parts of your rule:

When service call is modified
where NOT (Information_update (*) is empty)
Update Information when support request is modified (Update data) Information set to (Concatenate [Registration Modified by] With (Concatenate added on With (Concatenate [Registration Modified] With (Concatenate EST:%line.separator% With (Concatenate [Information_update] With (Concatenate %line.separator%%line.separator%--------------------------------------------------------------------
--------%line.separator%%line.separator% With [Information]))))))

added on

What is: EST:%line.separator% ?Also a fixed value ?

What is Information_update for an field ?


Is that "%line.separator%%line.separator%--------------------------------------------------------------------
--------%line.separator%%line.separator%" although a fixe value ?

Would be nice to know to understand what it causes.

thx alot for your help so far
Vasily Kamenev
Honored Contributor

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

The easy way if post the result of rule execution:
Vasily Kamenev added on 17/09/08 09:17:05 EST:
Problem: when task not created by .....

----------------------------------------------------------------------------

Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

You mean the attached pic from you ?

When you say me what that "concatenate Old solution" means and that "concatenate [][]-----------[][]" stands for ? is that a fixed value ?


greets benni
Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

i succeded but not at all :) I understand how it works, i can write text from one field to another. But i dont stack the rules togehter, build one line and add it ... and so on.

Next Problem ist Formating it right. Hey pasts everything twice the first time, no clue why. Attached a Video :)

TestRule
(looks not like my whish i know:):


When service call is created
OR When service call is modified
where Sc. Person 1 equals Stingl, Benjamin
TextInputRule (Update Data) Information set to (Concatenate [Information] With %line.separator%-------------------%line.separator%);

Information set to (Concatenate [Information] With [Eingabe Information]);

Information set to (Concatenate [Information] With %line.separator%-------------------%line.separator%)



When iam done it should look like:


--Date:18.09.08--Call Opener:Benni Stingl---

TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT

-------------------------------------------


Stingl
Regular Collector

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

Forgot something to ask:

this %line.separator% command, where is it from ? There are other commands which i can use?
Vasily Kamenev
Honored Contributor

Re: HP SD 4.5 SP27 - Writing in a read only field with the help a costum Field

hi
doc sd45_sp20_addendum_en.pdf , p.46 %% .
//Add this to "OnDomLoad" event