When you insert a caption it automatically increments the value for the caption number e.g if I insert a caption named "Illustration" for each image in my document, LibreOffice will automatically append an integer to my caption such that I get "Illustration 1", "Illustration 2", "Illustration 3" ....
I'm writing a document and sometimes refer to the illustrations in the text. But the diagram for "Illustration 2" may change if I add a new image before it.
Is there a way to dynamically bind the auto increment as a variable in my text? I.e if I add 3 images before "Illustration 2", the image it refers to will become ""Illustration 5".
Can I make my text now refer to "Illustration 5" instead of "Illustration 2"?
You can do this by using a cross-reference field. Let's say you insert your first two illustrations. In this case you can insert a field that refers to your "Illustration 2" by going to Insert -> Field -> More fields, then going to the cross-references tab. Now select the type you're interested in below "type", set "insert reference to" to "category and number", finally select the second illustration under "selection" and press "insert".
This way if you add 3 more images before the second one, your field will be automatically updated to say 5 after insertion.
Related
I have a multiple select option that allows text entry for an "other" choice at the bottom. Then I use the selected options from that question in a Loop & Merge block with a collection of other questions. I can the piped text variable ${lm://Field/1} to get the selected question, as a header for the next block, for example:
Please tell me more about ${lm://Field/1}
But on the "other" choice, that will just say:
Please tell me more about other
I would like it to use the value of the Text Entry field, but I can't find a piped text variable that would give me that.
You want to pipe "Selected Choices - Entered Text" aka:
${q://QID1/ChoiceGroup/SelectedChoicesTextEntry}
That will pipe the text entry of the selected choice(s) that have text entry and the selected choice(s) for the choices that don't have text entry.
Follow the steps below:
In Loop & Merge you choose "Loop based off of a question", and
select the choose-all-that-apply Multiple Answer question that has
the "Other" question with "Allow text entry" set to on.
In the adjacent drop down, choose "Selected Choices - Entered Text [object Object]".
Now, in your questions inside your Loop and Merge block, pipe the Loop & Merge field in the normal way with ${lm://Field/1}.
I have a Analysis created in OBIEE 11G, by default I want it to have the default values in: is between Calendar Date [First day of current month] - [Yesterday]. For the first day i use the following (but didn't work):
TIMESTAMPADD (SQL_TSI_DAY, (DAYOFMONTH (CURRENT_DATE) * -1) + 1, CURRENT_DATE)
Here you go ChiHam!
First, I created an analysis and filtered for the desired date column as "is prompted" ("Canonical"."Date" in this example).
http://i58.tinypic.com/29vjqye.jpg
Then, I setup a Dashboard Prompt (I chose to put it on a dashboard page, but you should be able to simply go to the "Prompt" tab if you're only running the analysis. Use a column prompt, select the "is between" operator, and select "choice list" for user input. Now the tricky part! Open the options using the small plus sign at the bottom left. Select "SQL Results" for Choice List Values and insert this SQL (you will need to change "Table"."Date" and "Subject Area" to your own date column and subject area):
SELECT "Table."Date" FROM "Subject Area" UNION SELECT TIMESTAMPADD(SQL_TSI_DAY,-1,CURRENT_DATE) FROM "Subject Area"
Now to set the defaults! Select "SQL Results" for Default Selection as well. Insert in the first text box the beginning of the month date using this SQL:
SELECT TIMESTAMPADD (SQL_TSI_DAY, (DAYOFMONTH (CURRENT_DATE) * -1) + 1, CURRENT_DATE) FROM "Subject Area"
Insert yesterday's date using this SQL into the next text box:
SELECT TIMESTAMPADD(SQL_TSI_DAY,-1,CURRENT_DATE) FROM "Subject Area"
http://i57.tinypic.com/294hpuv.jpg
Then I put both objects (Dashboard prompt and analysis) onto a dashboard page.
htt p://i57.tinypic.com/35i0opi.jpg (delete 'space' in link, sorry posting limitations)
The results were my dashboard prompt was defaulted to the correct dates as of today (5/24) and my analysis was already run based of the dates without having to hit apply because the analysis is set to "is prompted".
htt p://i58.tinypic.com/efs9pz.jpg (delete 'space' in link, sorry posting limitations)
Hope this answers your question!
Before running my report, I give the user options to choose which Columns they would like to see.
I then hide columns by reading and setting boolean parameter for "Column Visibility"
I am able to hide static columns using an expression for "Column Visibility" (Fig 2) as follows:
= iif(Parameters!MinorVisibility.Value = "true", false,true)
When I try to hide my Group Columns, "Column Visibility" is disabled as seen in Fig 1. I tried manually setting each cell's visibility property but then I am left with a blank column as seen in Fig 3.
I think your solution is to remove this column and re-add it as regular column inside group (to the left of your Date column).
I have a multiple grouped products with simple product options set up like this:
Photograph Name (Parent Grouped Product):
7" x 4" framed
7" x 4" unframed
Is there a way to get the simple (child) product name to automatically suffix the parent product name when displayed in the cart.
Currently shows: "7" x 4" framed"
Want it to show: "Photograph Name - 7" x 4" framed"
I know the long way would be to input the data manually when creating the product. But that seems counter intuitive.
Any best practice / php snippets would be great thanks!
John
This is odd because what you are asking is the deault in the theme I am using. I would like to remove the parent product name in the grouped product listing.
The code I have for the link in the grouped.php is:
' . $child_product['product']->post->post_title . '
Is this what you have?
Bridie
I have a crystal report with several columns.i need to hide a column and remove the blank space based on a condition.currently what i have done is.i have dragged and dropped the fields inside TextObject and tick the "Suppress Embedded Blank Field Lines" and "Can Grow".it'll hide the detail field and also remove the blank space but the issue is header is still visible.
condition to hide a column is if the field data is null or empty
Try creating a formula for your conditionally displaying column heading. Something like:
SomeFieldLabel:
If DistinctCount({#SomeField}) > 0 Then "The Column Label"
or
If Not IsNull({#SomeField}) And {#SomeField} <> "" Then "The Column Label"
Then create a text object with {#SomeFieldLabel} and all your other labels, and select Suppress Embedded Blank Field Lines.
You may need to experiment to find the right condition – one which evaluates to True whenever the field is present in your detail records, and False the rest of the time.