Unable to read edited cell values from table view 'LineEDIT' mode
Hello Gurus,
Need urgent help on Cell binding - Here's what I have:
I have a bsp with one tableview for users to update shelf quantity.
Selection mode is <b>Lineedit</b>. I used this only bcos in this I need not select a row to update it - let me know if this is wrong.
Our users do not like to click on the row to select and edit it! I am not getting the edited values from the tableview.
Although I am using a contoller and view, it's not really an MVC. Can someone please guide me on this?
<b>
code in IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS
append initial line to p_column_definitions assigning <def>.
<def>-columnname = 'SHLQTY'.
<def>-title = 'Shelf Qty'.
<def>-EDIT = 'X'.
Code in IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY(
id = p_cell_id
* type = 'DATE'
* showhelp = 'TRUE'
* type = 'QUAN'
VALUE = val
cellvalue = 'TRUE'
_VALUE = P_CELL_BINDING )
</b>
I do not see anything coming in <b>P_CELL_BINDING</b> .
Tableview in layout
<b>
<htmlb:tableView id = "result"
design = "STANDARD"
headerText = "Header Text"
filter = "SERVER"
onNavigate = "onMyNavigate"
selectionMode = "lineedit"
emptyTableText = "No records found!"
onRowSelection = "onMyRowSelection"
allRowsEditable = "TRUE"
selectedRowKeyTable = "<%= rkTab %>"
table = "<%= datatab %>"
selectedRowIndexTable = "<%= sRTable %>"
iterator = "<%= iterator %>"
visibleRowCount = "10" >
</htmlb:tableView>
</b>
I update an internal table Datatab with all the values I require.
Any idea why the cell binding id not working?
Many thanks in advance.
Mike
Hi Mike,
databinding is not possible with application classes. There are just a nice way to handle "session variables". You can use them with MVC as well.
Before MVC there was flow logic. Single formfield-values are receved e.g. when declared as page parameters. Values from tableViews are received e.g. in OnInputProcessing" by fetching the TV-Object from HTMLB_MANAGER and then calling methods like "GET_CELL_VALUE".
DATA: tv type ref to CL_HTMLB_TABLEVIEW,
table_event type ref to CL_HTMLB_EVENT_TABLEVIEW.
tv ?= CL_HTMLB_MANAGER=>GET_DATA( request = request
name = 'tableView'
id = 'mytv1' ).
table_event = tv->data.
myValue = table_event->get_cell_value( row_index = 1 column_index = 1 ).
good luck,
stefan.
Similar Messages
-
Permanently set Repeat cell values on table view obiee11g
Hi,
By default Analysis presentation Column comes with "Column Value Suppression" but we need to switch "Column Value Suppression" to "Repeat cell values" from source xml reference file
Note:don't want to do it via analysis table/column properties(its manual work) ..just looking to change permanently by changing xml
Thanks
DevaHi,
What is that datatypeformats.xml ? couldn't find out. once again will explain my requirement
Creating new analysis(Table/Pivot table view) and applying format as Repeat Cell by changing Table/Pivot Properties to set Enable alternating row "green bar" styling Repeat cell values on table/pivot view (instead of doing manual way)
Refer the below image --> i just want to avoid manual enabling below Repeat cell option for entire table/pivot view option
http://i.imgur.com/122wp.jpg?1
Thanks
Deva
Edited by: Devarasu on Nov 26, 2012 5:06 PM -
Get selected row values from Table view control
Hi ,
I am using transaction ME23N, would like to access row values from item table for selected row. I have written a script as in screen shot and its giving me error at java script step two. I want to get the PR number from item table for selected row.
With Regards
Vishal LokapurH Vishal,
Can you please share how you were able to resolve the issue regarding the selected row
in case of a table control .
Regards -
ECC5 How to read the stored value from Team Viewer
Hi,
How can I pick up the stored value from the team viewer from within ECC5?
I would normally use FM 'HR_ASR_WDA_GET_EMPLOYEE' to read mem id MSS01 but this doesn't exist in ECC5.
All help appreciated.
RobHi,
How can I pick up the stored value from the team viewer from within ECC5?
I would normally use FM 'HR_ASR_WDA_GET_EMPLOYEE' to read mem id MSS01 but this doesn't exist in ECC5.
All help appreciated.
Rob -
How to read the field value from Table Control
Hello Experts,
I am creating my first Table Control Screen. Basically I have to create a screen (102) with a table control which has 2 fields: A_QTY, B_QTY and 2 Buttons: SAVE, EXIT.
When Clicked on 'SAVE' the data (MATNR) from a previous screen (101) and the data (A_QTY, B_QTY) from the new screen (102) should be saved into a Z-table.
Internal table t_data has 3 fields.
MATNR
A_QTY
B_QTY.
Table Control TC_RACK was declared like this:
controls tc_rack type tableview using screen 0102.
I/0 Fields:
A_QTY type ZQTY.
B_QTY type ZQTY.
The screen Flow Logic:
process before output.
module status_0102.
loop at t_data into w_data with control tc_rack.
endloop.
process after input.
module exit_0102 at exit-command.
loop at tc_rack.
endloop.
module user_command_0102.
module status_0102output.
set pf-status 'STATUS_102'.
set titlebar 'TITLE_102'.
describe table t_rack lines tc_rack-lines.
endmodule. "status_0102 output
process after input.
module user_command_0615 input.
case ok_code.
when 'SAVE_RK'.
when others.
endcase.
endmodule. "user_command_0102 input
Now for eg, when the users enter values for A_QTY and B_QTY like this:
A_QTY B_QTY
1000 2000
3000 4000
How can I read these values and pass them to T_DATA so that I can save it into Z-table?
I greatly appreciate your help.
I've gone through some previously posted threads and could not understand because my knowledge in this area is preliminary.
Thanks a lot.
Could you please let me know
Edited by: dev a on Jan 13, 2010 2:46 PMHi dev a
You should use
DATA: lv_name(30) TYPE c.
FIELD-SYMBOLS: <QTY> type ZQTY.
GET CURSOR FIELD lv_name. "Get the field name in table control
check sy-subrc = 0.
assign (lv_name) to <QTY>. "Here you get the value in <QTY>
check sy-subrc = 0.
Also use <your table control>-current_line to get the table index uo're currently on.
Hint: Do not use GET CURSOR LINE if you want to get table index since this gives you the line relative to dialog screen
Good luck
Dean Q.
Edited by: Dean Q on Jan 13, 2010 11:11 PM -
Get value from Table/Recordset Cell into a JSP variable
Can anyone please help with this ?...
I need to get a cell value from a selected row of a table into a variable to pass to a java bean.
1 - The dynamic table is populated by a recordset named "rs" and has a submit button for each row .
2 - The user clicks on the corresponding button to select the row.
3 - The recordset retrieved the ID for that row in the query, but does not display it in the table.
I have tried :
<% String ID = rs.getString("bookid");%>
<% Library.bookConfirm(ID);%>
But this fails saying that it "cannot resolve variable rs..."
Yet the recordset populates correctly and its name is "rs"
Is there another way to do this perhaps ?... ie: put the id in a column of the table and get the cell value ?...
What would be the syntax to get the ID cell value of that selected row on the button click ?...
Your feed back would be greatly appreciated.
Thank you.Create a new rs
ResultSet rs1 = statement.executeQuery(query);
and use getstring to access the individual cell. -
Fetch value from Table with respect to APP_USER.
Hi,
i want to fetch value from Table with respect to APP_USER.
i am using
SELECT ID,NAME,FILE_OBJ_ID,MIME_TYPE,DOC_SIZE,BLOB_CONTENT,DESCRIPTION,UPLOAD_DATE,'Download' FROM DUMY_FILE where CREATED_BY =:APP_USER;
Show me error
failed to parse SQL query:
ORA-00911: invalid characterThanks
Edited by: 805629 on Jan 13, 2011 2:09 AMHello,
I too have the same problem.
I am using this query:
select manager from leave_mgmt where support_engg=:APP_USER
and source type is SQL Query(return single value)
but nothing is coming up in the text field. Its empty.
Please advice. Thanks in advance. -
Deleting the values from table control
HI,
I need to remove the selected line from the Table control on my screen.
The point is that the Internal table does not have any records,.
for example in the Customer Create screen,
while entering the bank details we will enter it in a tbale contraol.
but the records doesnt exist in the database. but the record gets deleted from the table control only if we press delete button.
please guide me.
please note : I want to delete the record from Table Control on the screen and I dont have any corresponding database records..
regardsHi..
The solution to your problem - deleting values from table control.
Here: it_wizard is the internal table which is holding the value of table control.
wa_wizard is the work are of the internal table it_wizard.
it_delete is the internal table which holds the deleted record of table control.
wa_delete is the work area of the internal table it_delete
Also here the field ZSEL is the character field which is used to select the entire record in the table control.
LOOP AT it_wizard into wa_wizard WHERE zsel = 'X'.
MOVE-CORRESPONDING wa_wizard TO wa_delete.
APPEND wa_delete TO it_delete.
delete table it_wizard from wa_wizard.
DELETE FROM zfin_goods WHERE ZFG = WA_delete-ZFG.
ENDLOOP
if sy-subrc eq 0.
Message 'Delete Successful' type 'S'.
endif.
The above code will delete the record from both the table control.internal table and the database table.
I think this will help you to great extent.
Ward regards,
Bhuvaneswari
Edited by: BHUVANESWARI THIRUNAVUKKARASU on Jan 7, 2009 10:39 AM -
Java API to read the Encrypted Values from Windows Registry settings
Is there any Java API to read the Encrypted Values from Windows Registry settings ?
My Java Application invokes a 3rd party Tool that writes the key/value to windows registry settings under : “HKLM\Software\<3rdparty>\dataValue”.
This entry is in BINARY and encrypted with 3DES, using crypto API from Microsoft.
3rd party software to encrypt the data stored in registry it
either uses C++ code: and uses the call “CryptProtectData” and “CryptUnProtectData” or
If it is a .NET (C#) it uses the call “Protect” or “UnProtect” from class “ProtectData” of WinCrypt.h from the library “Crypt32.lib.
Note: The data is encrypted using auto-generated machinekey and there is no public key shared to decrypt the Encrypted data.
Since the data is encrypted using auto-generated machinekey the same can be decrypted from a .Net / C++ application using CryptUnprotectData or UnProtect() API of WinCrypt.h from the library “Crypt32.lib.
To know more about Auto-Generated MachineKey in Windows refer the links below
http://aspnetresources.com/tools/machineKey
http://msdn.microsoft.com/en-us/library/ms998288.aspx
I need to find a way in Java to find the equivalent API to decrypt (CryptUnprotectData) and Microsoft will automatically use the correct key.
But i couldn't find any informato related to Java APIs to enrypt or decrypt data using auto-generated machinekey.
Is there a way to read the encrypted data from Windows regsitry settings that is encrypted using the Auto-Generated Machine Key ?
Kindly let me know if Java provides any such API or mechanism for this.If the symmetric key is "auto-generated" and is not being stored anywhere on the machine, it implies that the key is being regenerated based on known values on the machine. This is the same principle in generating 3DES keys using PBE (password-based-encryption). I would review the documentation on the C# side, figure out the algorithm or "seed" values being used by the algorithm, and then attempt to use the JCE to derive the 3DES key using PBE; you will need to provide the known values as parameters to the PBE key-generation function in JCE. Once derived, it can be used to decrypt the ciphertext from the Regiistry in exactly the same way as the CAPI/CNG framework.
An alternate way for Java to use this key, is to write a JNI library that will call the native Windows code to do the decryption; then the Java program does not need to know details about the key.
That said, there is a risk that if your code can derive the key based on known seeds, then so can an attacker. I don't know what your applicatiion is doing, but if this is anything related to compliance for some data-security regulation like PCI-DSS, then you will fail the audit (for being unable to prove you have adequate controls on the symmetric key) if a knowledgable QSA probes this design.
Arshad Noor
StrongAuth, Inc. -
Frm-40502: oracle error: unable to read list of values
Hi All,
I am personalizing the assignment form, where we need to restrict the JOB LOV based on Organization value.
In Forms Personalization we are creating the record group from query and attaching to Job field.
The query is,
SELECT DISTINCT j.NAME, DECODE (1, 2, 1, NULL) c_valid_job_flag,
j.job_id job_id
FROM per_jobs_v j
WHERE j.business_group_id + 0 = :CTL_GLOBALS.BUSINESS_GROUP_ID
AND j.date_from <= :CTL_GLOBALS.SESSION_DATE
AND ( (j.date_to IS NULL)
OR (j.date_to >= :CTL_GLOBALS.SESSION_DATE)
ORDER BY j.NAME
When we use this query, we are getting the error "frm-40502: oracle error: unable to read list of values"
If i replace the bind variable with values we are not getting the error and its working fine.
Replace query:
SELECT DISTINCT j.NAME, DECODE (1, 2, 1, NULL) c_valid_job_flag,
j.job_id job_id
FROM per_jobs_v j
WHERE j.business_group_id + 0 = 202
AND j.date_from <= TRUNC(SYSDATE)
AND ( (j.date_to IS NULL)
OR (j.date_to >= TRUNC(SYSDATE))
ORDER BY j.NAME
how to use bind variables (Block.field) here? We are getting this error only when using the bind variable in the query.
Please share your ideas.
Thanks.Hi;
What is your EBS version? There are 96 docs avaliable about similar error message. I suggest use metalink for your issue
You can also check:
FRM-40502: Oracle Error: Unable To Read List Of Values [ID 1161404.1]
Frm-40502: Oracle Error: Unable To Read List Of Values. [ID 351931.1]
FRM 40502: Oracle Error:Unable to Read List of Values [ID 179162.1]
Regard
Helios -
FRM-40502 unable to read list of values
Hi all
FRM-40502 unable to read list of values
am getting this error when i try to populate list of values for some employees only
The LOV query is as follows
Select dsm_code,dsm_desc,dsm_content from deschange_master
where dsm_orgn=:parameter.p_orgn
and (dsm_ctry =:parameter.p_ctry or :parameter.p_ctry is null)
and(dsm_loc =:parameter.p_loc or :parameter.p_loc is null)
and( dsm_oru =:parameter.p_oru or :parameter.p_oru is null)
and
((DSM_CODE like '%PWI%' and DSM_CODE like '%INCR%')
and (select count(eih_emp_code)from employee_increment_header
where eih_emp_code =:edcd_emp_code and
to_date(eih_eff_date,'DD-MON-RR') = to_date(:desig_date,'DD-MON-RR'))=1)
or
((DSM_CODE not like '%PWI%' and DSM_CODE not like '%INCR%')
and (select count(eih_emp_code)from employee_increment_header
where eih_emp_code = :edcd_emp_code and
to_date(eih_eff_date,'DD-MON-RR') = to_date(:desig_date,'DD-MON-RR'))<>1)
order by dsm_codeHi,
You have missed 1 equal sign in the last portion of the query. Check the below code. (Not tested)
Select dsm_code,dsm_desc,dsm_content from deschange_master
where dsm_orgn=:parameter.p_orgn
and (dsm_ctry =:parameter.p_ctry or :parameter.p_ctry is null)
and(dsm_loc =:parameter.p_loc or :parameter.p_loc is null)
and( dsm_oru =:parameter.p_oru or :parameter.p_oru is null)
and
((DSM_CODE like '%PWI%' and DSM_CODE like '%INCR%')
and (select count(eih_emp_code)from employee_increment_header
where eih_emp_code =:edcd_emp_code and
to_date(eih_eff_date,'DD-MON-RR') = to_date(:desig_date,'DD-MON-RR'))=1)
or
((DSM_CODE not like '%PWI%' and DSM_CODE not like '%INCR%')
and (select count(eih_emp_code)from employee_increment_header
where eih_emp_code = :edcd_emp_code and
to_date(eih_eff_date,'DD-MON-RR') = to_date(:desig_date,'DD-MON-RR'))=1)
order by dsm_codeRegards,
Manu. -
027: Unable to read the sequence number from the Workstation object
Environment:
NW 6.5 sp4
Zen 6.5 sp1
We had a problem with our inventory server processing .STR files a couple
months ago - had to turn off inv. policies on workstations while we resolved
it. Now it's resolved and we're running inventory again. We have a large
number of workstations reporting this error:
027: Unable to read the sequence number from the Workstation object
They have no data in the DB, although they do have minimal scan info, and
the last scan status date matches that of the sequence number error.
I've seen this sporadically in the past and have been able to resolve it by
initiating a full scan on the individual workstation. However, that does
not seem to be making a difference this time.
Novell's troubleshooting document basically says see if the server's
running, and see if there's data for the workstation in the db. Then call
tech support.
Any other ideas?
~~~Nicoya...Jared wrote:
> Nicoya Helm,
>
>> 027: Unable to read the sequence number from the Workstation object
>
> I am thinking that this can also mean a previous full scan was not
> found. Or maybe the STR file name is bad.
>
> This information is stored here
> HKEY_LOCAL_MACHINE\Software\Novell\Workstation
> Manager\InvScanner\"STRFileName"
The machines I'm troubleshooting have valid formats for their STR names,
but that doesn't necessarily mean they are valid STR sequence numbers.
Does removing the value in the reg key cause the STR file name to be
recreated?
>
> Because imaging is used, it's possible that this information is matching
> on some machines which could cause problems.
I've verified that none of our images contain the c:\zenworks history
folder, and we run a script that cleans up any zenworks items before
sysprep (i.e. makes sure there's no registration info on the
workstations, etc). Our imaging scripts also clear any ZIS info to
avoid any duplication as well, so I don't think imaging would be causing
this.
> I believe 6x also has a hist.ini file like 3x inventory does, you might
> delete the file also.
Good tip about the hist.ini file, I didn't know about that. It does not
solve the sequence number error, but it does seem to force a full scan
of the system and cause the new scan to be stored in the DB, which was
not happening before.
Thanks! -
Select values from table%ROWTYPE variable into a cursor
I have a stored procedure which has an OUT parameter of table1%ROWTYPE.
In future we might have to add more OUT parameters of table2%ROWTYPE etc. But at any point of time only one will have values.
So instead of having table%ROWTYPE as OUT parameter, can I send these single row ( with variable values) in a cursor, so that declaration part atleast will not change.
Is it possible to select values from table%ROWTYPE variable into a cursor.
cursorOUT IS
SELECT * FROM varREC;
where varREC is table.ROWTYPE variable.
Or which is the better solution in this situation.
Thanks.SQL> var a refcursor
SQL> declare
2 bb emp%ROWTYPE;
3 begin
4 select * into bb from emp where rownum = 1;
5 open :a for select bb.ename ename, bb.empno empno from dual;
6 end;
7 /
PL/SQL procedure successfully completed.
SQL> print a
ENAME EMPNO
SMITH 7369Rgds. -
I have to populate Description field by default in AGIS page (Advanced Global Intercompany System).
Field Description:
messageTextInput: Description
VO: FunTrxHeaderVO
VO Attribute: Description
VO is entity based.
Now if the field is null then I have to populate this value by some value from table for selected batch_id.
Example:
(SELECT DESCRIPTION FROM fun_trx_batches WHERE batch_id =
211061)
Also, this value is being populated in the Batch Information region in the same page. So the problem is also be treated as to copy a value from one messageStyledText to messageTextInput in a same page.
Can this be done through personalization, w/o coding?
Please suggest if you any idea how to resolve..
Regards,
PahariNot sure why it is not displying in the front page list??
I have to search it.
Admin team, please help.
Regards,
Pahari -
Unable to read software component version from System Landscape Directory "
I've worked in past creating/importing SWCV, but this is new system PI7.0 and stuck.
A) Is my understanding on resolution correct?
Should I go and apply notes 940309 and create client copy of existing client 001
OR
change role of client 001; SXMB_ADMIN -> 'Integration Engine Configuration' to 'Integration Server'
I have no problem in using client 001 as Integration server, all I want is import of SWCV to work. Thanks. Appreciate the help.
B) Here is what I have done and the error:
1) Followed weblog below and created product, software component, technical system, business sytem in SLD.
/people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-i
2) When I import the SWC from integration repository getting error
(Unable to read software component version from System Landscape Directory "server:5<system number>00").
C) Pointers used from the forum to debug the issue, but still no luck
Below are the points checked from the forum and all steps are correct, but still have issues with the import
1) check the RFCs SAPSLDAPI, LCRSAPRFC, connection test pass as the program ID registered with Jco
2) T-code SLDCHECK no errors (followed http://help.sap.com/saphelp_nw04/helpdata/de/78/20244134a56532e10000000a1550b0/content.htm)
3) T-code SLDAPICUST got user PIAPPLUSER, pwd is correct (reset the pwd)
4) logged using PIAPPLUSER http://server:port/sld and it works
5) One of the weblog SLD Check Failed (LCR_LIST_BUSINESS_SYSTEMS function doesn't work) referred to apply notes 940309
Notes: 940309
You are installing 'SAP NetWeaver 2004s SR1 ABAP+Java' Usage Type 'NetWeaver Process Integration (PI)'.
You don't want to use the default client 001, but another client as Integration Server.applied portion (PIPostInstallProcess) of OSS notes 940309 and it resolved.
Note:
I still retained client 001 and didn't do client copy as mentioned in the notes. The wizard based CTC tool helped. Here are the details if someone has similar issue and want to know further details:
A NetWeaver Process Integration (PI) Installation (ABAP+Java) has two parts: Installation and configuration. The former is done by the Installer, the latter by the 'Central Template Configuration' (CTC) Tool.
http://help.sap.com/saphelp_nw04s/helpdata/en/14/39084136b5f423e10000000a155106/frameset.htm
1. Call the wizard-based configuration tool as described in Configuration Wizard.
2. Select the scenario PI and the task PIPostInstallProcess.
3. Choose Execute.
A list of the steps to be executed by the wizard is displayed.
4. Choose Install.
Maybe you are looking for
-
Hello All, I am using an output type to send mail to vendor by external send. the below FM is converting the actual mail ID (for eg amar.reddyxxxxxxx) To system (eg: Q45CLNT010RECIPIENT.....). my requirement is, i should not send the mails to ever
-
Have 6 Buttons and would like to use a red tomato with a green stem to indicate that button is being rolled over and selected?
-
Inbound emails from internet stuck in smtp database queue
I have 4 exchange servers 2 MBX and 2 CAS. I am forwarding the smtp request from firewall to cas02 and using cas01 as stand by. Email are working fine except some time when we look at the email queue emails get queued n smtp database. And it take ver
-
Clarification regarding Shared services and essbase security
Hi, Sorry for the silly doubt. We have shared services to manage security, essbase v 9 1. to assign calc access for users, do i assign calc scripts under databases in group security and assign users to groups in shared services or do it via access co
-
Hi Friends, It is a outbound PO interface. The vendor number is coming from IDOC and it is being padded with zeros in the PO file. It shouldnt have any zeros preceding the vendor number. For instance if the Vendor is "800012", the field is being cre