# Using csciframe.setPropertyValue(...)

**URL:** <https://techcommunity.softwareag.com/t/using-csciframe-setpropertyvalue/75815>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [December 6, 2007, 10:31pm UTC](https://techcommunity.softwareag.com/t/using-csciframe-setpropertyvalue/75815 "2007-12-06T22:31:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mulrich](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@mulrich](https://techcommunity.softwareag.com/u/mulrich)\
**Post date:** [December 6, 2007, 10:31pm UTC](https://techcommunity.softwareag.com/t/using-csciframe-setpropertyvalue/75815/1 "2007-12-06T22:31:54Z")

</div>

Hi there,  
I integrated a normal html page into CAI.  
This html page contains some java script.  
I use:  
parent.csciframe.setPropertyValue(‘text’, getText());  
to send some data to the Adapter.  
This data is “html” Code.  
The bad thing is when I send this data:  
[b]

line1

line2

[/b]

I receive the following Exception:

```auto
java.lang.Error: Coud not interpret stream: m2032003405060000005CASA51_119696046142111969604613747769433623832313023ch.css.demo.adapter.PineditAdapterdummyhttp://localhost:51000/OAPGui/vertrag_oap_guii_clt/new1.htmlfalsep0400025text<p>line1</p>
<p>line2</p>p1500003pagePixelHeight924p1400004pagePixelWidth1400x041000

java.lang.Error: Coud not interpret stream: m2032003405060000005CASA51_119696046142111969604613747769433623832313023ch.css.demo.adapter.PineditAdapterdummyhttp://localhost:51000/OAPGui/vertrag_oap_guii_clt/new1.htmlfalsep0400025text<p>line1</p>
<p>line2</p>p1500003pagePixelHeight924p1400004pagePixelWidth1400x041000
	at com.softwareag.cis.xml.XMLString.getNextTag(Unknown Source)
	at com.softwareag.cis.server.InteractionModel.do(Unknown Source)
	at com.softwareag.cis.server.InteractionModel.setDataAsXML(Unknown Source)
	at com.softwareag.cis.server.XMLProcessor.processXML(Unknown Source)
	at com.softwareag.cis.server.Connector.doPost(Unknown Source)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:568)
```

Is there a way to tell CAI not to parse the text sent.  
Using encodeURI(getText()) works but is cumbersome.

Thanks for your time.  
Best regards,  
Matthias

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [December 12, 2007, 7:43pm UTC](https://techcommunity.softwareag.com/t/using-csciframe-setpropertyvalue/75815/2 "2007-12-12T19:43:13Z")

</div>

Hi Matthias,

One question: What functionality would you like to program via the JavaScript? Maybe you can use some more convenient higher level support of Composer/Designer. For instance:

You could have a subpage control and then use the dynamic page API to render your html dynamically in this subpage.

If it is just about passing a string, which contains html for further processing, you can easily set the corresponding value in your Adapter code like this:

```auto
data.setMyhtmlValue("<p>xyz<p>")
```

If you would like to integrate freestyle html at design time: The xcidemos2 contains a sample for this.

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:48pm UTC](https://techcommunity.softwareag.com/t/using-csciframe-setpropertyvalue/75815/3 "2021-04-02T14:48:59Z")

</div>


