<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic obj.format_cell in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/obj-format-cell/m-p/32368#M6255</link>
    <description>When the user clicks on "Click here for updates" I would like a new window to open up to &lt;A href="http://www.sas.com" target="_blank"&gt;www.sas.com&lt;/A&gt;.&lt;BR /&gt;
The table looks correct, however, no link is being created.&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
	dcl odsout obj();&lt;BR /&gt;
	obj.table_start(name: "Stock",&lt;BR /&gt;
	overrides: "width=80pct");&lt;BR /&gt;
	obj.row_start();&lt;BR /&gt;
	obj.format_cell(data: "News",&lt;BR /&gt;
	column_span: 2,&lt;BR /&gt;
	overrides: "backgroundcolor=BIGB color=white font_size=14pt font_weight=bold");&lt;BR /&gt;
	obj.row_end();&lt;BR /&gt;
	obj.row_start();&lt;BR /&gt;
	obj.format_cell(data: "Data released",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=GRB");&lt;BR /&gt;
	obj.format_cell(data: "5/07/2010",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=black");&lt;BR /&gt;
	obj.row_end();&lt;BR /&gt;
	obj.row_start();&lt;BR /&gt;
	obj.format_cell(data: "Planned data release date",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=GRB");&lt;BR /&gt;
	obj.format_cell(data: "6/07/2010",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=black");&lt;BR /&gt;
	obj.row_end();&lt;BR /&gt;
	obj.row_start();&lt;BR /&gt;
	obj.format_cell(data: "Click here for Updates",&lt;BR /&gt;
	file: "http://www.sas.com",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=GRB");&lt;BR /&gt;
	obj.format_cell(data: "6/07/2010",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=black");&lt;BR /&gt;
	obj.row_end();&lt;BR /&gt;
run;</description>
    <pubDate>Mon, 07 Jun 2010 20:02:31 GMT</pubDate>
    <dc:creator>gzr2mz39</dc:creator>
    <dc:date>2010-06-07T20:02:31Z</dc:date>
    <item>
      <title>obj.format_cell</title>
      <link>https://communities.sas.com/t5/SAS-Programming/obj-format-cell/m-p/32368#M6255</link>
      <description>When the user clicks on "Click here for updates" I would like a new window to open up to &lt;A href="http://www.sas.com" target="_blank"&gt;www.sas.com&lt;/A&gt;.&lt;BR /&gt;
The table looks correct, however, no link is being created.&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
	dcl odsout obj();&lt;BR /&gt;
	obj.table_start(name: "Stock",&lt;BR /&gt;
	overrides: "width=80pct");&lt;BR /&gt;
	obj.row_start();&lt;BR /&gt;
	obj.format_cell(data: "News",&lt;BR /&gt;
	column_span: 2,&lt;BR /&gt;
	overrides: "backgroundcolor=BIGB color=white font_size=14pt font_weight=bold");&lt;BR /&gt;
	obj.row_end();&lt;BR /&gt;
	obj.row_start();&lt;BR /&gt;
	obj.format_cell(data: "Data released",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=GRB");&lt;BR /&gt;
	obj.format_cell(data: "5/07/2010",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=black");&lt;BR /&gt;
	obj.row_end();&lt;BR /&gt;
	obj.row_start();&lt;BR /&gt;
	obj.format_cell(data: "Planned data release date",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=GRB");&lt;BR /&gt;
	obj.format_cell(data: "6/07/2010",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=black");&lt;BR /&gt;
	obj.row_end();&lt;BR /&gt;
	obj.row_start();&lt;BR /&gt;
	obj.format_cell(data: "Click here for Updates",&lt;BR /&gt;
	file: "http://www.sas.com",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=GRB");&lt;BR /&gt;
	obj.format_cell(data: "6/07/2010",&lt;BR /&gt;
	overrides: "just=left font_weight=bold color=black");&lt;BR /&gt;
	obj.row_end();&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 07 Jun 2010 20:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/obj-format-cell/m-p/32368#M6255</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2010-06-07T20:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: obj.format_cell</title>
      <link>https://communities.sas.com/t5/SAS-Programming/obj-format-cell/m-p/32369#M6256</link>
      <description>Hi:&lt;BR /&gt;
  Well, if you were doing the report in PROC REPORT, the style override would be:&lt;BR /&gt;
[pre]&lt;BR /&gt;
style(header)={url='http://www.sas.com' foreground=purple background=pink}&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
However, I'm not sure that URL= will work with these data step objects, though. If you CAN use FILE: as the right argument, for setting a cell URL, I'm not sure that it will work with the FORMAT_CELL method. &lt;BR /&gt;
      &lt;BR /&gt;
You might also want to check in the pre-production documentation. The pre-production documentation is here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/datastep/dsobject/Power_to_show_documentation.pdf" target="_blank"&gt;http://support.sas.com/rnd/base/datastep/dsobject/Power_to_show_documentation.pdf&lt;/A&gt;&lt;BR /&gt;
     &lt;BR /&gt;
In the documentation,  I also note that there is an OBJECT.HREF method as shown here:&lt;BR /&gt;
[pre]&lt;BR /&gt;
obj.href(data: “SAS Home page”,&lt;BR /&gt;
file: “http://www.sas.com/index.html”);&lt;BR /&gt;
[/pre]&lt;BR /&gt;
           &lt;BR /&gt;
So, it seems like your FILE: might be OK if you used a different method than OBJ.FORMAT_CELL&lt;BR /&gt;
&lt;BR /&gt;
  Since the ODS DATA step object is still pre-production, you might want to check with Tech Support on this question. If they don't know the answer, they can work with the developers to get you the answer.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 07 Jun 2010 21:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/obj-format-cell/m-p/32369#M6256</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-07T21:10:44Z</dc:date>
    </item>
  </channel>
</rss>

