I have a gridview with two columns: DocId and DocUrl
DocUrl contails url of docs. Is there any way to access the access the DocUrl rows in one button click?
Once the button is clicked, it has to open the DocUrl and checks the string pattern. If it does not belong to that doc delete it, otherwise leave it as it is.
Yes you can.
Use a LinkButton, on click of it , check its click event and check url, if its what you find open it using response.redirect or remove and update label
Related
I have one web table, in this I want to delete particular record by clicking on record's delete button.
I got the value of row but I am not able to perform click on web button of particular row and also there is 2 buttons in one column.
How to click on delete icon of particular row?
You need to set a reference to the item within the specific row and then click on it - something like this:
Set oLink = Browser("myBrowser").Page("myPage").WebTable("myTable").ChildItem(iRow,8,"Link",0)
oLink.Click
You will potentially need to amend the "Link" and the number 8 in your own code. iRow represents the row you are trying to interact with.
Essentially what this code does is set an object reference to the first item of type "Link", in column 8 of the table, then uses a Click event to select it. If your delete icon is a WebButton, then replace "Link" with "WebButton" for example. The final 0 in the command tells UFT to select the first element matching the object type - you might need 1 if your two icons are in the same column of the table.
Let me know if that helped.
I have a grid that shows a business component data. One field of this table is an Url type. I don't want to show the url as text, i want show only a button that, if pressed, opens the link.
How I can do that?
I found a solution for the problem:
I changed the visible property of the url field to 'false' and added the link to another field of the grid with this code in the 'load' event:
OtherFieldName.LinkTarget= '_BLANK'
OtherFieldName.Link = link(ATT:UrlFieldName)
I hope this can be useful for you.
I have a CodeIgniter webpage containing (i) a list of items and (ii) a form to add a new item or edit the details of a selected item.
To select an item for editing, I have an "edit" anchor tag with a hyperlink ending with ?id=nnn. This results in a GET request that populates the detail fields of my selected item and redisplays the list. My URL now contains site_address/index.php/country?id=151.
When I submit my changes the list is updated correctly but my URL remains unchanged. What do I need to do in my controller to remove "?id=151 after my update was successful?
Thanks for your help.
I'm not sure of everything you are doing, so I'll just answer directly:
in your controller, after you update, you can:
redirect('site_address/index.php/country');
Does that fit what you mean?
Through php there's no way to change URL after request expect redirecting
redirect('controller/method');
and you can success message using session flash message after redirecting, if that what makes you want to reload the view
i want to Create a Simple Database in wp7.In Mainpage i simply add the Records in database and i have another button view which is used to navigate to another page where gridview control is there that can display the data from database that is already done.In the second page i have two Buttons delete and update and i have a textbox where user can enter the id and based on that id the delete and update process can be done.i done the delete operation but i don't know how to update the selected id because onclicking the update button
it should navigate to main page and their corresponding values have to be filled in respective fields.when i tried to use onnavigated method to get the selected id record and if the page loads during startup it throws exception "no key was found"
in the line
var n = PhoneApplicationService.Current.State ["list"];
how to make the application to load so that it does not consider the key.please help me to solve this problem.Thanks
Just check to see if the key exists first:
if (PhoneApplicationService.Current.State.ContainsKey("list") == true)
{
n = PhoneApplicationService.Current.State["list"];
PhoneApplicationService.Current.State.Remove("list");
}
before trying to load it.
I'm building a simple mvc3 app using jqgrid.
My form currently calls a function in my controller that searches the database based on what the user has inputted into the textboxes after clicking on a search button.
I want to only display the jqgrid with the information after clicking on the search button.
Any idea on how to do this?
Thanks
You need to pass an additional variable to the controller to check whether you have selected a button or not.
example:
('#grid').jqgrid({
...
url: '/Controller/Action/?additionalvariable = ' + variable,
...
)};
where the value of the variable is true or false depending on whether you have searched or not.