Concatenation text item with variable
hi to all
i try to concatenation a item in form with variable.
i went in a loop to concatenation counter value with 40 text item.
once text item have a unique name like these:
text_item_1
text_item_2
text_item_3
i need to concatenation loop counter value with text item name.
like this*=>:bl.text_item || wdser*
like this thing that step by step go on all item and insert any value on that.
PLZ help me.
Edited by: Eliea on May 25, 2009 4:22 AM
create a button and write following code.
while :system.last_record!='TRUE' loop
:block.text:=:block.TEXT_NAME||variable;
next_record;
end loop;
If :system.last_record='TRUE' then
:block.text:=:block.TEXT_NAME||variable;
end if;
Please mark the answer if it is helpful/correct
Similar Messages
-
Is it possible to intialize a text item with Global Variable
Hi,
I have forms10g, I want to initialize text item with current hour for this purpose I have defined one global variable and initialize text item(for hour) with this global variable.
Defination of global variable
:GLOBAL.my_var := TO_CHAR(sysdate,'hh24');
Initial Value of form text item as
:Global.my_var
but when I run the form it raise error " ORA-01403 no data found " error
I already check this global variable intialize properly with the current hour.
Thanks and Regards.
KhawarHi Francois,
Thanks for reply, but when I removed initial value property of text item from Global variable to other or Null form starts running, I have one Poplist and it populate with a procedure at form startup I remove it but no success.
Thanks and regards.
Khawar -
The color of text item with multi-line in web
I tried to change the background color of text item with multi-
line, but it does not work when I run in the web, if some body
knows that, please give a hint.
Thanks
Frank
nullI tried to change the background color of text item with multi-
line, but it does not work when I run in the web, if some body
knows that, please give a hint.
Thanks
Frank
null -
Which situation should we use the text item with the item category TATX
Dear experts!
Thank you for your attention!
I am confused with text item (TATX).
which situation should we use the text item with the item category TATX????
Someone told me that the text item is dummy and should be used as a manual of certain standard item. But the manual may be a book or several papers and it also takes up some inventory not a dummy.
So, could some body tell me what the text item (TATX) exact is and what function it has.
Best regard!
TangdarkHi,
you can use TATX if you like to enter a text and to print some information between the item lines.
Regards
William -
How to make one of the columns in my tabular an text item with popup lov
Hello,
I want to manually make one of the columns say for the deptno in my tabular form as on text item popup lov using apex_item package
and whenever user clicks on the text item popup lov, it should open up an dept table report and from which he/she needs to select
the deptno and this deptno should be returned into the text item popup lov column.
like for example: say if i have an emp table tabular form with all the columns and deptno column as an popup lov and when user clicks on this column
it should open up an new sql report(similar to popup lov window), the select statement for this would be
select deptno,dname,loc from dept order by 1;
And from this popup lov report whenever an user selects a particular deptno, the same deptno should be returned to my text item popup column in emp tabular form.
something like this
select
"EMPNO",
"EMPNO" EMPNO_DISPLAY,
"ENAME",
"JOB",
"MGR",
"HIREDATE",
"SAL",
"COMM",
APEX_ITEM.TEXT(3,deptno,20,50,'readonly=true') || '<img height="16" align="middle" width="16" style="vertical-align: middle;" alt="Popup Lov" src="/i/lov_16x16.gif"/>' deptno
from "#OWNER#"."EMP"
like i made my column as an text item lov and now I want to write an onclick event for the text item lov so that an popup window is displayed which is a sql report of the table dept (select deptno,dname,loc from dept order by 1;) and in this report i want to make deptno as an link so that when ever an user clicks on it
-- this value should be returned to my text item popup lov column deptno in the emp tabular form.
can anyone help me out with this issue.
thanks,Hi,
Refer to the link for the detailed information on ALV Grid.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Hope it helps.
Regards,
Rajesh Kumar
Edited by: Rajesh Kumar on May 25, 2009 9:13 AM -
I'm doing a multiple record data merge, I have 2 frames both with variable data placed inside.
I would like to specify that one of the text frames only merges once(first record) and the other frame multiple times for each record in the data file.
Is it possible?
I thought that perhaps if I place the text frame that must merge once on the master page, it would work. But you are not allowed to place variable text on the master and on the document page.
I'm going to try it through scripting next, but thought that perhaps there is an easier way that I'm not aware of.
Thanks,
SuzanneSuzanne,
If you were trying to post a screen shot, you would need to return to the forum and post it using the "camera" icon at the top of the post editing windows.
I use a plug-in from Em Software called InData. One of the benefits for what I do is there are no individual frames on a page to deal with post-merge. Individual frames are great for simple merges (address labels, post cards, etc.). But I typically do more other types of merges.
That said, there is a drawback--one needs to come to an understanding of writing expressions that actually parse the incoming data. So in the spice price list example, that looks like:
It's reasonably easy once one does it a few times. And it can be far more complicated. The above is from Em Software's samples that has been tweaked. The best thing I can recommend would be to download the trial and see for yourself. They are good at responding to specific questions if you get stumped.
I imagine this all could be scripted somehow in ID. But I have no idea how and the plug-in just lets me keep working.
Mike -
Oracle 10g FRM-41051 on a non-database text item with a LOV
Hi all,
I'm struggling with a problem I'm convinced must have a really simple solution, but for the life of me I can't figure it out!
I have a data block called query. It is a non-DB block with a number of items, with either LOVs or drop down lists. It is used to choose values, which are them programatically 'translated' into values in two other database data blocks (which are populated in the WHEN-BUTTON-PRESSED trigger of a button in the non-DB block).
This is necessary as I have a slightly complex query which takes values from many different tables and displays bits of information from all the different tables.
My problem is that, on my text item (which has a LOV attached to it with Automatic Display set to Yes); when I click on it, I expect the LOV to show and I am able to choose a value from it. Instead I get the error 'FRM-41051 You cannot create records here' and the LOV does not display.
I don't understand this. Everything on the block is a non-DB item, including the block itself, and I don't want to 'create' any records, all I want to do is choose values into my text items which I can then use in a DB query (written in my trigger).
What am I doing wrong?
AbigailProbably this other item or block has got property insert allowed to FALSE.
I have suggested you to use a push button in order to check that everything in the LOV is OK.
Lov can also return value to item in another block; probably in your case there is something that fires the error.
Normally when I develop my form I disable on-error and on-message trigger in order to follow every step at runtime...
I'm happy that you have resolved your problem :D
Fabrizio -
Navigating to the text item with color
hi all,
i have 10 text_items in my form, i want that when i am in first text_item the color should change default to any color i want (take suppose yellow)
then when i am going to second text_item then color should change to yellow like that it has to happen for all the text_items.
how can i do this... where i should write the code and what code...
please reply...Create one VISUAL ATTRIBUTE with background color = yellow and use the code as below on block level triggers.
1. Create one trigger on block-level called PRE-TEXT-ITEM and use the code as below...
SET_ITEM_PROPERTY(:SYSTEM.CURRENT_ITEM,VISUAL_ATTRIBUTE,'VISUAL_ATTRIBUTE_NAME');2. Create another trigger on block-level called POST-TEXT-ITEM and use the code as below...
SET_ITEM_PROPERTY(:SYSTEM.CURRENT_ITEM,VISUAL_ATTRIBUTE,'DEFAULT');-Ammad -
Importing text file with variable spaces
Hi all
I have a text file with a varying amount of spaces in it. Typical output from the file is attached.
How can I separate the values into separate columns please?
Thanks in advance.You're going to need some substrings:
DECLARE @flatFileLine VARCHAR(MAX) = '2002 01118511 0.00 0 0.00 0.00 PENDING '
SELECT
SUBSTRING(@flatFileLine,1,4),SUBSTRING(@flatFileLine,5,17),SUBSTRING(@flatFileLine,22,17),SUBSTRING(@flatFileLine,39,17),SUBSTRING(@flatFileLine,56,17),SUBSTRING(@flatFileLine,73,17),SUBSTRING(@flatFileLine,90,17) -
Trying to create a text item with a scroll bar in Indesign 5.5
Is there a simple way to create a scrollable text article in Indesign 5.5? It will later be exported to a SWF as a mini-flash web portfolio.
I would appreciate any help.
I'm new to Indesign.quote:
Originally posted by:
wildfire121
Can someone please help. I am trying to create a text box
with a working scroll bar that will scroll the text in the text
box. Can someone please help me with this?
Do you mean a text box people can type in (for a Web form
entry) or one for displaying your content?
If the first, then you use the textarea tag and scrollbars
appear when the user types more lines that you specify. See the
textarea
description at W3Schools.
If the second, then that's usually done in Flash, but can be
done with CSS. See these two pages:
Dynamic
text with scrollbar (Flash)
Textbox
with scrollbar (CSS) -
I am trying to save a blank space in a text item but everytime i do, the item is getting trimmed.
if i put in " " then it trims to null.
If i put in "P " then it rtrims to "P"
What am i doing wrong?I dont think i have been clear on what we are trying to achieve. They will not always need a blank space but could need one if they choose to do so.
The form concatenates a set of values. So we have a set of information that is exported by the form.
i.e.
ONE
TWO
THREE
FOUR.
on button press turns into ONETWOTHREEFOUR
they then have a custom seperator text item to specify what seperator is used to seperate the values. So this is where i want the user to be able to specify anything they want, including a blank space or anything else they require like comma etc so if they entered ", "
on button press turns into ONE, TWO, THREE, FOUR
at present it trims it turning it into ONE,TWO,THREE,FOUR
Hope this makes sense as to why i want the blank space.
I can add it as a list item and concatenate it on save but this this is a little OTT for what is a simple task -
Wondering how to create a text box with variables...
Hi everyone,
I was wondering how to create a text box, that at the beginning of the presentation, the audience fills in regarding what they think constitutes the role they have been chosen for.
I would like that same box to then appear at the end of the presentation, with the text they typed in at the beginning, so they can reflect on what they think now, and what they thought then. I understand this is done using variables, but i'm not 100% sure.
I hope I've worded this okay!This screenshot shows the properties panel, Style tab for the TEB. I relabeled it to My_TEB, used the X button to create a user variable v_choice that will replace the generic Text_Entry_Box_1/
This is the properties panel of a Shape, I went in Edit mode (double clicking)to make the Character section appear, where you find the X button. It opens the dialog box 'Insert Variable' and you can choose the var associated with the TEB. The Maximum Length will define how many characters will be displayed, the value of a variable has maximum 256 characters. -
Importing a text file with variable values into web reporting
Hello,
I'm looking for a possibility to import values from a text file into a variable selection in Web reporting.
With BEx reporting in Excel this is possible, by clicking on the multiple selection button in the variable popup screen, and subsequently selecting the "Import from Text file" button.
However, this function seems not to be available for web-reporting...
It would be great if someone could help me out with this!
Thanks & regards,
ArvidHi,
we could resolve this issue, so i thought it may also be helpful for others:
In our example we used a file with numbers for materials. This file is stored somewhere in a directory, to which SAP BI must have authorization to read.
The file looks something like this:
4711
4712
4713
4714
The file is named "import.txt" and lays in directory "/usr/sap/EC6/files/bi/"
*& Include ZXRSRU01
* global variables
Data: intern_range LIKE LINE OF i_t_var_range,
l_s_range TYPE rsr_s_rangesid,
line(100) TYPE c,
p_file(128) TYPE c,
length_rangelow type i,
tmp_rangelow like l_s_range-low.
* internal tables for selection-transfer from transaction
* Data: BEGIN OF it_file occurs 0,
* it_p_file(128) TYPE c,
* END of it_file.
IF i_step = 1.
** variables can be changed or set before pop-up appears
CASE i_vnam.
* take material from external file to selection-list
WHEN 'ZSD_UPMA'.
** call of transaction, with which the path can be set
*CALL TRANSACTION 'ZBW_VARIABLE' using it_file
*MODE 'A' " call should be visible, so that variable can be set
*UPDATE 'S'. " first transaction, then processing
** Der Pfad, der in dem Selektionsbild eingegeben wird, wird an die Variable übergeben
** Der Set-Parameter ist in Report ZSD_SELECT_VARIABLE
* get parameter id 'VAR' field p_file.
p_file = '/usr/sap/EC6/files/bi/import.txt'.
* further handling of variable in BI
OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
READ DATASET p_file INTO line.
WHILE sy-subrc = 0.
IF line(2) <> '//'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = line.
* fill with leading Zeros
* in variable tmp_rangelow the value from l_s_range-low is taken
tmp_rangelow = l_s_range-low.
* read the length
length_rangelow = strlen( tmp_rangelow ).
* in our case: material has 18 characters
while length_rangelow lt 18.
CONCATENATE '0' tmp_rangelow INTO tmp_rangelow.
length_rangelow = length_rangelow + 1.
endwhile.
* initialize l_s_range-low
clear l_s_range-low.
* set with filled values
l_s_range-low = tmp_rangelow.
* transfer to structure
APPEND l_s_range TO e_t_range.
ENDIF.
READ DATASET p_file INTO line.
ENDWHILE.
ENDIF.
CLOSE DATASET p_file.
ENDCASE.
ELSEIF i_step = 2.
** in step 2 all variable values from pop-up input can be processed or
** User Exit variables can be derived
* UserExit Ende.
ENDIF.
Hope i could help!
Best regards,
Tobias -
Render text item with procedure call
I have made several custom item types with custom attributes, and I use a procedure calls to render them in my region.
For example, the pl/sql call from the item can look like: portal.write_text and I use p_id and p_text as attribute parameters.
When I render the Text attribute it shows with no new lines (no <p>) although it is written with it in the item wizard.
How can I render the text attribute exactly as it supposed to be? (with <p>'s)
/MalinEven simpler:
procedure showTextItem (p_itemid IN INTEGER, p_siteid IN INTEGER, p_language IN VARCHAR2) is
theText varchar2(32767);
begin
select i.text
into theText
from portal.wwsbr_all_items i
where i.id = p_itemid
and i.caid = p_siteid
and i.is_current_version = 1
and i.active = 1
and (i.language = p_language
or ( exists -- a row for the item in the page group default language
(select pg.id
from wwsbr_all_content_areas pg
where pg.id = i.caid
and pg.default_language = i.language
and not exists -- a row for the item in the current language
(select i2.id
from wwsbr_all_items i2
where i2.id = i.id
and i2.language = p_language
and i2.is_current_version = 1
and i2.active = 1
htp.p(theText);
exception
when others then htp.p(sqlerrm);
end;Note the conditions on language, active status, and current version - you should include these conditions
whenever you query from wwsbr_all_items.
Please refer to the content repository view documentation in the PDK.
Regards,
Jerry
PortalPM -
Problem with comparing text item with hidden item
Hi all,
I have two items, one text field which has a user name and other item which is hidden which also has a username input from a file.
I want to compare these two items.
But when both items are text fileds am able to compare, but when one is made hidden unable to compare.
Please help on this......
thanks,
SriniHi Srini,
As long as you understand that the user can change the value of ANY field, even it is hidden, then I would suggest something like:
1 - Hide your existing Login button. On the button definition, in "Button Display Attributes" add the following into the Attributes setting:
style="display:none"2 - In the Login region's Region Footer, create a new button:
<input type="button" class="t12Button" value="Login" onclick="javascript:checkNames();">(Note that I have used a class name of "t12Button" - change this to match your current theme)
3 - Underneath that, add in your javascript:
<script type="text/javascript">
function checkNames()
if ($v('field1name') == $v('field2name'))
doSubmit('loginbuttonname');
</script>Then, when the user clicks the new Login button, this triggers your javascript. This checks that the values for field1name and field2name match. If they do, if fires the normal submit for the page (the same as if you clicked the original Login button)
Andy
Maybe you are looking for
-
My ipod touch 4g keeps telling me that I have too many photos and videos and will not let me download apps. I have deleted all the photos and videos and some of my old apps but it keeps telling me the same message. I have tried to sync it with the
-
Link to a pdf page on web from a chm file
Hello, I'm using RoboHelp 9.0.2. I'm trying to create a link in a chm file to a specific pdf page using a URL. The link I am using is http://www.actuarialstandardsboard.org/pdf/exposure/ASOP_No27_second%20exposure_2011.pdf#p age=41 I put the above
-
Dear Experts, The following is the scenario, say i have 2 invoices of the same customer one for 2000 and another for -2000, Now i'm making an incomming paymnet for both of these things.... in SAP UI when i select these 2 invoices i cannot add a payme
-
Video streaming issue after Kitkat upgrade
After updating all my media streaming (Hulu, Netflix, HBO Go, Xfinity, YouTube) in HD or higher quality is choppy/jittery either OTA or WiFi. If I change it to lower quality all video plays without issue. I've done a complete device reset three times
-
Sorry for the length but I want to let you know both what my issues have been and what I've done to try to fix them so that you don't suggest something that I've already tried. My wife has a Mac Pro running Mavericks. Lately it's been doing odd thin