Navigation from multi line block
I am using multi line item at key_next_item trigger cursor is moving to next line
that is ok but with some fuctional key mapping or some other trigger I want to move cursor to next block.
How to do it?
Hi,
use a key trigger and call go_block() built_in
Frank
Similar Messages
-
[JS] [CS2] Change all from multi line to single line composer
Hi
Does anyone know how to change all paragraphs, on all pages, in all textframes, from multi line composer to single line composer...
Thanx
TimThis should work:
app.documents[0].stories.everyItem().composer = "Adobe Single-line Composer"
Dave -
Updating data from multi record blocks and database
Hi
when the user presses a button, records are retrieved from the database and put into multi record item. User can change the data that is retrieved from the database by pushing update button.I tried this code inside update button but it isnt working...
Begin
go_block('PRODUCTS');
first_record;
LOOP
update products
set PRODUCTS.PRODUCT_ID=:PRODUCTS.PRODUCT_ID
where PRODUCTS.PRODUCT_ID=:CUSTOMER.CUSTOMER_ID;
exit when :system.last_record = 'TRUE';
next_record;
END LOOP;
forms_ddl('commit');
clear_block(no_validate);
End;Hi
when the user presses a button, records are retrieved
from the database and put into multi record item.
User can change the data that is retrieved from the
database by pushing update button.I tried this code
inside update button but it isnt working...
Begin
go_block('PRODUCTS');
first_record;
LOOP
update products
set PRODUCTS.PRODUCT_ID=:PRODUCTS.PRODUCT_ID
where PRODUCTS.PRODUCT_ID=:CUSTOMER.CUSTOMER_ID;
exit when :system.last_record = 'TRUE';
next_record;
END LOOP;
forms_ddl('commit');
clear_block(no_validate);
End;Are you getting an error?, what is it that it isn't working?
One thing you need to understand about the basics of a block:
If it is a block based on a database table you do not need an external INSERT/UPDATE/DELETE statements from a button or anything.
Users can change the data retrieved from the database and just press save (which includes only commit_form built in). -
Regexp_replace to remove blank lines from multi lines in a single field
Gents. 10g R2.
with test_tab as
(select 'x'||chr(10)||'y'||chr(10)||chr(10)||'z' tester from dual)
select tester from test_tabproduces
x
y
zI require
x
y
zThere's a lot of examples on how to end up with xzy, but I need to maintain the carriage returns, just strip out blank lines.
I've been trying with posix [:cntrl:] but it doesn't seem to want to work. Question: how to get the desired output?
If this has been answered on another post, please point me in the right direction and accept my apologies!Hi,
The simplest thing might be to use LTRIM. (or TRIM, if you need to remove them from the end of the string, as well).
If you want a regular expression:
SELECT REGEXP_REPLACE ( tester
, '(^|' || CHR (10) || ')' || CHR (10) || '+'
, '\1'
FROM test_tab
;This might be easier to understand if you let x stand for CHR (10):
SELECT REGEXP_REPLACE ( tester
, '(^|x)x+'
, '\1'
FROM test_tab
;This is easier to understand: \1 is either the beginning of the string or x. When this is followed imeediately by 1 or more extra x's, then replace that whole pattern with \1 (that is, remove the extra x's). -
LOV button navigation in multi row block
We have two fields in a multirow block, Role Type and Parent Role Type(which is a LOV button). When the current row selector is on a Role Type row all Parent Role Type LOV buttons for all the rows change only the current selected row. With Designer we set Keyboard/Mouse navigable properties to Yes(in the OLB) which fixed it but with Headstart these properties do not fix this problem. Any info and suggestions would be appreciated. Thanks.
Ok, now I understand.
Unfortunately, you have run into some standard forms behavior that doesn't work the way you want it to. The LOV button is not navigable, because your cursor needs to be sitting in the data item when the call to the LOV is made. Since this button is not navigable, the cursor will not move to the current record when you press the button. (Actually, the button is identical on each record.)
Possible solutions:
1 - use only 1 button in an overflow below. (Create your own action item instead of using the LOV button preference.)
2 - don't use a button at all. (Headstart provides the LOV toolbar button.
3 - Try generating the lov as a poplist. (See Oracle Designer online help).
4 - Use the new Oracle Look and Feel (available only on the web) to create a button in the field ('...').
Regards,
Lauri -
Fetching the number of records in a multi-record block...
Hi ,
In Forms10g runtime-and in previous releases too- there is , as a message, the number of records fetched/inserted in a multi-line block such as Record:5/9. Is it possible to catch these two numbers (i mean 5 and 9 , or at least the number of records)...not only in query but in the insert mode as well...?????
Many thanks ,
SimonNo, you can't capture that text, but you can write your own code to do the same thing.
-
How to call a report with a bind variable from a multi-record block
Hi,
I have created a report using the BI Publisher functionality. I did all the integration, created the SQL Query and uploaded the template. Up till here everythings fine!
My SQL Query has 2 bind variables.
I will call my report from a multi record block, at the end of each record an icon is shown which the user can click to open the report.
I created a column link for this item (PRINT_REPORT=Inschrijvingsformulier) but I do not manage to pass the parameters to my report. The parameters I want to pass are 2 columns in this Multi Record block.
I created 2 hidden fields on the page P9_PARAMETER1, P9_PARAMETER2 with the same names as my bind variables and fill this in with the values #PARAMETER1#, #PARAMETER2# from the multi record block.
It seems it does not work as my report stays empty. (also XML file stays empty).
Am I trying the wrong way?
Thanks for any advice,
Krishi khadeer,
create one report program and write the required code,and call this function module 'SSF_FUNCTION_MODULE_NAME' and give your smartform name and also when u activate ur smart form u will get one function module call that function module also and specify any tables used...
i think this solves ur problem...
any queries revert back..
pls reward points if helpful,
shylaja -
FETCHING VALUES IN MULTI RECORD BLOCK FROM ANOTHER TABLE USING SELECT STATEMENT.
Hi,
I have one multi record block in which i want to fetch values
(more then one record) from another table using select statement
IN KEY NEXT ITEM.I am getting following error.
ORA-01422: exact fetch returns more than requested number of rows
Thanks in advance.In your case I see no reason to use non-database block and to try to populate it from a trigger with a query, instead of using the default forms functionality where you can associate the block and the fields with table, create where clause using bind variables and simply use execute_query() build-in to populate the block. The power of the forms is to use their build-in functionality to interact with the database.
Also, you can base your block on a query, not on a table and you dynamically change this query using set_block_property() build-in. You can use any dynamic queries (based on different data sources) and you simply need to control the column's data type, the number of the columns and their aliases. Something like creating inline views as a block data source.
However, you can replace the explicit cursor with implicit one like
go_block('non_db_block_name');
first_record();
FOR v_tab IN (SELECT *
FROM tab
WHERE col_name = :variable)
LOOP
:non_db_block_name.field1 := v_tab.col1;
:non_db_block_name.field2 := v_tab.col2;
next_record();
END LOOP; -
Multi-line reading from applet?
I just began using a technique to get a single value
from the web server to my applet via CGI-BIN.
Please see relevant code below.
With this technique -I was given a chunk of code, I don't
even understand its behavior completely- I can retrieve
one value from the server. Now I would like to retrieve
multi-line data, such as that coming from a SQL statement which
will be used to populate my applet's menus.
So, how should I retrieve this cursor-like, or stream data?
I suppose I need to put the "s = d.readLine()" statement inside
a loop, but what loop variable shoould I use??
TIA,
-Ramon F. Herrera
URL url;
URLConnection urlConn = null;
DataOutputStream dos;
DataInputStream dis;
InputStream is;
url = prepareServerCommand(Id, true);
try {
urlConn = url.openConnection();
} catch (IOException ex) {
urlConn.setDoInput(true);
urlConn.setDoOutput(true);
urlConn.setUseCaches(false);
urlConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
String s = null;
try {
dos = new DataOutputStream(urlConn.getOutputStream());
String message = "NEW_ITEM=1";
dos.writeBytes(message);
dos.flush();
dos.close();
is = url.openStream();
BufferedReader d = new BufferedReader(new InputStreamReader(is));
s = d.readLine(); // <-- THIS NEEDS TO BE INSIDE A LOOP!!
d.close();
} catch (IOException ex1) {
jButton1.setText("Number of Items:");
jTextField1.setText(s);
done = 1;
return (done);Here's a way:
String $URL = "http://server.com/cgi-bin/a.cgi?whatever=1";
try{
URL url = new URL($URL);
BufferedReader in =
new BufferedReader(new InputStreamReader(url.openStream()));
String $nextline, $returned = "";
while(($nextline = in.readLine()) != null){
$returned += $nextline + '\n';
if($returned.indexOf("END OF DATA") > -1) break;
in.close();
}catch(Exception e){System.out.println("ERROR: " + e);}
System.out.println($returned);
Note the line containing "END OF DATA". The reason I did that was that the connection was just getting stuck in that loop for too long. By using something to mark the end of the data, I was able to break out of the loop sooner. Maybe there's a better way but I don't know it. -
Displaying a multi-line text block in an ALV grid cell
Can I display a multi-line text block (i.e. a paragraph of text) in an ALV grid cell?
If yes, what properties do I set in the Field Catalaog (I tried the style and that didnt seem to work)
ThanksBy default ALV Grid merges fields with same values vertically.
Isn't that only when the column is part of the sort key? You also have to consider the user changing the sort sequence, which can make the text jumbled up. In one of my reports I have made the cell a hotspot and displayed the text in a popup. Of course you cannot print it.
Cheers,
Ramki. -
Copy multi line oftext from enhanced to plain retreives HTML
Hi,
I have two multi line columns, one in enhanced mode and one plain text. when i use quick view to copy all the values from enhanced to plain, it paste all the html tags alongside the text.
Any thoughts how to eliminate that and copy only the text?
Thanks a lot in advanceHi,
You can edit list items in DataSheet view and copy items.
Thanks,
Vivek
Please vote or mark your question answered, if my reply helps you -
Multi line field Navigation problem with ENTER key
No trigger on the field. Multi line Property is set to true.
The probleb is, when the cursor reaches in the multi line field. the contents of the field are hilighted/selected. So as it happens in Notepad or Word, if you select some already written text and press ENTER key the selected text will be replaced by carriage return so the selected data will be lost. Same is the case with multi line field. When field gets focus it selects the contents of field and when ENTER is pressed all the contents are deleted and a carriage return is placed.
any solution?
nullHi Nadeem,
One work around is that you have store content of that multi-line field in to some other variable thru PRE-TEXT-ITEM and once again assign (based on some conditon) in POST-TEXT-ITEM.
null -
How to do validation on multi record block at run time...
Dear Friends,
I have to do validation at run time on multi record block.
If user tries to enter and save two or more records in same multi record block with same data at run time, it should not allow it and display a message like, " error : Records are having same(duplicate) values. "
I already did validation with the data coming from database table using cursor. But confused about how to do at run time(on one screen only) ??
Please, give details about how to check duplicate records on form block before saving it to the table ????
Regarding details would be greatly helpful.
thanks,Hi...Pankaj
thanx for your reply..
I already did validation for the data coming from table....
but I need to do it on form only...at run time...
exa...
In one multi record block
record no : column 1 : column 2 : column 3
1 abc 123 hi
2 abc 123 hi
so it should check on the form itself, here I m not getting data from table...I am just
navigating from first record to second using down arrow.
so, may be 2 possibilities.
1) when user navigates using tab to third record, it should say like two duplicate records.(may be like when validate record or item)
2) or when user tries to save, it should say two duplicate records.
so, everyting should take place on form screen only.....
waiting for your reply,
thanx... -
Multi line issue in Table Cell Editor
Hi,
I am developing an occasionally connected application for handheld devices using NetWeaver Mobile 7.1. In one of the view, I have a table which display items information from the data source. In one of the column I need to display item description so I used TextEdit in the Cell Editor to display the information in multi line format and also wrapping is enabled.
But during testing of the application the TextEdit control does not wraps the text and as well as only first line of TextEdit control is visible inside the table and rest of the rows are not visible because of table's row height is not adjusted to the TextEdit control. I couldn't find any option to vary the size of the row height of the table.
Please suggest a solution to bring multi line display with in the table.
Also, check out my other issue posted here.
[Issue in wrapping of text in TextEdit control|Issue in wrapping of text in TextEdit control]
Thanks in advance.
Regards,
DVR.
Edited by: Vinodh Raj D on May 28, 2009 8:18 AMHi Vinodh,
Mutliline text in a text view/edit control inside a table cell is not supported.
You can view multiline text in a text view/edit as a seperate control inside a view. I think in case you want to see the whole address you can create a detail(s) view which can be navigated from the list (table) view.
Regards,
Nipun -
I need to populate a multi-line display item in Forms 6i.
The problem that I am having is the actual assignment to the display item.
For example:
:DISPLAY_ITEM := '10';
:DISPLAY_ITEM := '11';
This makes the display item show the value '11' only.
I need '10' on the first line and '11' on the second line, etc.
Thanks in advance,
Patrickwell, you can write:
go_block('BL_BLK');
first_record;
:display_item:=10;
next_record;
:display_item:=11;
but for this- 1. block should have one navigable item. 2. display_item should not be the first item of the block.
Otherwise you will need to create a non-databse text_item with width 0 on the canvas for that block.
Hope this helps.
Regards
Mona
Maybe you are looking for
-
Hi, I see a dunning sap script z_asia_dunning assigned in Dunning procedure. I am interested in knowing the driver program for this dunning script. I searched in SDN and failed to get this information. Please let me know how to get a driver p
-
Is there a way to create three physically different calendars in iCal so that I can view the calendar and events from a fical point of view?
-
What is new/special about Family Photo Stream in iOS 8?
When it was announced at WWDC, I was hoping Family Photo Stream would automatically upload all photos from all of my family's devices into one photo stream that would then synchronize across all the other devices, including iPhoto 2013 on my iMac. Bu
-
Error when launching Crystal XIR2 report ..."Table could not be found."
We have a customer that sees an error when launching any report in InfoView for Crystal Server XIR2: Description: Error in File E:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\slvnsb41.pageserver\slvnsb41.pageserver\child.2\tem
-
Caml query for filtering list item not working as expected in Sharepoint hosted app
I am trying to filter list item based on particular value. var header = "xyz"; camlQueryHeader.set_viewXml = "<view><Query><Where><Eq><FieldRef Name='Position'/>" + "<Value Type='Text'>" + header + "</Value></Eq></Where></Query></view>"; Instead of g