![]() |
.vbs script error when trying to insert a value in a sapguitable - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: .vbs script error when trying to insert a value in a sapguitable (/Thread-vbs-script-error-when-trying-to-insert-a-value-in-a-sapguitable) |
.vbs script error when trying to insert a value in a sapguitable - frebuffi - 11-14-2012 hi friends, i create this piece of code and it is running ok as a .vbs script. the problem is only the last line of code. It is saying that the method is not supported, how can i fixed this problem ?..now the code: Code: set WshShell = CreateObject("WScript.Shell") the message: "the object does not support setcelldata method"... it seems that the operations are different than in qtp.. RE: .vbs script error when trying to insert a value in a sapguitable - Ankesh - 11-14-2012 set will return an object, you simply can not use setcelldata for that. it shld be something like Code: Set variable=session.findById("wnd[0]/usr/tabsFICHA/tabpFICHA_FC3/ssubFICHA_SCA:/BGBA/SAPMLM_LOAN_CREATE:0203/tbl/BGBA/SAPMLM_LOAN_CREATETASAS") now you should check the property of the 'variable ' to see the possible option to be used. Regards, Ankesh RE: .vbs script error when trying to insert a value in a sapguitable - frebuffi - 11-14-2012 i also tried : Code: session.findById("wnd[0]/usr/tabsFICHA/tabpFICHA_FC3/ssubFICHA_SCA:/BGBA/SAPMLM_LOAN_CREATE:0203/tbl/BGBA/SAPMLM_LOAN_CREATETASAS/ctxt/BGBA/CA_TASAS_T-TASA[3,0]").text = "14" [3,0] means column and row and it works fine. RE: .vbs script error when trying to insert a value in a sapguitable - Ankesh - 11-15-2012 good to know that it worked for you... ![]() RE: .vbs script error when trying to insert a value in a sapguitable - Malleswari - 07-18-2013 @ frebuffi / Ankesh Code: session.findById("wnd[0]/usr/tabsFICHA/tabpFICHA_FC3/ssubFICHA_SCA:/BGBA/SAPMLM_LOAN_CREATE:0203 /tbl/BGBA/SAPMLM_LOAN_CREATETASAS this is the id of the table, but how the fallowing string is derived ? Code: /ctxt/BGBA/CA_TASAS_T-TASA RE: .vbs script error when trying to insert a value in a sapguitable - Staff - 07-18-2013 Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time. |