cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Generated text and hidden elements

ebheadrick
1-Newbie

Generated text and hidden elements

Hi all Happy New Year,

I have tags that are hidden by :

<elementoption docmapinline="hidden" element="meta.info"/">
and
<charlist> <suppress sup="1"/"> </charlist>

There is a XUI dialog box that allows the user's to edit the content.

What I need to do now is show this text in the editor view as generated text, just so the user can quickly view the elements without using the XUI. I have tried several methods to create this generated text, but all I seem to be able to do is create generated text in the DocMap view of the editor. So I think I am missing something fundamental.

First I tried the help Example: pseudo-element’s parent to get some usetext to display while the elements are suppressed. Couldn't get it to work fro me.

Second I tried to create a FOSI gentable from the example on fosiexpert.com.

Is there a problem that the #CONTENT I need is in the attributes? Also I saw something about the suppress, also suppresses the children which might be causing some suppression's that I don't want so that I can't get to some data.

Code snippet:

<e-i-c gi="meta.info" occur="all">
<charlist inherit="1" charsubsetref="block">
<suppress sup="1"/">
<usetext source="!&lt;meta.fmt"><bold.fmt>Meta Data Information : </bold.fmt></meta.fmt>!,meta.app"
userule="1">
</usetext>
</charlist>
</e-i-c>

<e-i-c gi="meta.province" occur="all">
<charlist>
<suppress sup="1"/">
<savetext textid="meta.app" placemnt="after" append="1" <br="/>conrule="!<meta.fmt><bold.fmt>Meta Province : </bold.fmt>!,dot.fill,!!,#CONTENT(value),!</meta.fmt>!"/>
</charlist>
</e-i-c>

<e-i-c gi="meta.fmt">
<charlist inherit="1" charsubsetref="block">

<highlt fontclr="red"/">
</charlist></e-i-c>

OR

<e-i-c gi="meta.province" occur="all">
<charlist charsubsetref="block" indent&quot;=">
<suppress sup="1"/">
<usetext source="!&lt;meta.fmt"><bold.fmt>Meta Province : </bold.fmt>!,dot.fill,!!,#CONTENT(value),!</meta.fmt>!">
</usetext></charlist>
</e-i-c>

6 REPLIES 6

hiding and/or suppressing an element prevents usetexts from displaying
and/or hides its children from the FOSI ... I can't totally remember the
details. Try removing your hides / suppresses to test if your FOSI is
working as expected, save for the effects of hide / suppress. Then alternate
hides and suppresses. I'm pretty sure one will "kill" your gentext.

What you will need to do, most likely, is get the right combo of hide OR
suppress and savetexts with a judiciously placed usetext.

If this doesn't get you where you're going, let us know. I know I have code
doing this somewhere.

On Mon, Dec 28, 2009 at 4:29 PM, Ellen Headrick <ellen.headrick@jeppesen.com<br/>> wrote:

> Hi all Happy New Year,
>
> I have tags that are hidden by :
>
> <elementoption docmapinline="hidden" element="meta.info"/">
> and
> <charlist> <suppress sup="1"/"> </charlist>
>
> There is a XUI dialog box that allows the user's to edit the content.
>
> What I need to do now is show this text in the editor view as generated
> text, just so the user can quickly view the elements without using the XUI.
> I have tried several methods to create this generated text, but all I seem
> to be able to do is create generated text in the DocMap view of the editor.
> So I think I am missing something fundamental.
> First I tried the help *Example: pseudo-element’s parent* to get some
> usetext to display while the elements are suppressed. Couldn't get it to
> work fro me.
>
> Second I tried to create a FOSI gentable from the example on
> fosiexpert.com.
>
> Is there a problem that the #CONTENT I need is in the attributes? Also I
> saw something about the suppress, also suppresses the children which might
> be causing some suppression's that I don't want so that I can't get to some
> data.
>
> Code snippet:
>
> <e-i-c gi="meta.info" occur="all">
> <charlist inherit="1" charsubsetref="block">
> <suppress sup="1"/">
> <usetext source="!&lt;meta.fmt"><bold.fmt>Meta Data Information :
> </bold.fmt></meta.fmt>!,meta.app"
> userule="1">
> </usetext>
> </charlist>
> </e-i-c>
>
> <e-i-c gi="meta.province" occur="all">
> <charlist>
> <suppress sup="1"/">
> <savetext textid="meta.app" placemnt="after" append="1"&lt;br"/>> conrule="!<meta.fmt><bold.fmt>Meta Province :
> </bold.fmt>!,dot.fill,!!,#CONTENT(value),!</meta.fmt>!"/>
> </charlist>
> </e-i-c>
>
> <e-i-c gi="meta.fmt">
> <charlist inherit="1" charsubsetref="block">
>
> <highlt fontclr="red"/">
> </charlist></e-i-c>
>
> OR
>
> <e-i-c gi="meta.province" occur="all">
> <charlist charsubsetref="block" indent&quot;=">
> <suppress sup="1"/">
> <usetext source="!&lt;meta.fmt"><bold.fmt>Meta Province :
> </bold.fmt>!,dot.fill,!!,#CONTENT(value),!</meta.fmt>!">
> </usetext></charlist>
> </e-i-c>
>

Well I finally came back to this problem. The main solution is to NOT suppress content in the FOSI and use the DCF file to control the tag output.

The other problem I ran into is if you have the XUIcontrol pointing to a parent the children all get hidden. Which I have now gotten around, BUT with my change to the tag the XUIcontrol is pointing tooI now get Java exception message(s). I don't understand why the XUI cares about the tag it is being called from.

Does anybody have some insight?

Thanks,
Ellen

Hi Ellen-



Your description of the XUI problem is a little too general to make any
recommendations. Can you post more info on the structure you're trying
to handle with XUI controls, what elements you're pointing to, and what
java exceptions you're getting and when they occur (on load, on edit,
etc.)?



--Clay


Hi Clay,
We have a structure like:


<xuicontrol condition="product[@value='EB']" element="info" xuifilename="data_btn.xml"/">

<xuicontrol condition="following-sibling::product[@value='EB']" element="uri" xuifilename="data_btn.xml"/">

The java exception comes up when the button has been pressed to load the dialog box and the java script code. The dialog box will come up after the errors, but some of the data is missing and it doesn't update the document anymore.

I hope that explains it better. I am in a little of a fog this morning, not much sleep.

Ellen B Headrick
Phone: 303.328.6358 | ellen.headrick@jeppesen.com<">mailto:ellen.headrick@jeppesen.com>

Hi Ellen-



Can you send the content of the java exception messages? You can see
this if you open the Java Console before triggering the error. Go to
Tools->Java Console (or, on 5.4, Tools->Administrative Tools->Java
Console). Once the Java Console is displayed, any java exception will
generate a message and stack trace in the console.



From your description, it sounds to me like there's a bug in your
Javascript code that somehow doesn't adapt itself to the change from
<info> to <uri> correctly. Once we look at the Java exceptions more
closely they should indicate where the problem lies.



--Clay


THANK YOU!!!

Once I saw the Java Console and the true error message I understood my problem, I had put the protect=yes in the DCF file!!!

Ellen B Headrick

Announcements

Top Tags