How the get the parent element of a FCE in Fluid Powered TYPO3 - fedext

Is there a possiblity to get the parent element of the current element.
Fx: I have a two column FCE and in this two column FCE I will place a custom image element. For performance reasones I would like to render the image only as big as necessary. If the special image elememt is in a two column element the image can be smaller as it must be outside of the two column element.
Until now I did not find a way to solve this problem.

Id of parent record is always stored in {record.tx_flux_parent} - however, you may need to manually transfer the {record} variable since this does not happen automatically.

Related

How to always show Sirius Label in foreground

For the context, I'm working with Capella, an Eclipse RCP application based on Sirius (hence, EMF, GMF and draw2d). This application is used for MBSE, that basically means diagram representations for industrial systems.
I'm developping an add-on (viewpoint) to display custom labels next to diagram elements. These diagram elements are, to put it simply, boxes inside boxes. My problem is that usually the label text is larger than the space between a box and its container, so the label gets hidden. What I need is these labels to always be in foreground. As I'm more used to web development, what I'm looking for would be the equivalent of the z-index CSS property.
Currently I have no idea of how to achieve this, I'm using a custom .odesign that allows me to control some rendering options, like labels text, the color of some elements or to add decoration, but I dont think its the way to go for my problem. Maybe I should use a custom EditPart or a custom StyleConfiguration (I already used these components for other projects) but I have no clue where to start for this issue.
Any leads will be greatly appreciated.
We recently did this kind of changes to keep some labels in Sirius Sequence diagrams always on top: the combined fragments are placed behind the lifelines (z order) but we wanted to keep the labels of the CombinedFragments visible event their bounds intersects Lifelines, Executions or States).
This has been handled in Bug 564239 for Sirius 6.3.2 (used in Capella 1.4.1).
You could find some hints the bugzilla (Gerrits and commits can be retrieved from the See also section).
In Sirius Sequence diagram , we use org.eclipse.sirius.diagram.sequence.ui.tool.internal.layout.SequenceZOrderingRefresher to control the z-order of CombinedFragments : all the figures that composes them comes from some expressions in the odesign, and synchronization with the Capella model for exemple.
But in your case you want to control only the label, so it must not be dealt on the edit par level, but on the figure one. The "overlay" layer and figure lead might be a good one.
Do not forget another thing: in GMF/GEF, the labels of an element is displayed/shown/rendered/visible if it fits to the visible area of the parent container: in the case of a node in a container with scrollbar, the visible are will impact the visibility of the sub nodes (extended to their border nodes, edges, labels, ...)
Regards
Maxime

jsPDF-AutoTable layering and z-index

I've implemented a PDF export of a table that has images in the first column. I use the createdCell callback to determine the (x,y) coordinates of the cell and then use doc.addImage() to render the image at the appropriate place.
The problem I have is that the images are actually behind the rendered table if I render them to the correct coordinates. If I shift the x-coordinate left I can see the images are rendered to the doc.
Does anyone know if there is a way to specify the layer index of objects rendered to the PDF, similar to how z-index property works in CSS?
Or is it possible to change the rendering order so that images are rendered on top?
FYI I was wrong to attempt this using callback, this is possible with addPageContent option.
I did not find any information about depth configuration ("z-index").
However, I know that whenever you add something to the page it is in front of all the items already inserted. As if it were an "incremental z-index".
So answering the question: "how to position one element on top of another" we have three solutions:
Just change the order of which element will be inserted on the page.
Create a loop adding all the necessary information (in this case, the table) and in another loop just create the images.
Invert the loop, for example with [a, b, c] = [c, b, a]. So the elements started to be created from the bottom up on the page (if your problem is a conflict between the loops). This case is more boring, more confusing and more difficult, but it may be the solution.

Getting element mass in Abaqus postprocessor

I want to hide all elements in my model with mass less than a value. Is it possible?
I found only way to see mass of elements by creating set for each element in History Output, but it sounds stupid because the number of elements.
Is there any way to do it?
You can create a display group based on the currently displayed field output variable. Element mass isn't available, but element volume is. (you have to request EVOL as an output before running the analysis). you should already know the density.
You should display the elements above your threshold volume. Then create a display group by selecting the elements currently visible in the viewport. This will ensure that you can then plot other field outputs while keeping the same elements displayed.

How can I dynamically change the image in an Edge Animate symbol?

I'm working on a site prototype that has many rollover images in the navigation. Each image is unique, but the rollover and rollout code is identical. I'm trying to create a single symbol that can be used for all of the rollovers, but need some help figuring this out, as it will significantly speed up my work.
I think the pseudocode would work like this
Create a symbol that contains a default rollover image.
In the symbol, add the rollover and rollout code. This adjusts transparency from 0 -> 100 and back.
Create instances of the symbol over each item in the nav.
For each instance, set a variable containing the name of the rollover image to be used.
In that symbol instance, get the variable value.
In that symbol instance, use the image name in the variable to replace the default image.
Question: How do I make step 4-6 work? I have 1-3 working smoothly.
Update: I have #6 solved
Images are all managed by the CSS background-image property rather than the old-school <img src=...>. So to set an image for an element, the syntax is:
$(sym.lookupSelector("[ElementName]")).css('background-image', [image]);
And there's a second part, which is getting [image] right.
Use the default relative URL for Edge images: images/[image]
Use standard syntax for CSS background-image: url(images/[image])
P.S. My last dev work was waaaaay back with Director, PHP and ColdFusion. I still get basic principles such as using functions, objects, instances, inheritance etc, but the language has changed. And I have very very little experience with the DOM.
Appendix: How I'm Doing This Manually
There's a background image of the nav showing all of the unselected states
Each item in the nav has a corresponding rollover image, in a series of elements layered on top of nav element. Each rollover has opacity initially set to 0%.
Each image element has rollover, rollout and click triggers. Rollover and rollout triggers are identical for each. There's also a little more code with rollout that provides a quick fade. This means lots of copying identical code. I hate to think about having to change any part of that code.
I came to the same conclusions as yours.
Steps 4-5 I did this way: when I create the symbol instance I give it a special name, like "button_image1".
Then in the code you can check this property doing:
var symbolElement = sym.getSymbolElement();
var id = symbolElement.attr("id")
var tokens = id.split("_");
var image = tokens[1];
And set the right image as background.
You can put this code on the creation_complete event of the symbol.

Getting Polygons to display multiple variables using a stripped color scheme in ArcMap

I am creating a map in which i want a polygon to display two separate variables within it. Therefore I want a stripped polygon relating to both the keys from the separate factors however I have no idea on how to do this. I messed around with multiple attributes on the properties section and could get the two variables up however could see no way of making the polygon display them both.
Thank you, any help would be appreciated
This is partially manual, but you are going to have to make a separate category within one of the fields that identifies the multivariate features. You could also create a new layer that is a selection of these features. Once you have that, go to the layer properties and display the features as 'Categories - Unique values, many fields' and hit the 'Add All Values' button. Once the categories are populated select the one you are interested in and pick a hatched symbol such as 'Radiation Overlay'. Then go to the Symbol Property Editor (double-click the symbol) and modify the two layers that make up the hatched symbol. You need to adjust the color, line thickness, offset, etc. until you get it to look the way you want. Probably not as auto as you wanted, but it will satisfy display purposes.

Resources