Displayed changed data without refresh
Dear Expert,
I am using CL_ALV_GRID to let the user input some code in one filed then the it's text display in another field automatically.But I meet a problem , to display the changed data I have to use method 'refresh'. This method will refresh all the data, but user only want to display the changed data.
Is there any way to realize this kind of requirement ?
Hi expert,
Here data will be displayed on layout.After displaying the data first we need to modify the record after that selected that record
and press the CUSTOME REFRESH button only selected row is changed in internal table after that using set_table_for_fist_display using that method wt ever the modified the data in itab that data will display.
claSS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
MOVE 'REFRESH' TO ls_toolbar-function.
MOVE icon_refresh TO ls_toolbar-icon.
MOVE 'REFRESH SCREEN'(140) TO ls_toolbar-quickinfo.
MOVE 'DELETE DATA'(120) TO ls_toolbar-quickinfo.
MOVE 'REFRESH'(140) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
CLEAR ls_toolbar.
ENDMETHOD.
ENDCLASS.
METHOD handle_user_command.
CASE e_ucomm.
WHEN 'REFRESH'.
CALL METHOD r_grid->get_selected_rows
IMPORTING
ET_INDEX_ROWS =
et_row_no = it_rows.
LOOP AT it_rows INTO wa_rows.
MODIFY DBTAB FROM TABLE ITAB INDEX WA_ROWS-INDEX.
ENDLOOP.
CALL METHOD r_grid->set_table_for_first_display
EXPORTING
is_layout = gs_layout "&see below
CHANGING
it_fieldcatalog = gt_fieldcat
it_outtab = ITAB.
ENDMETHOD.
STARTOFSELECTION.
CREATE OBJECT r_container
EXPORTING
container_name = 'CONTAINER_1'
CREATE OBJECT r_grid
EXPORTING
i_parent = r_container
SET HANDLER event_receiver1->handle_user_command FOR r_grid.
SET HANDLER event_receiver1->handle_toolbar FOR r_grid.
Regards
MURALII
Similar Messages
-
How to display table data without using ALV and table element.
Hi,
Its possible to display table data without using ALV and table element.
Every time i am fetching data based on (customer,status) fields and displaying these data in my output using alv
(every time i am fetching single row data ),
But problem is alv occupying more space in the output , i want to display data part only i dont want field names,
settings and header data etc..things.
Give solution to display data part..
Regards,
Rakhi.Hi,
Does you mean that you need ALV without default Function Toolbar...? If this is the case, the easy solution would have been to use Table Element rather. But, if you need to use ALV only without Function Toolbar, you can do away with that as well.
In that case, after calling GET_MODEL, you need to add few more lines of codes to achieve your goal. Those lines are --
DATA LV_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
LV_VALUE = LO_INTERFACECONTROLLER->GET_MODEL(
* Standard Filter Function setting to FALSE
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_COMPLEX_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_COMPLEX_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_DISPLAY_SETTINGS_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_HEADERCLICK_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_HIERARCHY_ALLOWED( ABAP_FALSE ).
* Standard Filter Function setting to FALSE Ends
Here as you can easily notice that LV_VALUE is instantiated on CL_SALV_WD_CONFIG_TABLE. Now, using this LV_VALUE, you set standard functions as False to dis-allow their display.
Hope this answers your query.
Thanks.
Kumar Saurav. -
Display error message without refreshing the entire jsp
Hi,
I want to display the server side error messages in the jsp without refreshing the entire jsp. How can this be achieved?
I think there is some way with use of AJAX. If yes can you please elaborate on the same as to how to do this.
Regards,
ShwethaIn the project it's presented:
1) how the servlet can send JSON data depending on the request's parameter
2) how to obtain this data on the client side and show in on the page using jQuery without refreshing the whole site
What You need to do is just to send the error (as JSON data) insetad of the values that are passed now and display this error on the page. -
Displaying the results without refreshing the page
Hi,
I need to show the items added to the basket within a list box which is on the top frame without refreshing the page.the page is a jsp page.Could you please give me idea how this could be done.
The problem is, there are 2 frames, one above and one below.In the below frame I select a product and add to the basket, at the same time I need to show these items in above frame within the list box, the above frame should not refresh, it should show the items as soon as the items are added.
ThanksThe cart bean is on the server? Then you will have to send a request to the server to get it added. How do you do that? You post a form. How do you post a form without submitting a page? You don't.
You need to make a design decision. If you want all of your logic on the server, you will have to be content with client-side refreshes. If client-side refreshes and their inherent delays are not acceptable, you will have to learn to be savvy with JavaScript but realize that anything you do on the form is still only on the form until you submit it. -
Based on AutoSuggest populate other data without refresh page
I have Auto Suggest and I take the value.
So now I wanna call some php file that will generate data (or
I can generate it before then call filter or something).
So I make AutoSuggest and when I push Search.
Then In some widget under I wanna put filter data, withoud
refresh or something.
What's the best way. thanksquote:
Originally posted by:
Proxim0o
I don't know if this is the answer that your looking for
because your question is not that clear but with some JS like
onclick on onmouse over you can call the JS to refresh your DS with
the correct params and pull the new DS data into your region.
Yes. That can be a solution. It's Button and I'll make an
action OnClick to make some.
Can you give me some example in Spry Site. Some tutorial.
but I'll need first to call PHP so I can create XML with a
needed data then parse it.
Thanks. -
ADF Faces RichTable doesn't validate but still display changed data
Hello,
I think I miss something in the ADF Faces lifecycle management. Can you help me?
In a adf faces/jsf page,
1- I have a RichTable which DataModel is based on a List<Department> stored in a managed bean (session).
2- I have a button "Cancel" with immediate=true partialSubmit=false (I don't use PPR) and an ActionMethod that does a few changes (not in the model) and return "success".
When I modify a value in the table (that has some af:inputText) and click on the Cancel button, the underlying List<Department> instance isn't changed (Which I expect because of the immediate=true property!). But the table still display the changes I've typed in the page. How can I reverse the data displayed in the table to before my change in the UI (in a simple manner)? What do I miss?
Best Regards
GregoryHi,
immediate = true makes sure that the component is evaluated before all the other. In addition the value change event fires before the model update to give you the opportunity to prevent the update. I don't know what your managed bean code is doing, but the fact that the table has the update indicates the RC table component to work properly. Your table model isn't updated, which I don't think will be automatic. So I assume you will have to access the current selected row, get the row object and pass it to the list for an update
Frank -
Display form data without blank fields. (Coldfusion)
I would like to display data that was enter into a form, but
without the fields that were left blank. For example, if someone
enters their info in address 1 but left address 2 blank, I want to
display address 1 and then display the next completed form field if
address 2 was left blank. I am writing this in Coldfusion.
What I am trying to do is allow clients to create and preview
a preformatted business card online so we eliminate the back and
forth proofing process. The design for each card is the same, but
with variable information. Ex., Address 1, Address 2, Cell Phone 1,
Cell Phone 2, etc. When fields are left blank I want to eliminate
them from being displayed as blank spaces.
Thank you in advance.
Steve MillerYou might also want to TRIM(Form.Fieldname) first to make
sure no spaces
were entered on the form.
<CFIF TRIM(Form.Fieldname) neq "">
#Form.Fieldname#
</cfif>
Doug
"Paul Whitham AdobeCommunityExpert"
<[email protected]> wrote in message
news:el2dks$jo2$[email protected]..
> Just wrap your preview in IF statements like this
>
> <CFIF Form.Fieldname neq "">
> #Form.Fieldname#
> </cfif>
>
> --
> Paul Whitham
> Certified Dreamweaver MX2004 Professional
> Adobe Community Expert - Dreamweaver
>
> Valleybiz Internet Design
> www.valleybiz.net
>
> "mcmcreate" <[email protected]> wrote
in message
> news:el18d4$4bl$[email protected]..
>>I would like to display data that was enter into a
form, but without the
>>fields
>> that were left blank. For example, if someone enters
their info in
>> address 1
>> but left address 2 blank, I want to display address
1 and then display
>> the next
>> completed form field if address 2 was left blank. I
am writing this in
>> Coldfusion.
>>
>> What I am trying to do is allow clients to create
and preview a
>> preformatted
>> business card online so we eliminate the back and
forth proofing process.
>> The
>> design for each card is the same, but with variable
information. Ex.,
>> Address
>> 1, Address 2, Cell Phone 1, Cell Phone 2, etc. When
fields are left blank
>> I
>> want to eliminate them from being displayed as blank
spaces.
>>
>> Thank you in advance.
>>
>> Steve Miller
>>
>
> -
Displaying changing data in DW4 HTML pages
Hi - I'm hoping someone can offer a way to do this more efficiently in DW4 than how I did it for the client.
I originally did this in Flash but since I'm the only person who knows Flash here, and because I would not be the person updating the data on a daily basis, I moved it to DW4 as HTML files.
They wanted a map with pushpins of the US and other countries. See image below:
When you click on a pushpin, the state or country appears displaying names. Then you click on a name and it displays data about that person on the right. See below:
It's basically a drill-down concept, starting with usa.html, clicking on a state, which displays northcarolina.html, clicking on a name, which displays personname.html.
As you can imagine, if you have 50 names, you're going to have 50 HTML pages to keep track of. And if 20 of those names are displayed on each page like the one above, if Ron quits and is replaced by someone named Mike Smith, you have to go to the NC page and all 20 individual pages to change the names.
I would love to be able to do this same concept but with one central spreadsheet or some other document that holds all of the names and data for each. Then, when something needs to be updated, just do it in this central document and the HTML display automatically updates.
Any idea how this can be done with DW4 and some other type of data file? Thanks.When you say "DW4" do you really mean "DW4" (vintage 1999) or "DW CS4" (vintage 2009)?
The best way to do this would be to use server scripting with a database. But if you really mean DW4, then you would have to manually create all of that scripting. -
Display master data without data in the fact table
Characteristic 0PROJECT
Attribute Price
I want to show in the query all the prices including the projects that don't have registers in the fact table.
How do I do this?
Tnks.I believe you are describing what SAP referes to as the Slow Moving Item scenario. Search SDN using that phrase and you'll get hits on documents and Notes that talk more about this. Here's something from an old How To
Slow Moving Item Scenario
You want to define a query that displays all products that have been purchased only
infrequently or not at all. In other words, the query is also display characteristic values for
which no transaction data or only low values exist for the selected period.
Procedure
In the Administrator Workbench;
1. Create a MultiProvider consisting of a revenue InfoCube, containing the InfoObject
Material (0MATERIAL), and the InfoObject 0MATERIAL. The InfoObject must be set as
an InfoProvider in InfoObject maintenance. In other words, you need to have assigned
the InfoObject to an InfoArea. (also refer to Tab Page: Master Data/texts [Ext.]).
In the BEx Analyzer:
2. Select your MultiProvider in the Query Designer.
3. Define a query that contains the InfoObject 1ROWCOUNT in the columns.
The InfoObject 1ROWCOUNT is contained in all flat InfoProviders, that is, in all
InfoObjects and ODS objects. It counts the number of records in the InfoProvider.
In this scenario, you can see from the row number display whether or nor values
from the InfoProvider InfoObject are really displayed.
4. Save the query and execute it. All values are now displayed, including those for materials
that were not purchased.
If you filter by time (0CALYEAR, for example), values from the InfoProvider
InfoObjects are not displayed since 0CALYEAR is not an attribute of
0MATERIAL. You can see this from the absence of values in the 1ROWCOUNT
column in the query. If you want to restrict by time, you need to proceed as
follows:
Constant Selection for the InfoObject
You need to set the constant selection for the 1ROWCOUNT key figure in order to be able to
set a filter by time in this query.
1. In the Query Designer, via the context menu for 1ROWCOUNT, choose Edit.
2. On the left hand half of the screen, under the data package dimension, select the
characteristic InfoProvider (0INFOPROV) and drag it into the right-hand screen area.
3. From the context menu for the InfoProvider, choose Restrict, and restrict across the
InfoProvider InfoObject.
4. Also from the context menu for the InfoProvider, choose the function Constant Selection.
5. Save the query and execute it. You can now also set a filter for a time characteristic, the
materials display remains as it was.
Displaying Slow Moving Items
SAP Online Help 05.11.02
MultiProviders 3.0B, Support Package 07 10
If you want to display a list of slow moving items, excluding products that are selling well, you
need to proceed as follows:
1. In the Query Designer, via the context menu for 1ROWCOUNT, choose Edit.
2. Via the context menu for InfoProvider, choose the function Display Empty Values. Also
select Constant Selection.
3. Save the query and execute it. The result is that the system displays the materials for
which there was no revenue.
Displaying Products with Small Revenues
If you want to display a list of products that have not been sold or have only been selling
badly, you need to proceed as follows:
1. Set constant selection as described above, but do not select the display empty values
function.
2. In the Query Designer, define a condition for the 0MATERIAL InfoObject. Specify a value
that is to be the upper limit for a bad sale.
3. Save the query and execute it. The result is that the system displays all materials that
have not been sold or have been selling badly. -
Data fetch from two table without refresh
hi Friends,
I have a problem i want to extract data from two table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield.
eg. there two table A and B.
Table A has Colunm
s_id Number;
c_id Varchar2(30);
sec varchar2(4);
Second Table B Colunm Name
s_id Number;
f_name varchar(30);
l_name varchar(20);
when i enter s_id 101 in a text field then the c_id ,sec,first_name and last_name should come in to corressponding text fields without refresh.
How Can I do this.
Thanks
ManojHi Manoj,
You have to make an Ajax call to display data without refreshing the page. Search this forum for Ajax and you can find lots of related posts. This link might help too. http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
Thanks,
Manish. -
Hi
i want to generate a report without refresh of the page.
Eg. If i enter the student_id 1 in text field then student_id 1's personal information should display in report without refresh of the page.
there are 5 field in student table
first name
last name
roll no
class
section
Thanks
NishaHi Br, Jari,
can i use the text field in place of select list.
as in given link. we are selecting the value from select list after that report display without refresh of the page.
i want to replace the select list with the text field.
if this Possible Please Suggest me.
Thanks & regards
Nisha -
Changing content on page without refreshing
Hey, I need to find out how to have content on my web page to
change without the web page refreshing. Basically, I want to have a
section on my web page that will have news articles and i want to
have two tabs one for "recent" news and another for "popular" news
and when the user clicks on one of the tabs the correct articles
will display in that section, however I want to do this without the
page refreshing, does anyone know how I may accomplish this? Just
to clarify a bit more, I know how to distinguish the "recent" to
"popular" atricles just need to know how to pull them from database
without a page refresh, Thanks!that's correct, you could use layers and the show/hide layer
function that dreamweaver provides: tag inspector - behaviours tab
- plus sign
also you could use cfajax wich combines javascript cfm etc in
a way (i'm not an expert yet on this) that you can request data
without using the page refresh
But the most simple way is indeed to use the show/hide layer
function, see attached code example -
Data fetch from table without Refresh and without using tab key.
hi Friends,
I have a problem i want to extract data from table without Refresh into text field without using Tab key. when i'll enter any value in a text field then corressponding value should come in to corressponding textfield without using Tab Key.
eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh and without using Tab key.
How Can I do this.
Thanks
ManojHi Manoj,
I assume that this is similar to: Data fetch without Refresh rather than Re: Value of one textfield should come into another textfield Without Using TAB ?
If so, the only change you need to make on the first one is to use "onkeyup" instead of "onchange" in the item's "HTML Form Element Attributes" setting.
Note, however, that the user must move away from the item at some point (for example, to click a button), so the onchange will be triggered anyway.
Andy -
How to insert a new field without refreshing the data
Hi,
I have data of 3 years in a cube. I have to enhance a new field in that cube and i want the data will come from now onwards. I dont wanna have the data for the past 3 years.
Can anyone tell me how i can load the data of that field into the cube without refreshing the cube as cube has too much data.
RomaHi Roma,
It depend up on whether you are adding Cgharacteristic or Key figure. If you are adding key figure then no need to worry.
Just create the new keyfigure, add this in all your data flow and activate all the objects and assign proper transformation.
from next load you will get data for this field.
If you are addign data the this is a bit difficult than key figure. addign characteristic is nothing but you are making changes to your cube dimensions.
when you are changing your cube dimensions, you should delete the data before you transport the objects.
You can try once to transport the objects with out deleting data. If it fails then you have to delete the data from Cube.
Regards,
Venkatesh. -
How to turn ADF to display database actual data without cashing data
How can i setup ADF (ADF tables, EJB, session bean or else) to display actual data in database without caching any data?
I need actual online data in database.
Edited by: marlis on Mar 7, 2013 8:54 PMpersistence.xml
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="Model">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>java:/app/jdbc/jdbc/Connection1DS</jta-data-source>
<class>model.Aaa</class>
<properties>
<property name="eclipselink.target-server" value="WebLogic_10"/>
<property name="javax.persistence.jtaDataSource" value="java:/app/jdbc/jdbc/Connection1DS"/>
</properties>
</persistence-unit>
</persistence>
Which parameter to change?
Maybe you are looking for
-
Can Cells in the same Table have different padding ????
I have a table with 2 rows and 10 columns. I have the cell padding set to "10", however in the far right column I would like to have NO PADDING "0". Anyone know how to do this? Thank you!
-
?Why don't I get a configuration screen?
I am just following directions and have plugged HDMI cable into TV and plugged in AppleTV but the next step - configuring- just isn't happening. I turn on the TV with its remote and all I get is regular programming. What am I doing wrong?
-
hi guys, my t400 lcd does not included led backlight, and i feel it is terribly dim compare to other notebook such as compaq v3000 and hp dv2000, what is going on? i heard someone said t400 lcd without led backlight are good too, but my lcd seems di
-
My brother's graduation present is going to be a MacBook for college and it is my responsibility to find one for him. I was just wondering if you had any suggestions. He is not very tech savvy but doesn't have trouble using what he needs because we a
-
Placing date field inline to an Interactive Report search bar
For a button I can choose "Right of Interactive Report Search Bar" option to place it inline with the IR Search bar. However I need to place a text fileld or select list or Date Field intead. Any ideas? If a template needs to be changed could you ple